[meta-freescale] [meta-fsl-arm][PATCH] mfgtool-initramfs-image.bbclass: Fix parsing when using a barebox based machine

Otavio Salvador otavio at ossystems.com.br
Thu Apr 14 12:28:45 PDT 2016


When building for cfa100xx machines, for meta-fsl-arm-extra, the
parsing is aborted with:

,----
| ERROR: No IMAGE_CMD defined for IMAGE_FSTYPES entry
|     'barebox.mxsboot-sdcard' - possibly invalid type name or missing
|     support class
| ERROR: Failed to parse recipe:
|     .../sources/meta-fsl-arm/recipes-fsl/images/fsl-image-mfgtool-initramfs.bb
`----

This error was caused by the image not providing all the filesystem
types as in fact it generates a Gzipped CPIO filesystem and does not
inherit the default ones.

To solve the error we ought to include the override for 'mxs' SoC
family so the right setting is used as well in this set of SoCs.

Change-Id: If6e657793ed7af07decac217f6b3371fad1f521c
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
 classes/mfgtool-initramfs-image.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/classes/mfgtool-initramfs-image.bbclass b/classes/mfgtool-initramfs-image.bbclass
index dee3137..42792f6 100644
--- a/classes/mfgtool-initramfs-image.bbclass
+++ b/classes/mfgtool-initramfs-image.bbclass
@@ -4,7 +4,7 @@
 # image provides the utilities which are used, in the target, during
 # the process and receive the commands from the MfgTool application.
 #
-# Copyright 2014 (C) O.S. Systems Software LTDA.
+# Copyright 2014, 2016 (C) O.S. Systems Software LTDA.
 
 DEPENDS += "u-boot-mfgtool linux-mfgtool"
 
@@ -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"
 
-- 
2.8.0



More information about the meta-freescale mailing list