summaryrefslogtreecommitdiffstats
path: root/scripts/poky-autobuild
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/poky-autobuild')
-rwxr-xr-xscripts/poky-autobuild27
1 files changed, 16 insertions, 11 deletions
diff --git a/scripts/poky-autobuild b/scripts/poky-autobuild
index 752e0a7bb0..d283b668d3 100755
--- a/scripts/poky-autobuild
+++ b/scripts/poky-autobuild
@@ -1,6 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# Poky Build Enviroment Setup Script 3# Poky Automated Build Server Enviroment Setup Script
4# 4#
5# Copyright (C) 2006-2007 OpenedHand Ltd. 5# Copyright (C) 2006-2007 OpenedHand Ltd.
6# 6#
@@ -18,11 +18,17 @@
18# along with this program; if not, write to the Free Software 18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 20
21 21TARGETDIR=/srv/poky/autobuild-output
22#if test x"$0" = x"./poky-init-build-env"; then 22CURRDIR=`pwd`
23# echo "Error: Run via '. ./poky-init-build-env'" 23if [ "$CURRDIR" = "/srv/poky/autobuild/full-shihtzu/build" ]; then
24# exit 1 24 ABTARGET="poky"
25#fi 25elif [ "$CURRDIR" = "/srv/poky/autobuild/full-bleeding-shihtzu/build" ]; then
26 ABTARGET="poky-bleeding"
27elif [ "$CURRDIR" = "/srv/poky/autobuild/toolchain-shihtzu/build" ]; then
28 ABTARGET="toolchain"
29elif [ "$CURRDIR" = "/srv/poky/autobuild/incremental-shihtzu/build" ]; then
30 ABTARGET="incremental"
31fi
26 32
27if [ "xpreamble" = "x$1" ]; then 33if [ "xpreamble" = "x$1" ]; then
28 mkdir -p ./build/tmp/deploy/images 34 mkdir -p ./build/tmp/deploy/images
@@ -38,9 +44,9 @@ POSTPROCESS=`which poky-autobuild-postprocess`
38if [ "xcomplete" = "x$1" ]; then 44if [ "xcomplete" = "x$1" ]; then
39 touch ./tmp/deploy/images/images-complete 45 touch ./tmp/deploy/images/images-complete
40 chmod a+w ./tmp/deploy/images/images-complete 46 chmod a+w ./tmp/deploy/images/images-complete
41 cd ..
42 if [ "x$POSTPROCESS" != "x" ]; then 47 if [ "x$POSTPROCESS" != "x" ]; then
43 $POSTPROCESS `pwd` 48 cd ..
49 $POSTPROCESS $ABTARGET $TARGETDIR
44 fi 50 fi
45 exit 0 51 exit 0
46fi 52fi
@@ -59,9 +65,8 @@ fi
59 65
60bitbake $@ 66bitbake $@
61 67
62cd ..
63
64if [ "x$POSTPROCESS" != "x" ]; then 68if [ "x$POSTPROCESS" != "x" ]; then
65 $POSTPROCESS `pwd` 69 cd ..
70 $POSTPROCESS $ABTARGET $TARGETDIR
66fi 71fi
67 72