]> code.ossystems Code Review - openembedded-core.git/commitdiff
poky-autobuild: Add generation of auto.conf
authorRichard Purdie <richard@openedhand.com>
Tue, 8 May 2007 11:52:33 +0000 (11:52 +0000)
committerRichard Purdie <richard@openedhand.com>
Tue, 8 May 2007 11:52:33 +0000 (11:52 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1605 311d38ba-8fff-0310-9ca6-ca027cbcb966

scripts/poky-autobuild

index 3076be975dff265c24c68876bbd892d3b1a2de52..6beea5c50f53290790e4261b2828228dfc18ee86 100755 (executable)
@@ -37,6 +37,18 @@ if [ "xcomplete" = "x$1" ]; then
     exit 0
 fi
 
+CONFFILE="./build/conf/auto.conf"
+
+if [ ! -e "$CONFFILE" ]; then
+    if [ ! -d "./build/conf" ]; then
+        mkdir -p "./build/conf"
+    fi
+    echo 'PACKAGE_CLASSES = "package_ipk package_deb"' > "$CONFFILE"
+    echo 'BB_NUMBER_THREADS = "4"' >> "$CONFFILE"
+    echo 'PARALLEL_MAKE = "-j 4"' >> "$CONFFILE"
+    echo 'DL_DIR = "/srv/poky/sources"' >> "$CONFFILE"
+fi
+
 . ./scripts/poky-env-internal
 
 bitbake $1