[oe-commits] Koen Kooi : angstrom release set: pass machine via env

GIT User account git at amethyst.openembedded.net
Sun Nov 9 12:35:20 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: fc4fd06b4b6476d36ab24953337e59809e85459b
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=fc4fd06b4b6476d36ab24953337e59809e85459b

Author: Koen Kooi <koen at openembedded.org>
Date:   Sun Nov  9 13:32:51 2008 +0100

angstrom release set: pass machine via env

---

 contrib/angstrom/build-release.sh |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/contrib/angstrom/build-release.sh b/contrib/angstrom/build-release.sh
index 8688ad5..402f20d 100755
--- a/contrib/angstrom/build-release.sh
+++ b/contrib/angstrom/build-release.sh
@@ -3,36 +3,33 @@
 DO_UCLIBC=1
 
 do_build() {
-	echo "MACHINE = \"$BUILD_MACHINE\"" > conf/auto.conf
-
         if [ $DO_UCLIBC = 1 ]
         then
                 BUILD_MODE="uclibc"
-                echo 'ANGSTROM_MODE = "uclibc"' >> conf/auto.conf
+                echo 'ANGSTROM_MODE = "uclibc"' > conf/auto.conf
 
                 if [ "$BUILD_CLEAN" != "" ]
                 then
-                        bitbake -c clean $BUILD_CLEAN
+                        MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
                 fi
 
                 for target in $BUILD_TARGETS
                 do
-                        bitbake $target && do_report_success
+                        MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
                 done
         fi
 
 	BUILD_MODE="glibc"
-        echo "MACHINE = \"$BUILD_MACHINE\"" > conf/auto.conf
-        echo 'ANGSTROM_MODE = "glibc"' >> conf/auto.conf
+        echo 'ANGSTROM_MODE = "glibc"' > conf/auto.conf
 
 	if [ "$BUILD_CLEAN" != "" ]
 	then
-		bitbake -c clean $BUILD_CLEAN
+		MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
 	fi
 
 	for target in $BUILD_TARGETS
 	do
-		bitbake $target && do_report_success
+		MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
 	done
 }
 





More information about the Openembedded-commits mailing list