diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2009-05-09 15:27:25 +0100 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-05-09 15:28:17 +0100 |
| commit | 62d37206681c3049c5ee7590cb9bce59e782ed15 (patch) | |
| tree | 7b3b091e3c376b2350718c9f418020d1021a3acd /scripts/poky-autobuild-moblin | |
| parent | 44a88198c129eff0aabd3fb20b999b4bef4aadde (diff) | |
| download | poky-62d37206681c3049c5ee7590cb9bce59e782ed15.tar.gz | |
scripts: Remove autobuilder scripts
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'scripts/poky-autobuild-moblin')
| -rwxr-xr-x | scripts/poky-autobuild-moblin | 109 |
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 | |||
| 21 | SRVWORKDIR=/home/rpurdie | ||
| 22 | TARGETDIR=$SRVWORKDIR/httpd/autobuild-output | ||
| 23 | CURRDIR=`pwd` | ||
| 24 | if [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-shihtzu/build" ]; then | ||
| 25 | ABTARGET="poky" | ||
| 26 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-bleeding-shihtzu/build" ]; then | ||
| 27 | ABTARGET="poky-bleeding" | ||
| 28 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/toolchain-shihtzu/build" ]; then | ||
| 29 | ABTARGET="toolchain" | ||
| 30 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/incremental-shihtzu/build" ]; then | ||
| 31 | ABTARGET="incremental" | ||
| 32 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-incremental/build" ]; then | ||
| 33 | ABTARGET="moblin-incremental" | ||
| 34 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-full/build" ]; then | ||
| 35 | ABTARGET="moblin-full" | ||
| 36 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-uricheck/build" ]; then | ||
| 37 | ABTARGET="moblin-uricheck" | ||
| 38 | elif [ "$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 | ||
| 47 | fi | ||
| 48 | |||
| 49 | if [ "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 | ||
| 54 | fi | ||
| 55 | |||
| 56 | BDIR="build" | ||
| 57 | . ./scripts/poky-env-internal | ||
| 58 | BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE" | ||
| 59 | POSTPROCESS=`which poky-autobuild-postprocess-moblin` | ||
| 60 | |||
| 61 | if [ "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 | ||
| 69 | fi | ||
| 70 | |||
| 71 | CONFFILE="./conf/auto.conf" | ||
| 72 | |||
| 73 | if [ ! -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 | ||
| 92 | fi | ||
| 93 | |||
| 94 | BBPATH=$SRVWORKDIR/localmeta:$BBPATH | ||
| 95 | |||
| 96 | if [ "$ABTARGET" = "darwin" ]; then | ||
| 97 | BBPATH=$CURRDIR/meta-darwin:$BBPATH | ||
| 98 | fi | ||
| 99 | |||
| 100 | bitbake $@ | ||
| 101 | |||
| 102 | retval=$? | ||
| 103 | |||
| 104 | #if [ "x$POSTPROCESS" != "x" ]; then | ||
| 105 | # cd .. | ||
| 106 | # $POSTPROCESS $ABTARGET $TARGETDIR | ||
| 107 | #fi | ||
| 108 | |||
| 109 | exit $retval | ||
