Passes IMG_PART_SIGNATURE to ptgen instead of using the default "OWRT"
signature.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
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
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))"