Use target hostnames and restore lk2nd bootloader reboot

This commit is contained in:
Luxferre committed 2026-11-09 23:44:44 +02:00
1 parent 1c011b360a
commit 3b96b8f242
22 files changed
+203 -70

No files matched your search

+4 -6
View File
@@ -37,19 +37,17 @@ def main():
test_c = os.path.join(BASE, "bootloader", "lk2nd", "test_spi_panel_init.c")
variants = (
("images/boot-lk2nd-nokia-beatles.img", 0, 0, False),
("images/boot-lk2nd-nokia-beatles-diagnostic.img", 1, 0, False),
("images/boot-lk2nd-nokia-beatles-display.img", 0, 1, True),
("images/boot-lk2nd-nokia-beatles.img", 0, 0),
("images/boot-lk2nd-nokia-beatles-diagnostic.img", 1, 0),
("images/boot-lk2nd-nokia-beatles-display.img", 0, 1),
)
for image, fastboot, display, allow_missing_cookie in variants:
for image, fastboot, display in variants:
ok &= check(os.path.isfile(os.path.join(BASE, image)), "%s exists" % image)
if not os.path.isfile(os.path.join(BASE, image)):
continue
cmd = [sys.executable, validator, "--image", image,
"--expect-fastboot", str(fastboot),
"--expect-display", str(display)]
if allow_missing_cookie:
cmd.append("--allow-missing-cookie")
r = subprocess.run(cmd, cwd=BASE, capture_output=True, text=True)
for line in r.stdout.strip().split("\n"):
if line: