[Angstrom-devel] Koen Kooi : oebb: put machine in auto.conf

Angstrom Git Repos ang-git at xora.vm.bytemark.co.uk
Thu May 5 10:46:19 CEST 2011


Module: setup-scripts
Branch: oe-core
Commit: 088be906f37eb02f17bc3f063f4e5c6b3e8e249d

Author: Koen Kooi <koen at dominion.thruhere.net>
Date:   Thu May  5 09:34:10 2011 +0200

oebb: put machine in auto.conf

Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 build/conf/local.conf |    3 +--
 oebb.sh               |    8 +++++++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/build/conf/local.conf b/build/conf/local.conf
index 87cc905..a641121 100644
--- a/build/conf/local.conf
+++ b/build/conf/local.conf
@@ -16,11 +16,10 @@ IMAGE_FSTYPES += "tar.bz2"
 # Make use of SMP:
 #   PARALLEL_MAKE specifies how many concurrent compiler threads are spawned per bitbake process
 #   BB_NUMBER_THREADS specifies how many concurrent bitbake tasks will be run
-#PARALLEL_MAKE     = "-j2"
+PARALLEL_MAKE     = "-j2"
 BB_NUMBER_THREADS = "2"
 
 DISTRO   = "angstrom-2010.x"
-MACHINE ?= "beagleboard"
 
 # Set terminal types by default it expects gnome-terminal
 # but we chose xterm
diff --git a/oebb.sh b/oebb.sh
index 9eea25d..ad3e203 100755
--- a/oebb.sh
+++ b/oebb.sh
@@ -160,7 +160,7 @@ function clean_oe()
 ###############################################################################
 function oe_build()
 {
-    if [ ! -e ${OE_BUILD_DIR}/conf/site.conf ] ; then
+    if [ ! -e ${OE_BUILD_DIR}/conf/auto.conf ] ; then
         if [ -z $MACHINE ] ; then
             echo "No config found, please run $0 config <machine> first"
         else
@@ -279,6 +279,12 @@ TMPDIR = "${OE_BUILD_TMPDIR}"
 #HTTP_PROXY        = "http://${PROXYHOST}:${PROXYPORT}/"
 
 _EOF
+
+    if [ ! -e ${OE_BUILD_DIR}/conf/auto.conf ]; then
+        cat > ${OE_BUILD_DIR}/conf/auto.conf <<_EOF
+MACHINE ?= "${MACHINE}"
+_EOF
+
 fi
 }
 




More information about the Angstrom-distro-devel mailing list