aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Ignatov <lexszero@gmail.com>2014-06-05 14:21:59 +0400
committerOtavio Salvador <otavio@ossystems.com.br>2014-08-05 17:17:40 -0300
commit5b4082e80da2ff3f0221e85583deffffdf27b484 (patch)
tree9f36aa74fa9234ba16defdc195df1906f69300f6
parent5cc4f08776a6d0f91ca6d7fb409e64c99333e137 (diff)
downloadmeta-fsl-arm-5b4082e80da2ff3f0221e85583deffffdf27b484.tar.gz
meta-fsl-arm-5b4082e80da2ff3f0221e85583deffffdf27b484.tar.bz2
meta-fsl-arm-5b4082e80da2ff3f0221e85583deffffdf27b484.zip
image_types_fsl.bbclass: Add U-Boot NAND support for i.MX23/i.MX28
This adds support to generate the U-Boot image for use with NAND (uboot.mxsboot-nand) and allows for custom params to be given for mxsboot using the MXSBOOT_NAND_ARGS variable which should be defined in the machine definition file. Signed-off-by: Alexey Ignatov <lexszero@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--classes/image_types_fsl.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index dfa55e4..c0fa9b6 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -10,6 +10,7 @@ UBOOT_SUFFIX_SDCARD ?= "${UBOOT_SUFFIX}"
#
# Handles i.MX mxs bootstream generation
#
+MXSBOOT_NAND_ARGS ?= ""
# IMX Bootlets Linux bootstream
IMAGE_DEPENDS_linux.sb = "elftosb-native:do_populate_sysroot \
@@ -59,6 +60,12 @@ IMAGE_DEPENDS_uboot.mxsboot-sdcard = "u-boot-mxsboot-native:do_populate_sysroot
IMAGE_CMD_uboot.mxsboot-sdcard = "mxsboot sd ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \
${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.uboot.mxsboot-sdcard"
+IMAGE_DEPENDS_uboot.mxsboot-nand = "u-boot-mxsboot-native:do_populate_sysroot \
+ u-boot:do_deploy"
+IMAGE_CMD_uboot.mxsboot-nand = "mxsboot ${MXSBOOT_NAND_ARGS} nand \
+ ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \
+ ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.uboot.mxsboot-nand"
+
# Boot partition volume id
BOOTDD_VOLUME_ID ?= "Boot ${MACHINE}"