summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2018-04-26 13:52:55 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2018-07-03 18:42:32 -0300
commit4b0a022021f50d789b6acd15625b37f87991ea85 (patch)
tree98c7459a51c7512a1ca4a796cd05759729a05070 /classes
parentab7148ca20b197029e9efebded326655c2b28caf (diff)
downloadmeta-freescale-4b0a022021f50d789b6acd15625b37f87991ea85.tar.gz
wic: Fix image generation for i.MX MXS SoC family
The image needs to use the U-Boot generated, for the uSD card, so a dependency on that must be added to ensure the file is available prior 'wic' uses it. Besides that, the fstype needs to be changed so it sets the partition mark allowing the bootrom to find it. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> (cherry picked from commit ecdd93874f434fc200c811392cc83f255f26a4c9)
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_fsl.bbclass14
1 files changed, 14 insertions, 0 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index 4709af952..e7627200b 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -312,3 +312,17 @@ IMAGE_TYPEDEP_sdcard_append = " \
312 ${@bb.utils.contains('IMAGE_FSTYPES', 'uboot-mxsboot-sdcard', 'uboot-mxsboot-sdcard', '', d)} \ 312 ${@bb.utils.contains('IMAGE_FSTYPES', 'uboot-mxsboot-sdcard', 'uboot-mxsboot-sdcard', '', d)} \
313 ${@bb.utils.contains('IMAGE_FSTYPES', 'barebox-mxsboot-sdcard', 'barebox-mxsboot-sdcard', '', d)} \ 313 ${@bb.utils.contains('IMAGE_FSTYPES', 'barebox-mxsboot-sdcard', 'barebox-mxsboot-sdcard', '', d)} \
314" 314"
315
316# In case we are building for i.MX23 or i.MX28 we need to have the
317# image stream built before the wic generation
318do_image_wic[depends] += " \
319 ${@bb.utils.contains('IMAGE_FSTYPES', 'uboot-mxsboot-sdcard', \
320 '${IMAGE_BASENAME}:do_image_uboot_mxsboot_sdcard', '', d)} \
321"
322
323# We need to apply a fixup inside of the partition table
324IMAGE_CMD_wic_append_mxs() {
325 # Change partition type for mxs processor family
326 bbnote "Setting partition type to 0x53 as required for mxs' SoC family."
327 echo -n S | dd of=$out${IMAGE_NAME_SUFFIX}.wic bs=1 count=1 seek=450 conv=notrunc
328}