diff options
author | dv@pseudoterminal.org <dv@pseudoterminal.org> | 2014-01-24 17:49:35 +0100 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2014-01-25 16:17:55 -0200 |
commit | 2d11b1612d5c5584f97d3245b88ce2ec34822bc6 (patch) | |
tree | 55c7b0a205d1e7f0613163ace473309af37ccee3 /classes | |
parent | 546d8d0b8ebd3c5c483b7fb5282f44ae93366b63 (diff) | |
download | meta-fsl-arm-2d11b1612d5c5584f97d3245b88ce2ec34822bc6.tar.gz |
image_types_fsl.bbclass: Add U-Boot SPL support
If the SPL_BINARY value is not empty, then the class will use
an alternative code path for copying U-Boot on the SD card.
u-boot.img is used (not .imx), and the SPL binary is prepended.
With empty SPL_BINARY values, the behavior is just like before.
Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image_types_fsl.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index 7fd6a29..443abf7 100644 --- a/classes/image_types_fsl.bbclass +++ b/classes/image_types_fsl.bbclass | |||
@@ -115,7 +115,12 @@ generate_imx_sdcard () { | |||
115 | exit 1 | 115 | exit 1 |
116 | ;; | 116 | ;; |
117 | u-boot) | 117 | u-boot) |
118 | dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX_SDCARD} of=${SDCARD} conv=notrunc seek=2 skip=${UBOOT_PADDING} bs=512 | 118 | if [ -n "${SPL_BINARY}" ]; then |
119 | dd if=${DEPLOY_DIR_IMAGE}/${SPL_BINARY} of=${SDCARD} conv=notrunc seek=2 bs=512 | ||
120 | dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX_SDCARD} of=${SDCARD} conv=notrunc seek=42 bs=1K | ||
121 | else | ||
122 | dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX_SDCARD} of=${SDCARD} conv=notrunc seek=2 skip=${UBOOT_PADDING} bs=512 | ||
123 | fi | ||
119 | ;; | 124 | ;; |
120 | barebox) | 125 | barebox) |
121 | dd if=${DEPLOY_DIR_IMAGE}/barebox-${MACHINE}.bin of=${SDCARD} conv=notrunc seek=1 skip=1 bs=512 | 126 | dd if=${DEPLOY_DIR_IMAGE}/barebox-${MACHINE}.bin of=${SDCARD} conv=notrunc seek=1 skip=1 bs=512 |