From: INAGAKI Hiroshi Date: Sun, 7 Apr 2024 00:38:35 +0000 (+0900) Subject: mvebu: add specific signature support to Build/boot-scr X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=2c379af5437b8b95a9f5e39c1890ade1eb002416;p=openwrt%2Fstaging%2Fpepe2k.git 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 Link: https://github.com/openwrt/openwrt/pull/16904 Signed-off-by: Hauke Mehrtens --- 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