]> code.ossystems Code Review - meta-freescale.git/commitdiff
image_types_fsl.bbclass: Ensure i.MX23 and i.MX28 image stream are available
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 16 Jul 2016 12:48:28 +0000 (09:48 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 5 Aug 2016 17:51:53 +0000 (14:51 -0300)
The i.MX23 and i.MX28 image stream must be built prior the sdcard
generation. The example of a failure is:

,----
| DEBUG: Executing shell function do_image_sdcard
| 0+0 records in
| 0+0 records out
| 0 bytes (0 B) copied, 1.5848e-05 s, 0.0 kB/s
| dd: failed to open '....rootfs.uboot.mxsboot-sdcard': No such file or directory
| WARNING: exit code 1 from a shell command.
`----

The failure has been found by O.S. Systems autobuilder when running
the regression tests.

Change-Id: I64ecca1160e038e15629516f97e8ade5d645be31
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
classes/image_types_fsl.bbclass

index 91641c703110dc17a366de47c38e86863493a339..5f3a9c6999f7d8538dee9cc271ce7d467aae7c38 100644 (file)
@@ -325,3 +325,10 @@ IMAGE_CMD_sdcard () {
 # The sdcard requires the rootfs filesystem to be built before using
 # it so we must make this dependency explicit.
 IMAGE_TYPEDEP_sdcard += "${@d.getVar('SDCARD_ROOTFS', 1).split('.')[-1]}"
+
+# In case we are building for i.MX23 or i.MX28 we need to have the
+# image stream built before the sdcard generation
+IMAGE_TYPEDEP_sdcard += " \
+    ${@bb.utils.contains('IMAGE_FSTYPES', 'uboot.mxsboot-sdcard', 'uboot.mxsboot-sdcard', '', d)} \
+    ${@bb.utils.contains('IMAGE_FSTYPES', 'barebox.mxsboot-sdcard', 'barebox.mxsboot-sdcard', '', d)} \
+"