]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mvebu: add specific signature support to Build/boot-scr
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sun, 7 Apr 2024 00:38:35 +0000 (09:38 +0900)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 22 Jun 2025 20:17:20 +0000 (22:17 +0200)
Add image-specific signature support to Build/boot-scr.
This is required to switch root devices passed to the kernel on Check
Point V-80 and V-81.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16904
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mvebu/image/Makefile

index 9d6f207b3f2fde49b8d787664253a110c433ed2b..1dc62d244ffff1137f73fb92d3a29d46124b3df9 100644 (file)
@@ -14,7 +14,7 @@ KERNEL_LOADADDR := 0x00008000
 define Build/boot-scr
        rm -f $@-boot.scr
        sed \
-               -e 's#@ROOT@#$(IMG_PART_SIGNATURE)#g' \
+               -e 's#@ROOT@#$(if $(1),$(1),$(IMG_PART_SIGNATURE))#g' \
                -e 's#@DTB@#$(firstword $(DEVICE_DTS))#g' \
                $(BOOT_SCRIPT).bootscript > $@-new.bootscript
        mkimage -A arm -O linux -T script -C none -a 0 -e 0 -d $@-new.bootscript $@-boot.scr