bcm27xx: pass signature to partition generation
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Tue, 30 Jan 2024 20:28:54 +0000 (21:28 +0100)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Mon, 4 Mar 2024 15:27:39 +0000 (16:27 +0100)
Passes IMG_PART_SIGNATURE to ptgen instead of using the default "OWRT"
signature.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/bcm27xx/image/Makefile
target/linux/bcm27xx/image/gen_rpi_sdcard_img.sh

index 12ac0012a49169415d71a8bcc8944826322beadb..e45f53de8e1c91483e5350d79b259ddad7750133 100644 (file)
@@ -49,6 +49,7 @@ define Build/boot-2711
 endef
 
 define Build/sdcard-img
+       SIGNATURE="$(IMG_PART_SIGNATURE)" \
        ./gen_rpi_sdcard_img.sh $@ $@.boot $(IMAGE_ROOTFS) \
                $(CONFIG_TARGET_KERNEL_PARTSIZE) $(CONFIG_TARGET_ROOTFS_PARTSIZE)
 endef
index 488a3517c735ae300afc8079612a5d38f8919510..8d33e4f54c1d7bb0ec4904f5ed71baee23f71c4f 100755 (executable)
@@ -19,7 +19,7 @@ kernel_type=c
 rootfs_type=83
 sect=63
 
-set $(ptgen -o $OUTPUT -h $head -s $sect -l $align -t $kernel_type -p ${BOOTFSSIZE}M -t $rootfs_type -p ${ROOTFSSIZE}M)
+set $(ptgen -o $OUTPUT -h $head -s $sect -l $align -t $kernel_type -p ${BOOTFSSIZE}M -t $rootfs_type -p ${ROOTFSSIZE}M ${SIGNATURE:+-S 0x$SIGNATURE})
 
 BOOTOFFSET="$(($1 / 512))"
 ROOTFSOFFSET="$(($3 / 512))"