diff options
Diffstat (limited to 'scripts/poky-autobuild')
| -rwxr-xr-x | scripts/poky-autobuild | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/scripts/poky-autobuild b/scripts/poky-autobuild deleted file mode 100755 index a259493440..0000000000 --- a/scripts/poky-autobuild +++ /dev/null | |||
| @@ -1,97 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Poky Automated Build Server Enviroment Setup Script | ||
| 4 | # | ||
| 5 | # Copyright (C) 2006-2007 OpenedHand Ltd. | ||
| 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 | |||
| 21 | TARGETDIR=/srv/poky/autobuild-output | ||
| 22 | CURRDIR=`pwd` | ||
| 23 | if [ "$CURRDIR" = "/srv/poky/autobuild/full-shihtzu/build" ]; then | ||
| 24 | ABTARGET="poky" | ||
| 25 | elif [ "$CURRDIR" = "/srv/poky/autobuild/full-bleeding-shihtzu/build" ]; then | ||
| 26 | ABTARGET="poky-bleeding" | ||
| 27 | elif [ "$CURRDIR" = "/srv/poky/autobuild/toolchain-shihtzu/build" ]; then | ||
| 28 | ABTARGET="toolchain" | ||
| 29 | elif [ "$CURRDIR" = "/srv/poky/autobuild/incremental-shihtzu/build" ]; then | ||
| 30 | ABTARGET="incremental" | ||
| 31 | elif [ "$CURRDIR" = "/srv/poky/autobuild/full-darwin-shihtzu/build" ]; then | ||
| 32 | ABTARGET="darwin" | ||
| 33 | if [ ! -d "$CURRDIR/meta-darwin" ]; then | ||
| 34 | svn co http://svn.o-hand.com/repos/poky/branches/experimental/meta-darwin $CURRDIR/meta-darwin | ||
| 35 | else | ||
| 36 | cd $CURRDIR/meta-darwin | ||
| 37 | svn up | ||
| 38 | cd $CURRDIR | ||
| 39 | fi | ||
| 40 | fi | ||
| 41 | |||
| 42 | if [ "xpreamble" = "x$1" ]; then | ||
| 43 | mkdir -p ./build/tmp/deploy/images | ||
| 44 | rm -f ./build/tmp/deploy/images/images-complete | ||
| 45 | svn info > ./build/tmp/deploy/images/svninfo | ||
| 46 | exit 0 | ||
| 47 | fi | ||
| 48 | |||
| 49 | BDIR="build" | ||
| 50 | . ./scripts/poky-env-internal | ||
| 51 | POSTPROCESS=`which poky-autobuild-postprocess` | ||
| 52 | |||
| 53 | if [ "xcomplete" = "x$1" ]; then | ||
| 54 | touch ./tmp/deploy/images/images-complete | ||
| 55 | chmod a+w ./tmp/deploy/images/images-complete | ||
| 56 | if [ "x$POSTPROCESS" != "x" ]; then | ||
| 57 | cd .. | ||
| 58 | $POSTPROCESS $ABTARGET $TARGETDIR | ||
| 59 | fi | ||
| 60 | exit 0 | ||
| 61 | fi | ||
| 62 | |||
| 63 | CONFFILE="./conf/auto.conf" | ||
| 64 | |||
| 65 | if [ ! -e "$CONFFILE" ]; then | ||
| 66 | if [ ! -d "./conf" ]; then | ||
| 67 | mkdir -p "./conf" | ||
| 68 | fi | ||
| 69 | echo 'PACKAGE_CLASSES = "package_ipk package_deb"' > "$CONFFILE" | ||
| 70 | echo 'BB_NUMBER_THREADS = "6"' >> "$CONFFILE" | ||
| 71 | echo 'PARALLEL_MAKE = "-j 6"' >> "$CONFFILE" | ||
| 72 | echo 'DL_DIR = "/srv/poky/sources"' >> "$CONFFILE" | ||
| 73 | echo 'INHERIT += "poky-autobuild-notifier"' >> "$CONFFILE" | ||
| 74 | if [ "$ABTARGET" = "darwin" ]; then | ||
| 75 | echo 'PACKAGE_CLASSES += "package_tar"' >> "$CONFFILE" | ||
| 76 | echo "BBFILES += \"$CURRDIR/meta-darwin/packages/*/*.bb\"" >> "./conf/local.conf" | ||
| 77 | echo 'POKYMODE = "darwin"' >> "$CONFFILE" | ||
| 78 | echo 'DARWINFILES = "file:///srv/poky/sources/"' >> "$CONFFILE" | ||
| 79 | echo 'INHERIT_INSANE = ""' >> "$CONFFILE" | ||
| 80 | echo "FILESPATH_append = \":$CURRDIR/meta-darwin/files\"" >> "$CONFFILE" | ||
| 81 | fi | ||
| 82 | fi | ||
| 83 | |||
| 84 | if [ "$ABTARGET" = "darwin" ]; then | ||
| 85 | BBPATH=$CURRDIR/meta-darwin:$BBPATH | ||
| 86 | fi | ||
| 87 | |||
| 88 | bitbake $@ | ||
| 89 | |||
| 90 | retval=$? | ||
| 91 | |||
| 92 | if [ "x$POSTPROCESS" != "x" ]; then | ||
| 93 | cd .. | ||
| 94 | $POSTPROCESS $ABTARGET $TARGETDIR | ||
| 95 | fi | ||
| 96 | |||
| 97 | exit $retval | ||
