From 341d31dbfbedeee30e405b9249acef149432cefb 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 boot-scr and sdcard-img-ext4 Add image-specific signature support to Build/boot-scr and Build/sdcard-img-ext4. These are required to switch root device passed to the kernel on Check Point V-80. Signed-off-by: INAGAKI Hiroshi --- target/linux/mvebu/image/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/mvebu/image/Makefile b/target/linux/mvebu/image/Makefile index 9d6f207b3f2fde..061479ce80f582 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 @@ -129,7 +129,7 @@ define Build/sdcard-img endef define Build/sdcard-img-ext4 - SIGNATURE="$(IMG_PART_SIGNATURE)" \ + SIGNATURE="$(if $(1),$(1),$(IMG_PART_SIGNATURE))" \ ./gen_mvebu_sdcard_img.sh $@ \ $(if $(UBOOT),$(STAGING_DIR_IMAGE)/$(UBOOT)) \ 83 $(CONFIG_TARGET_KERNEL_PARTSIZE) $@.bootimg \