[openwrt/openwrt] mvebu: add specific signature support to Build/boot-scr

LEDE Commits lede-commits at lists.infradead.org
Sun Jun 22 13:32:58 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/2c379af5437b8b95a9f5e39c1890ade1eb002416

commit 2c379af5437b8b95a9f5e39c1890ade1eb002416
Author: INAGAKI Hiroshi <musashino.open at gmail.com>
AuthorDate: Sun Apr 7 09:38:35 2024 +0900

    mvebu: add specific signature support to Build/boot-scr
    
    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 at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/16904
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/mvebu/image/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/mvebu/image/Makefile b/target/linux/mvebu/image/Makefile
index 9d6f207b3f..1dc62d244f 100644
--- a/target/linux/mvebu/image/Makefile
+++ b/target/linux/mvebu/image/Makefile
@@ -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




More information about the lede-commits mailing list