aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/u-boot
diff options
context:
space:
mode:
authorchase maupin <chasemaupin03@gmail.com>2011-03-17 03:02:03 +0000
committerSteffen Sledz <sledz@dresearch-fe.de>2011-04-29 14:08:20 +0200
commit8e7b3ab09d6813915be13063723a40907a4147f1 (patch)
tree7f31ce1db30f8d2d4e0d5e73b78ba1de9d4d7553 /recipes/u-boot
parent14484254a995a5a3294fb7859c760fcb16d11ecf (diff)
downloadopenembedded-8e7b3ab09d6813915be13063723a40907a4147f1.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@openembedded.org>
Diffstat (limited to 'recipes/u-boot')
-rw-r--r--recipes/u-boot/u-boot.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes/u-boot/u-boot.inc b/recipes/u-boot/u-boot.inc
index 88c6a4d18f..ffd1e1eb74 100644
--- a/recipes/u-boot/u-boot.inc
+++ b/recipes/u-boot/u-boot.inc
@@ -16,6 +16,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}
@@ -25,7 +26,7 @@ do_compile () {
unset LDFLAGS
unset CFLAGS
unset CPPFLAGS
- oe_runmake all
+ oe_runmake ${UBOOT_MAKE_TARGET}
oe_runmake tools env HOSTCC="${CC}"
}