Bug 8945 - meta-fsl-arm layer fails to parse with MACHINE = "imx28evk
Summary: meta-fsl-arm layer fails to parse with MACHINE = "imx28evk
Status: VERIFIED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-fsl-arm (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: High normal
Target Milestone: 2.1 M2
Assignee: Richard Purdie
QA Contact: Bogdan Alexandru Voiculescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-01-19 16:59 UTC by Richard Purdie
Modified: 2016-02-05 11:06 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Purdie 2016-01-19 16:59:47 UTC
https://autobuilder.yoctoproject.org/main/builders/nightly-fsl-arm/builds/603/steps/BuildImages_2/logs/stdio


You can also run generated qemu images with a command like 'runqemu qemux86'
WARNING: Host distribution "CentOS-Linux-7.1.1503" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes...ERROR: No IMAGE_CMD defined for IMAGE_FSTYPES entry 'uboot.mxsboot-sdcard' - possibly invalid type name or missing support class
ERROR: Failed to parse recipe: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-arm/build/meta-fsl-arm/recipes-fsl/images/fsl-image-mfgtool-initramfs.bb

Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
program finished with exit code 1

The layer needs something like:

diff --git a/classes/mfgtool-initramfs-image.bbclass b/classes/mfgtool-initramfs-image.bbclass
index dee3137..36d5f8f 100644
--- a/classes/mfgtool-initramfs-image.bbclass
+++ b/classes/mfgtool-initramfs-image.bbclass
@@ -13,6 +13,7 @@ FEATURE_PACKAGES_extfs = "packagegroup-fsl-mfgtool-extfs"
 FEATURE_PACKAGES_f2fs = "packagegroup-fsl-mfgtool-f2fs"
 
 IMAGE_FSTYPES = "cpio.gz.u-boot"
+IMAGE_FSTYPES_mxs = "cpio.gz.u-boot"
 IMAGE_ROOTFS_SIZE ?= "8192"
 IMAGE_CLASSES = "image_types_uboot"
 
(since the IMAGE_FSTYPES override n the core overrides this otherwise, leading to a parse failures since IMAGE_CLASSES is changed to a class which doesn't include the sdcard image definition).
Comment 1 Otavio Salvador 2016-01-26 16:13:25 UTC
The proposed fix has been reworked[1] and sent for review.

1. http://patchwork.openembedded.org/patch/113775/

However, OE-Core also needs fixing as it needs to mangle the tasks name for a valid one.

This can be done using:

<pre>
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 3870516..797f342 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -395,9 +395,9 @@ python () {
 
         after = 'do_image'
         for dep in typedeps[t]:
-            after += ' do_image_%s' % dep.replace("-", "_")
+            after += ' do_image_%s' % dep.replace("-", "_").replace(".", "_")
 
-        t = t.replace("-", "_")
+        t = t.replace("-", "_").replace(".", "_")
 
         d.setVar('do_image_%s' % t, '\n'.join(cmds))
         d.setVarFlag('do_image_%s' % t, 'func', '1')
</pre>

Richard is going to send a patch for OE-Core to address this.