From 2c379af5437b8b95a9f5e39c1890ade1eb002416 Mon Sep 17 00:00:00 2001 From: INAGAKI Hiroshi Date: Sun, 7 Apr 2024 09:38:35 +0900 Subject: [PATCH] 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 --- 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 9d6f207b3f2..1dc62d244ff 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