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 | 6818e74dd5febac34574e5e5f1aaf9789ff643a2 (patch) | |
| tree | b2c15585d17ac31065dbb8ddc1a7274e78e72fd8 /meta-fsl-arm/classes | |
| parent | c8b9c27ff7b05b66272416d78d08a876d3847b2e (diff) | |
| download | meta-freescale-6818e74dd5febac34574e5e5f1aaf9789ff643a2.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 'meta-fsl-arm/classes')
| -rw-r--r-- | meta-fsl-arm/classes/image_types_fsl.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass index 7fd6a29d8..443abf7e5 100644 --- a/meta-fsl-arm/classes/image_types_fsl.bbclass +++ b/meta-fsl-arm/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 |
