Skip to contentSkip to conversation

u-boot.inc: allow variable make targets

PATCH In review Chase Maupin 2 participants 3 messages Mar 15, 2011 – Mar 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 recipes/u-boot/u-boot.inc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
recipes/u-boot/u-boot.inc +2 -1
index 88c6a4d..ffd1e1e 100644
@@ -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}"
 }
 
Signature · 1 line
1.7.0.4
#1 lore raw

I should have probably clarified that this was intended for the 2011.03-maintenance branch. Tom, I have also submitted this to the oe-core. Would you be willing to pick this up?

Sincerely,
Chase Maupin
Open Platforms
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950

For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/

Quoted 44 lines

-----Original Message-----
From: Chase Maupin [mailto:[email protected]]
Sent: Tuesday, March 15, 2011 9:42 AM
To: [email protected]
Cc: Maupin, Chase
Subject: [PATCH] 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.

---
 recipes/u-boot/u-boot.inc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
recipes/u-boot/u-boot.inc +2 -2
index 88c6a4d..ffd1e1e 100644
@@ -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}"
 }
 
--

1.7.0.4

#2 lore raw
Quoted 11 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, March 15, 2011 10:16 AM
To: Chase Maupin; [email protected]
Subject: Re: [oe] [PATCH] u-boot.inc: allow variable make targets

I should have probably clarified that this was intended for the 2011.03- maintenance branch. Tom, I have also submitted this to the oe-core. Would you be willing to pick this up?

Just FYI this has been merged into the oe-core master (see http://lists.linuxtogo.org/pipermail/openembedded-core/2011-March/000533.html) as well as the angstrom-layers master (see http://lists.linuxtogo.org/pipermail/openembedded-core/2011-March/000512.html)

Quoted 51 lines
Quoted 44 lines

-----Original Message-----
From: Chase Maupin [mailto:[email protected]]
Sent: Tuesday, March 15, 2011 9:42 AM
To: [email protected]
Cc: Maupin, Chase
Subject: [PATCH] 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.

---
 recipes/u-boot/u-boot.inc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
recipes/u-boot/u-boot.inc +2 -2
index 88c6a4d..ffd1e1e 100644
@@ -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}"
 }
 
--
Quoted 1 line

1.7.0.4

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