Skip to contentSkip to conversation

image.bbclass: The wrong name is being used for the debug filesystem

PATCH New Mark Hatle 1 participant 1 message Apr 19, 2016

lore
Share & tools
lore

Mark Hatle

author
#0 lore raw

PATCH 1/1 image.bbclass: The wrong name is being used for the debug filesystem

[YOCTO #9487]

The debug filesystem file name is ending in "debug_tar", it should be simply "tar". Strip the "debug_" piece as necessary.

To avoid deleting the tar ball, when we've asked for just the tarball we need to check 't' and not 'realt'.

The two hunks were suggested by RP. I've implemented and verify they work with the settings:

PACKAGE_CLASSES = "package_rpm"
IMAGE_GEN_DEBUGFS = '1'

IMAGE_FSTYPES_DEBUGFS = "tar.bz2"

IMAGE_FSTYPES_DEBUGFS = "tar.gz"

and

IMAGE_FSTYPES_DEBUGFS = "tar"

---
 meta/classes/image.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes/image.bbclass +3 -1
index f471f1a..8bfd241 100644
@@ -393,6 +393,8 @@ python () {
             for ctype in ctypes:
                 if bt.endswith("." + ctype):
                     type = bt[0:-len(ctype) - 1]
+                    if type.startswith("debugfs_"):
+                        type = type[8:]
                     # Create input image first.
                     gen_conversion_cmds(type)
                     localdata.setVar('type', type)
@@ -406,7 +408,7 @@ python () {
             gen_conversion_cmds(bt)
 
         localdata.setVar('type', realt)
-        if realt not in alltypes:
+        if t not in alltypes:
             rm_tmp_images.add(localdata.expand("${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"))
         else:
             subimages.append(realt)
Signature · 1 line
2.5.5