From 956f323a05118f634c9853d0de48145e4effb97c Mon Sep 17 00:00:00 2001 From: Emekcan Aras Date: Tue, 15 Mar 2022 15:52:21 +0000 Subject: [PATCH] meta-arm/classes: Create wic_nopt class Corstone500 and Corstone1000 use wic_nopt.bbclass. This commit creates this class for Corstone500 and Corstone1000 in meta-arm classes to remove the need for meta-arm-image repo. Signed-off-by: Emekcan Aras emekcan.aras@arm.com Signed-off-by: Jon Mason --- meta-arm-bsp/classes/wic_nopt.bbclass | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 meta-arm-bsp/classes/wic_nopt.bbclass diff --git a/meta-arm-bsp/classes/wic_nopt.bbclass b/meta-arm-bsp/classes/wic_nopt.bbclass new file mode 100644 index 00000000..322be498 --- /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"