summaryrefslogtreecommitdiffstats
path: root/scripts/poky-autobuild-moblin
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/poky-autobuild-moblin')
-rwxr-xr-xscripts/poky-autobuild-moblin109
1 files changed, 0 insertions, 109 deletions
diff --git a/scripts/poky-autobuild-moblin b/scripts/poky-autobuild-moblin
deleted file mode 100755
index 025b7678b8..0000000000
--- a/scripts/poky-autobuild-moblin
+++ /dev/null
@@ -1,109 +0,0 @@
1#!/bin/sh
2
3# Poky Automated Build Server Enviroment Setup Script
4#
5# Copyright (C) 2008 Intel
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
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
20
21SRVWORKDIR=/home/rpurdie
22TARGETDIR=$SRVWORKDIR/httpd/autobuild-output
23CURRDIR=`pwd`
24if [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-shihtzu/build" ]; then
25 ABTARGET="poky"
26elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-bleeding-shihtzu/build" ]; then
27 ABTARGET="poky-bleeding"
28elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/toolchain-shihtzu/build" ]; then
29 ABTARGET="toolchain"
30elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/incremental-shihtzu/build" ]; then
31 ABTARGET="incremental"
32elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-incremental/build" ]; then
33 ABTARGET="moblin-incremental"
34elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-full/build" ]; then
35 ABTARGET="moblin-full"
36elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-uricheck/build" ]; then
37 ABTARGET="moblin-uricheck"
38elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-darwin-shihtzu/build" ]; then
39 ABTARGET="darwin"
40 if [ ! -d "$CURRDIR/meta-darwin" ]; then
41 svn co http://svn.o-hand.com/repos/poky/branches/experimental/meta-darwin $CURRDIR/meta-darwin
42 else
43 cd $CURRDIR/meta-darwin
44 svn up
45 cd $CURRDIR
46 fi
47fi
48
49if [ "xpreamble" = "x$1" ]; then
50 mkdir -p ./build/tmp/deploy/images
51 rm -f ./build/tmp/deploy/images/images-complete
52 git log -1 > ./build/tmp/deploy/images/svninfo
53 exit 0
54fi
55
56BDIR="build"
57. ./scripts/poky-env-internal
58BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE"
59POSTPROCESS=`which poky-autobuild-postprocess-moblin`
60
61if [ "xcomplete" = "x$1" ]; then
62 touch ./tmp/deploy/images/images-complete
63 chmod a+w ./tmp/deploy/images/images-complete
64 if [ "x$POSTPROCESS" != "x" -a -x "$POSTPROCESS" ]; then
65 cd ..
66 $POSTPROCESS $ABTARGET $TARGETDIR $BASEDIR
67 fi
68 exit 0
69fi
70
71CONFFILE="./conf/auto.conf"
72
73if [ ! -e "$CONFFILE" ]; then
74 if [ ! -d "./conf" ]; then
75 mkdir -p "./conf"
76 fi
77 echo 'PACKAGE_CLASSES = "package_ipk package_deb package_rpm"' > "$CONFFILE"
78 echo 'BB_NUMBER_THREADS = "6"' >> "$CONFFILE"
79 echo 'PARALLEL_MAKE = "-j 6"' >> "$CONFFILE"
80 echo "DL_DIR = \"$SRVWORKDIR/httpd/sources\"" >> "$CONFFILE"
81 echo 'INHERIT += "rm_work"' >> "$CONFFILE"
82 #echo 'INHERIT += "poky-autobuild-notifier"' >> "$CONFFILE"
83 #echo 'INHERIT += "poky-moblin-autobuilder-proxy-config"' >> "$CONFFILE"
84 if [ "$ABTARGET" = "darwin" ]; then
85 echo 'PACKAGE_CLASSES += "package_tar"' >> "$CONFFILE"
86 echo "BBFILES += \"$CURRDIR/meta-darwin/packages/*/*.bb\"" >> "./conf/local.conf"
87 echo 'POKYMODE = "darwin"' >> "$CONFFILE"
88 echo 'DARWINFILES = "file:///srv/poky/sources/"' >> "$CONFFILE"
89 echo 'INHERIT_INSANE = ""' >> "$CONFFILE"
90 echo "FILESPATH_append = \":$CURRDIR/meta-darwin/files\"" >> "$CONFFILE"
91 fi
92fi
93
94BBPATH=$SRVWORKDIR/localmeta:$BBPATH
95
96if [ "$ABTARGET" = "darwin" ]; then
97 BBPATH=$CURRDIR/meta-darwin:$BBPATH
98fi
99
100bitbake $@
101
102retval=$?
103
104#if [ "x$POSTPROCESS" != "x" ]; then
105# cd ..
106# $POSTPROCESS $ABTARGET $TARGETDIR
107#fi
108
109exit $retval