Message ID | 20220315155221.530910-2-emekcan.aras@arm.com |
---|---|
State | New |
Headers | show |
Series | *** meta-arm/classes: Create wic_nopt class *** | expand |
diff --git a/meta-arm-bsp/classes/wic_nopt.bbclass b/meta-arm-bsp/classes/wic_nopt.bbclass new file mode 100644 index 0000000..322be49 --- /dev/null +++ b/meta-arm-bsp/classes/wic_nopt.bbclass @@ -0,0 +1,9 @@ +# This class removes the empty partition table header +# in the WIC file when --no-table WKS option is used + +IMAGE_TYPES += "wic.nopt" + +CONVERSIONTYPES += "nopt" + +# 1024 bytes are skipped which corresponds to the size of the partition table header to remove +CONVERSION_CMD:nopt = "tail -c +1025 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.nopt"