Skip to contentSkip to conversation

arm,arm-bsp/classes: Move wic_nopt to meta-arm

PATCH Applied Peter Hoyes 2 participants 3 messages Feb 16, 2023 – Feb 17, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 arm,arm-bsp/classes: Move wic_nopt to meta-arm

From: Peter Hoyes <[email protected]>

To support using the wic_nopt bbclass from BSP layers other than meta-arm-bsp, move it to meta-arm.

---
 {meta-arm-bsp => meta-arm}/classes/wic_nopt.bbclass | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {meta-arm-bsp => meta-arm}/classes/wic_nopt.bbclass (100%)
meta-arm/classes/wic_nopt.bbclass renamed from meta-arm-bsp/classes/wic_nopt.bbclass +0 -0
similarity index 100%
rename from meta-arm-bsp/classes/wic_nopt.bbclass
rename to meta-arm/classes/wic_nopt.bbclass
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 arm-bsp/classes: Use :append to add to IMAGE_TYPES in wic_nopt

From: Peter Hoyes <[email protected]>

IMAGE_TYPES += "wic.nopt" is effective if the bbclass is included using IMAGE_CLASSES, but not if included directly (using inherit) due to file parse ordering.

To support applying wic_nopt locally (i.e. for certain image recipes but not others), change to use :append.

---
 meta-arm/classes/wic_nopt.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/classes/wic_nopt.bbclass +1 -1
index 322be498..9c78fd77 100644
@@ -1,7 +1,7 @@
 # This class removes the empty partition table header
 # in the WIC file when --no-table WKS option is used
 
-IMAGE_TYPES += "wic.nopt"
+IMAGE_TYPES:append = " wic.nopt"
 
 CONVERSIONTYPES += "nopt"
 
Signature · 1 line
2.34.1
Applied
#2 lore raw
In reply to Peter Hoyes
Quoted 2 lines · Peter Hoyes

To support using the wic_nopt bbclass from BSP layers other than meta-arm-bsp, move it to meta-arm.

Applied, thanks!

[1/2] arm,arm-bsp/classes: Move wic_nopt to meta-arm

      commit: 557e89242eafc19dbe394403619a5a45cbf95142
[2/2] arm-bsp/classes: Use :append to add to IMAGE_TYPES in wic_nopt
      commit: 7fee7ee6009c16479a169422cdb4c2f579a4550c

Best regards,

Signature · 1 line
Jon Mason <[email protected]>