Remove lk2nd screen version tag, make LK2ND_VERSION neutral, and refresh archives

- Remove LK2ND_VERSION from lk2nd/device/menu/menu.c (display_fastboot_menu and display_default_image_on_screen) in bootloader/lk2nd/nokia-beatles.patch so the BANANARCHY LINUX boot splash renders intact and boot/Fastboot-recovery screens carry no OS version tag.

- Replace -a1109-r3 / -a1114-r1 / -a1120-r1 suffixes in scripts/build-lk2nd-{beatles,coconut,sparkler}.sh with OS-version-neutral bananarchy-<target>{,-diag,-display} tags and enforce this in scripts/check-lk2nd-{beatles,coconut,sparkler}.py and scripts/check-rebuild.sh.

- Rebuild all 9 lk2nd images and refresh the a1120 (cocojamboo) display lk2nd and archive SHA-256 hashes in scripts/check-rebuild.sh, CHANGELOG.md, bootloader/lk2nd/README.md, and AGENTS.md.
This commit is contained in:
Luxferre committed 2026-11-18 08:55:44 +02:00
1 parent 1e7077e314
commit 6cedcf980c
11 files changed
+112 -18

No files matched your search

+11
View File
@@ -15,6 +15,7 @@ Checks (all offline, pure Python):
import argparse
import os
import re
import struct
import sys
@@ -337,6 +338,14 @@ def main():
b"beatles low-bit reboot cookie"):
if marker not in data:
problems.append("binary is missing %r" % marker.decode("ascii", "replace"))
want_ver = (b"bananarchy-sparkler-diag\x00" if args.expect_fastboot else
b"bananarchy-sparkler-display\x00" if args.expect_display else
b"bananarchy-sparkler\x00")
if want_ver not in data:
problems.append("binary is missing version-neutral tag %r" %
want_ver.rstrip(b"\x00").decode("ascii"))
if re.search(rb"bananarchy-sparkler-[a-z][0-9]{4}", data):
problems.append("binary embeds an OS release version tag in LK2ND_VERSION")
if not data.endswith(b"SEANDROIDENFORCE"):
problems.append("missing SEANDROIDENFORCE trailer")
@@ -415,6 +424,8 @@ def main():
got = extract_patch_file(base_text, "lk2nd/include/lk2nd/spi-panel-init.h")
if got != want:
problems.append("bootloader/lk2nd/spi-panel-init.h is out of sync with nokia-beatles.patch")
if "diff --git a/lk2nd/device/menu/menu.c b/lk2nd/device/menu/menu.c" not in base_text:
problems.append("base patch must strip LK2ND_VERSION from boot/recovery screens")
if "diff --git a/lk2nd/device/dts/msm8909/nokia-coconut.dtsi" not in coco_text:
problems.append("nokia-coconut.patch is missing nokia-coconut.dtsi")
for needed in (