]> code.ossystems Code Review - meta-freescale.git/commitdiff
image_types_fsl.bbclass: fix barebox bootstream generation
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 27 Feb 2014 09:55:27 +0000 (10:55 +0100)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 27 Feb 2014 17:16:13 +0000 (14:16 -0300)
Since the image_types.bbclass is not cd'ing to ${DEPLOY_DIR_IMAGE}
anymore, do that in a subshell before generating the boostream.
This fixes the following build failure:

ERROR: Error: The image creation script
   '.../core-image-minimal/1.0-r0/temp/create_image.barebox.mxsboot-sdcard' returned 1:
error: unable to find command file imx-bootlets-barebox_ivt.bd-cfa10058

Change-Id: I5881c6bc333bef42a3f61d07b7bbd6c87c7d45e7
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
meta-fsl-arm/classes/image_types_fsl.bbclass

index fd2effd2be649e49379bf1f9160b7fb23021e75c..f0160dfe93be5014fd48ff61dc8ab677cfb7da18 100644 (file)
@@ -42,9 +42,9 @@ IMAGE_CMD_barebox.mxsboot-sdcard () {
        barebox_bd_file=imx-bootlets-barebox_ivt.bd-${MACHINE}
 
        # Ensure the files are generated
-       rm -f ${IMAGE_NAME}.barebox.sb ${IMAGE_NAME}.barebox.mxsboot-sdcard
-       elftosb -f mx28 -z -c $barebox_bd_file -o ${IMAGE_NAME}.barebox.sb
-       mxsboot sd ${IMAGE_NAME}.barebox.sb ${IMAGE_NAME}.barebox.mxsboot-sdcard
+       (cd ${DEPLOY_DIR_IMAGE}; rm -f ${IMAGE_NAME}.barebox.sb ${IMAGE_NAME}.barebox.mxsboot-sdcard; \
+        elftosb -f mx28 -z -c $barebox_bd_file -o ${IMAGE_NAME}.barebox.sb; \
+        mxsboot sd ${IMAGE_NAME}.barebox.sb ${IMAGE_NAME}.barebox.mxsboot-sdcard)
 }
 
 # U-Boot mxsboot generation to SD-Card