bcm27xx: pass signature to partition generation
[openwrt/staging/mans0n.git] / target / linux / bcm27xx / image / gen_rpi_sdcard_img.sh
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))"