diff options
author | Chase Maupin <chasemaupin03@gmail.com> | 2011-03-15 08:31:01 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-16 13:54:17 +0000 |
commit | c6d6e49d07fdc13d0c84db600a4403ca29bfa2f9 (patch) | |
tree | 8ec71449c8f2f5ba7b58fb585e933bca8e9dcda4 | |
parent | bd161f759461d4fc96ad78cb60861e6ea34f0529 (diff) | |
download | poky-c6d6e49d07fdc13d0c84db600a4403ca29bfa2f9.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.
(From OE-Core rev: 1e675fac4f7f22028700d7c5bc376d029af592e0)
Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-bsp/uboot/u-boot.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-bsp/uboot/u-boot.inc b/meta/recipes-bsp/uboot/u-boot.inc index d1cebeedfb..058e3bad1c 100644 --- a/meta/recipes-bsp/uboot/u-boot.inc +++ b/meta/recipes-bsp/uboot/u-boot.inc | |||
@@ -14,13 +14,14 @@ EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS='-O2'" | |||
14 | UBOOT_MACHINE ?= "${MACHINE}_config" | 14 | UBOOT_MACHINE ?= "${MACHINE}_config" |
15 | UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin" | 15 | UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin" |
16 | UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin" | 16 | UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin" |
17 | UBOOT_MAKE_TARGET ?= "all" | ||
17 | 18 | ||
18 | do_compile () { | 19 | do_compile () { |
19 | unset LDFLAGS | 20 | unset LDFLAGS |
20 | unset CFLAGS | 21 | unset CFLAGS |
21 | unset CPPFLAGS | 22 | unset CPPFLAGS |
22 | oe_runmake ${UBOOT_MACHINE} | 23 | oe_runmake ${UBOOT_MACHINE} |
23 | oe_runmake all | 24 | oe_runmake ${UBOOT_MAKE_TARGET} |
24 | } | 25 | } |
25 | 26 | ||
26 | do_deploy () { | 27 | do_deploy () { |