aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChase Maupin <chasemaupin03@gmail.com>2011-03-15 08:30:41 -0500
committerKoen Kooi <koen@dominion.thruhere.net>2011-03-15 17:32:56 +0100
commitac2942e80e4982463b59290e2d9086e502eb4b01 (patch)
treea8b0406458cfe2eff1a144fea180a35b2499545b
parentc1af7e34f0f780e7fdd93a529445fedb3057c5f3 (diff)
downloadopenembedded-core-contrib-ac2942e80e4982463b59290e2d9086e502eb4b01.tar.gz
u-boot.inc: allow variable make targets
* Later versions of u-boot sometimes have top level make targets such as u-boot.imx, u-boot.kwb, and for upcoming TI devices u-boot.ti. * These targets define different calls to the mkimage tool to change the images created, such as changing the load address. * This change allows recipes to change the default make target of "all" to something like u-boot.ti or u-boot.imx by setting the UBOOT_MAKE_TARGET variable. Signed-off-by: Chase Maupin <Chase.Maupin@ti.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-rw-r--r--recipes-bsp/u-boot/u-boot.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-bsp/u-boot/u-boot.inc b/recipes-bsp/u-boot/u-boot.inc
index 3859a4c3d6..3a9a72f6b6 100644
--- a/recipes-bsp/u-boot/u-boot.inc
+++ b/recipes-bsp/u-boot/u-boot.inc
@@ -18,6 +18,7 @@ UBOOT_MACHINE ?= "${MACHINE}_config"
UBOOT_BINARY ?= "u-boot.bin"
UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin"
UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin"
+UBOOT_MAKE_TARGET ?= "all"
do_configure () {
oe_runmake ${UBOOT_MACHINE}
@@ -27,7 +28,7 @@ do_compile () {
unset LDFLAGS
unset CFLAGS
unset CPPFLAGS
- oe_runmake all
+ oe_runmake ${UBOOT_MAKE_TARGET}
oe_runmake tools env
}