summaryrefslogtreecommitdiff
path: root/examples/yocto/meta-mini/recipes-bsp/u-boot/u-boot-script_git.bb
diff options
context:
space:
mode:
authorJan Altenberg <jan@linutronix.de>2016-05-20 19:02:57 +0200
committerJan Altenberg <jan@linutronix.de>2016-05-20 19:02:57 +0200
commitde3626497bba95b5d44550c9c23b99fd20a8d9c8 (patch)
treedeb98eff85fffccf9f7b2818bf837e6ab51d836a /examples/yocto/meta-mini/recipes-bsp/u-boot/u-boot-script_git.bb
parent29bcbff58ced768f9f4edbc6f4d9d9604552f09e (diff)
parentf4af36737b6e0ca37f5b17434b8f37d04cf083d7 (diff)
Merge remote-tracking branch 'remotes/origin/devel/manut/yocto'
Integration of Manu's latest Yocto topics (autotools)
Diffstat (limited to 'examples/yocto/meta-mini/recipes-bsp/u-boot/u-boot-script_git.bb')
-rw-r--r--examples/yocto/meta-mini/recipes-bsp/u-boot/u-boot-script_git.bb63
1 files changed, 63 insertions, 0 deletions
diff --git a/examples/yocto/meta-mini/recipes-bsp/u-boot/u-boot-script_git.bb b/examples/yocto/meta-mini/recipes-bsp/u-boot/u-boot-script_git.bb
new file mode 100644
index 0000000..c0b88e1
--- /dev/null
+++ b/examples/yocto/meta-mini/recipes-bsp/u-boot/u-boot-script_git.bb
@@ -0,0 +1,63 @@
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb"
+DEPENDS = "u-boot-mkimage-native"
+
+PV = "v2014.01+git${SRCPV}"
+
+SRCREV = "aed9475361820a65e37ed936c833322cbbc0f2b5"
+SRCBRANCH = "v2014.04-20140419"
+SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git;protocol=https;branch=${SRCBRANCH}"
+
+S = "${WORKDIR}/git"
+
+inherit deploy
+
+do_mkimage () {
+
+ # allow deploy to use the ${MACHINE} name to simplify things
+ if [ ! -d board/boundary/${MACHINE} ]; then
+ mkdir board/boundary/${MACHINE}
+ fi
+ bootscript=board/boundary/nitrogen6x/6x_bootscript-yocto.txt;
+ if ! [ -f $bootscript ]; then
+ bootscript=board/boundary/nitrogen6x/6x_bootscript-yocto.txt;
+ fi
+ echo "bootscript == $bootscript"
+
+ upgradescript=board/boundary/nitrogen6x/6x_upgrade.txt;
+ if ! [ -f $upgradescript ]; then
+ upgradescript=board/boundary/nitrogen6x/6x_upgrade.txt;
+ fi
+
+ uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
+ -n "boot script" -d $bootscript \
+ board/boundary/${MACHINE}/6x_bootscript
+
+ uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
+ -n "upgrade script" -d $upgradescript \
+ board/boundary/${MACHINE}/6x_upgrade
+}
+
+addtask mkimage after do_compile before do_install
+
+do_deploy () {
+ install -d ${DEPLOYDIR}
+ install ${S}/board/boundary/${MACHINE}/6x_bootscript \
+ ${DEPLOYDIR}/6x_bootscript-${MACHINE}-${PV}-${PR}
+ install ${S}/board/boundary/${MACHINE}/6x_upgrade \
+ ${DEPLOYDIR}/6x_upgrade-${MACHINE}-${PV}-${PR}
+
+ cd ${DEPLOYDIR}
+ rm -f 6x_bootscript-${MACHINE} 6x_upgrade-${MACHINE}
+ ln -sf 6x_bootscript-${MACHINE}-${PV}-${PR} 6x_bootscript-${MACHINE}
+ ln -sf 6x_upgrade-${MACHINE}-${PV}-${PR} 6x_upgrade-${MACHINE}
+}
+
+addtask deploy after do_install before do_build
+
+do_compile[noexec] = "1"
+do_install[noexec] = "1"
+do_populate_sysroot[noexec] = "1"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "(imx6qsabrelite)"