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
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user