[oe-commits] Ulf Samuelsson : Add multiple board build for u-boot-2009.11

git version control git at git.openembedded.org
Thu Feb 3 22:36:28 UTC 2011


Module: openembedded.git
Branch: ulf/linux-2.6.30-2011-01-16
Commit: bdbd65ea5033f8aa86bbc102ad0d898f2522aa39
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=bdbd65ea5033f8aa86bbc102ad0d898f2522aa39

Author: Ulf Samuelsson <ulf.samuelsson at atmel.com>
Date:   Fri Jan 28 00:06:15 2011 +0100

Add multiple board build for u-boot-2009.11

---

 recipes/u-boot/u-boot_2009.11.bb |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/recipes/u-boot/u-boot_2009.11.bb b/recipes/u-boot/u-boot_2009.11.bb
index 1b9714d..be26d92 100644
--- a/recipes/u-boot/u-boot_2009.11.bb
+++ b/recipes/u-boot/u-boot_2009.11.bb
@@ -54,8 +54,19 @@ TARGET_LDFLAGS = ""
 inherit base
 
 do_compile () {
-       oe_runmake ${UBOOT_MACHINE}
-       oe_runmake all
+	if ! [ "x${UBOOT_MACHINES}" == "x" ] ; then
+		for board in ${UBOOT_MACHINES} ; do
+			if ! [ `grep ${board}_config Makefile | wc -c` == 0 ] ; then
+				mkdir -p binaries/${board}
+				oe_runmake O=binaries/${board} distclean
+				oe_runmake O=binaries/${board} ${board}_config
+				oe_runmake O=binaries/${board} all
+			fi
+		done
+	else
+	       oe_runmake ${UBOOT_MACHINE}
+	       oe_runmake all
+	fi
 }
 
 SRC_URI[md5sum] = "d94700614225f53c853dfe714eb5fa47"





More information about the Openembedded-commits mailing list