Signed-off-by: Andreas Mueller <[email protected]>
---
 recipes/u-boot/u-boot_git.bb |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/recipes/u-boot/u-boot_git.bb b/recipes/u-boot/u-boot_git.bb
index 2cf5b12..b51c83f 100644
--- a/recipes/u-boot/u-boot_git.bb
+++ b/recipes/u-boot/u-boot_git.bb
@@ -296,6 +296,30 @@ SRC_URI_append_c7x0 = "file://pdaXrom-u-boot.patch \
 SRC_URI_sheevaplug = 
"git://git.denx.de/u-boot-marvell.git;protocol=git;branch=master"
 SRCREV_sheevaplug = "749c971873dbba301bd138c95d31223a25b32150"
 
+SRC_URI_mx28 = 
"git://opensource.freescale.com/pub/scm/imx/uboot-imx.git;protocol=http;branch=imx_v2009.08_10.12.01
 \
+                
http://foss.doredevelopment.dk/mirrors/imx/imx-bootlets-src-${PV_imx_bootlets}.tar.gz;name=imx-bootlets";
+SRCREV_mx28 = "e4437f1c192a1a68028e6fcff3f50ff50352041d"
+SRC_URI[imx-bootlets.md5sum] = "cf0ab3822dca694b930a051501c1d0e4"
+SRC_URI[imx-bootlets.sha256sum] = 
"63f6068ae36884adef4259bbb1fe2591755718f22c46d0a59d854883dfab1ffc"
+PV_mx28 = "2009.08-imx+${PR}+gitr${SRCREV}"
+PV_imx_bootlets = "10.12.01"
+DEPENDS_append_mx28 = " elftosb-native"
+
+do_compile_prepend_mx28() {
+       # We just build the bootlets here
+       oe_runmake -C ${WORKDIR}/imx-bootlets-src-${PV_imx_bootlets} -e 
MAKEFLAGS= linux_prep boot_prep power_prep CC="${CC}" CFLAGS="${CFLAGS}" 
AR="${AR}" BOARD=iMX28_EVK
+}
+
+do_deploy_append_mx28 () {
+       cd ${WORKDIR}/imx-bootlets-src-${PV_imx_bootlets}
+       sed -i 's,[^ *]u_boot.*;,\tu_boot="'${S}/u-boot'";,' uboot_ivt.bd
+       sed -i 's,[^ *]u_boot.*;,\tu_boot="'${S}/u-boot'";,' uboot.bd
+       elftosb -z -c uboot.bd -o imx28_uboot.sb
+       elftosb -z -f imx28 -c uboot_ivt.bd -o imx28_ivt_uboot.sb
+       install -d ${DEPLOY_DIR_IMAGE}
+       install -m 0644 
${WORKDIR}/imx-bootlets-src-${PV_imx_bootlets}/imx28*uboot.sb 
${DEPLOY_DIR_IMAGE}/
+}
+
 SRC_URI_xilinx-ml507 = "git://git.xilinx.com/u-boot-xlnx.git;protocol=git"
 SRCREV_xilinx-ml507 = "26e999650cf77c16f33c580abaadab2532f5e8b2"
 
-- 
1.7.4.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to