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:
1 parent
1e7077e314
commit
6cedcf980c
11 files changed
+112
-18
No files matched your search
@@ -137,18 +137,18 @@ build_variant() {
|
||||
}
|
||||
|
||||
if [ "$ONLY" = all ] || [ "$ONLY" = normal ]; then
|
||||
build_variant normal bananarchy-beatles-a1109-r3 "" "$CMD_BASE" "$NORMAL_IMAGE"
|
||||
build_variant normal bananarchy-beatles "" "$CMD_BASE" "$NORMAL_IMAGE"
|
||||
fi
|
||||
if [ "$ONLY" = all ] || [ "$ONLY" = diagnostic ]; then
|
||||
# Forced fastboot + no SPI display: decisive probe when lk2nd hangs before
|
||||
# USB. Run "fastboot oem display-init" / "oem display-test" from here to
|
||||
# bring up the GC9305 panel without reflashing; "oem screenshot" verifies
|
||||
# the framebuffer and "oem scan-dtb" stages the exact kernel DTB.
|
||||
build_variant diagnostic bananarchy-beatles-a1109-diag-r3 \
|
||||
build_variant diagnostic bananarchy-beatles-diag \
|
||||
"DEBUG=2 LK2ND_FORCE_FASTBOOT=1" "$CMD_DIAG" "$DIAG_IMAGE"
|
||||
fi
|
||||
if [ "$ONLY" = all ] || [ "$ONLY" = display ]; then
|
||||
build_variant display bananarchy-beatles-a1109-display-r3 "" "$CMD_DISPLAY" "$DISPLAY_IMAGE"
|
||||
build_variant display bananarchy-beatles-display "" "$CMD_DISPLAY" "$DISPLAY_IMAGE"
|
||||
fi
|
||||
|
||||
check_images
|
||||
@@ -147,14 +147,14 @@ build_variant() {
|
||||
}
|
||||
|
||||
if [ "$ONLY" = all ] || [ "$ONLY" = normal ]; then
|
||||
build_variant normal bananarchy-coconut-a1114-r1 "" "$CMD_BASE" "$NORMAL_IMAGE"
|
||||
build_variant normal bananarchy-coconut "" "$CMD_BASE" "$NORMAL_IMAGE"
|
||||
fi
|
||||
if [ "$ONLY" = all ] || [ "$ONLY" = diagnostic ]; then
|
||||
build_variant diagnostic bananarchy-coconut-a1114-diag-r1 \
|
||||
build_variant diagnostic bananarchy-coconut-diag \
|
||||
"DEBUG=2 LK2ND_FORCE_FASTBOOT=1" "$CMD_DIAG" "$DIAG_IMAGE"
|
||||
fi
|
||||
if [ "$ONLY" = all ] || [ "$ONLY" = display ]; then
|
||||
build_variant display bananarchy-coconut-a1114-display-r1 "" "$CMD_DISPLAY" "$DISPLAY_IMAGE"
|
||||
build_variant display bananarchy-coconut-display "" "$CMD_DISPLAY" "$DISPLAY_IMAGE"
|
||||
fi
|
||||
|
||||
check_images
|
||||
@@ -151,14 +151,14 @@ build_variant() {
|
||||
}
|
||||
|
||||
if [ "$ONLY" = all ] || [ "$ONLY" = normal ]; then
|
||||
build_variant normal bananarchy-sparkler-a1120-r1 "" "$CMD_BASE" "$NORMAL_IMAGE"
|
||||
build_variant normal bananarchy-sparkler "" "$CMD_BASE" "$NORMAL_IMAGE"
|
||||
fi
|
||||
if [ "$ONLY" = all ] || [ "$ONLY" = diagnostic ]; then
|
||||
build_variant diagnostic bananarchy-sparkler-a1120-diag-r1 \
|
||||
build_variant diagnostic bananarchy-sparkler-diag \
|
||||
"DEBUG=2 LK2ND_FORCE_FASTBOOT=1" "$CMD_DIAG" "$DIAG_IMAGE"
|
||||
fi
|
||||
if [ "$ONLY" = all ] || [ "$ONLY" = display ]; then
|
||||
build_variant display bananarchy-sparkler-a1120-display-r1 "" "$CMD_DISPLAY" "$DISPLAY_IMAGE"
|
||||
build_variant display bananarchy-sparkler-display "" "$CMD_DISPLAY" "$DISPLAY_IMAGE"
|
||||
fi
|
||||
|
||||
check_images
|
||||
@@ -27,6 +27,7 @@ bootloader/lk2nd/test_spi_panel_init.c.
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import re
|
||||
import struct
|
||||
import sys
|
||||
|
||||
@@ -304,6 +305,14 @@ def main():
|
||||
problems.append("binary is missing %r" % marker.decode("ascii", "replace"))
|
||||
if b"beatles low-bit reboot cookie" not in data:
|
||||
problems.append("binary is missing b'beatles low-bit reboot cookie'")
|
||||
want_ver = (b"bananarchy-beatles-diag\x00" if args.expect_fastboot else
|
||||
b"bananarchy-beatles-display\x00" if args.expect_display else
|
||||
b"bananarchy-beatles\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-beatles-[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")
|
||||
|
||||
@@ -396,12 +405,16 @@ def main():
|
||||
"lk2nd/device/dts/msm8909/nokia-beatles.dtsi",
|
||||
"lk2nd/device/dts/msm8909/msm8905-qrd-skub.dts",
|
||||
"lk2nd/device/2nd/spi-display.c",
|
||||
"lk2nd/device/menu/menu.c",
|
||||
"lk2nd/fastboot/fetch.c",
|
||||
"platform/msm_shared/mdss_spi.c",
|
||||
"platform/msm_shared/reboot.c",
|
||||
):
|
||||
if "diff --git a/%s b/%s" % (needed, needed) not in patch_text:
|
||||
problems.append("patch is missing %s" % needed)
|
||||
if "-#include <lk2nd/version.h>" not in patch_text or \
|
||||
"-\tfbcon_puts_ln(SILVER, y, incr, true, LK2ND_VERSION);" not in patch_text:
|
||||
problems.append("patch must strip LK2ND_VERSION from boot/recovery screens")
|
||||
if "mdss_spi_panel_init_commands" not in patch_text or \
|
||||
"lk2nd,panel-init" not in patch_text:
|
||||
problems.append("patch is missing the panel initialization code")
|
||||
|
||||
@@ -14,6 +14,7 @@ Checks (all offline, pure Python):
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import re
|
||||
import struct
|
||||
import sys
|
||||
|
||||
@@ -301,6 +302,14 @@ def main():
|
||||
problems.append("binary is missing %r" % marker.decode("ascii", "replace"))
|
||||
if b"beatles low-bit reboot cookie" not in data:
|
||||
problems.append("binary is missing low-bit reboot cookie")
|
||||
want_ver = (b"bananarchy-coconut-diag\x00" if args.expect_fastboot else
|
||||
b"bananarchy-coconut-display\x00" if args.expect_display else
|
||||
b"bananarchy-coconut\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-coconut-[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")
|
||||
|
||||
@@ -387,6 +396,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 base 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")
|
||||
for needed in (
|
||||
"lk2nd/device/2nd/spi-display.c",
|
||||
"lk2nd/device/dts/msm8909/msm8905-qrd-skub.dts",
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -457,6 +457,13 @@ fi
|
||||
if [ -f "$BASE_DIR/scripts/make-beatles-lk2nd-bootimg.py" ]; then
|
||||
fail "obsolete binary-patch lk2nd script is still present"
|
||||
fi
|
||||
for lk_script in scripts/build-lk2nd-beatles.sh \
|
||||
scripts/build-lk2nd-coconut.sh \
|
||||
scripts/build-lk2nd-sparkler.sh; do
|
||||
if grep -qE 'bananarchy-(beatles|coconut|sparkler)-[a-z][0-9]{4}' "$BASE_DIR/$lk_script"; then
|
||||
fail "$lk_script still hardcodes an OS version tag in LK2ND_VERSION"
|
||||
fi
|
||||
done
|
||||
if grep -q 'target_parts\[0\]\[1\]' "$BASE_DIR/flash-edl.py"; then
|
||||
fail "flash-edl.py still writes only the first lk2nd target slot"
|
||||
fi
|
||||
@@ -560,13 +567,13 @@ for pair in \
|
||||
"0a6760f8ff4a4d2baa6af88ce080898a1e3aff206e15b8474efa3ea4274d6dee images/bananarchy-nokia-argon.img" \
|
||||
"7bb47f4e938d412e2e5fed5eb5b766bbbe36c71fa6e7b77d2cda346b48a82e17 images/bananarchy-nokia-beatles.img" \
|
||||
"496890063eda83adafaf5e7796a801100795b825064cf6f7fd967e6565dca325 images/boot-bananarchy-nokia-beatles.img" \
|
||||
"b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d images/boot-lk2nd-nokia-beatles-display.img" \
|
||||
"f13db705a714aaebd2d8fcc2e0f7266d0e40268c0a276208117dfdf9d8f45351 images/boot-lk2nd-nokia-beatles-display.img" \
|
||||
"d3b385a84c6546d35edca03eac684f3d7ee6de0faab25172b9af5252137c6815 images/bananarchy-nokia-coconut.img" \
|
||||
"0a91c165e370b35a1604d08ddb6b08c46823455e5aee9701807f78221059e26c images/boot-bananarchy-nokia-coconut.img" \
|
||||
"e876424b38b0782f589756b4107337b24f27f7c37d624cc7d3907a5331df050a images/boot-lk2nd-nokia-coconut-display.img" \
|
||||
"9a5bd2da6cfd95c745d9c1acb2e3bc61afa339824810e3d160bf079e17b23192 images/boot-lk2nd-nokia-coconut-display.img" \
|
||||
"a262cb31ddb38e222e5f4bd14d82c82bb7941839a34bb48fa120b74189d319ae images/bananarchy-nokia-sparkler.img" \
|
||||
"affc62ff400c082c29b0d0c11a06bdd2eefdd06e09f1d2e93e7eae6a47a5a7b1 images/boot-bananarchy-nokia-sparkler.img" \
|
||||
"bc41c2ddd1079246a7e91a40222fcafb82b0b52965c8ee8081872767d006748f images/boot-lk2nd-nokia-sparkler-display.img"; do
|
||||
"120ade81bc5416263a1afd95a29981675358b98516e105e5ed611edf258a29f7 images/boot-lk2nd-nokia-sparkler-display.img"; do
|
||||
set -- $pair
|
||||
want=$1
|
||||
artifact_matches_target "$2" || continue
|
||||
|
||||
Reference in new issue
Block a user