Author: mwise
Date: Thu Apr 30 10:49:00 2009
New Revision: 5561

URL: http://svn.slimdevices.com/jive?rev=5561&view=rev
Log:
Jive build scripts for Parabuild

Added:
    7.3/trunk/squeezeos/poky/parabuild/
    7.3/trunk/squeezeos/poky/parabuild/build.sh   (with props)
    7.3/trunk/squeezeos/poky/parabuild/clean.sh   (with props)

Added: 7.3/trunk/squeezeos/poky/parabuild/build.sh
URL: 
http://svn.slimdevices.com/jive/7.3/trunk/squeezeos/poky/parabuild/build.sh?rev=5561&view=auto
==============================================================================
--- 7.3/trunk/squeezeos/poky/parabuild/build.sh (added)
+++ 7.3/trunk/squeezeos/poky/parabuild/build.sh Thu Apr 30 10:49:00 2009
@@ -1,0 +1,85 @@
+#!/bin/sh
+
+PARABUILD_ENV_SCRIPT="/home/parabuild/private-env-7.3.sh"
+
+# Figure out how many CPUs we have, and set our multithreading
+# options accordingly. 
+CPUCOUNT=`cat /proc/cpuinfo | grep processor | wc -l`
+DOUBLECPUCOUNT=`echo "$CPUCOUNT * 2" | bc`
+
+# Function to make sure we call bitbake the same way everywhere
+function run_bitbake {
+       bitbake -vvv $*
+}
+
+echo "*** Setting poky environment ***"
+source poky-init-build-env
+
+if [ -f $PARABUILD_ENV_SCRIPT ]
+then
+       sh $PARABUILD_ENV_SCRIPT
+else
+       echo "ERROR: No $PARABUILD_ENV_SCRIPT found. Can Not Continue!"
+       exit 1
+fi
+
+echo "*** Clean cache and squeezeplay ***"
+
+# Clean the cache to ensure poky checks out updated packages from SVN
+rm -rf tmp/cache
+
+# Clean squeezeplay to ensure that the firmware revision number is correct
+run_bitbake "squeezeplay -c clean"
+
+echo "*** Update the local.conf file ***"
+if [ "x${SQUEEZEOS_PRIVATE_SVN}" != "x" ]
+then
+       echo "*** Enabled private svn ***"
+
+       # Enable the private modules (wlan drivers, audio codecs, etc)
+       sed -e 's/##//' conf/local.conf.sample > conf/local.conf
+
+       # Set the SVN path for the private modules
+       echo "SQUEEZEOS_PRIVATE_SVN = \"${SQUEEZEOS_PRIVATE_SVN}\"" >> 
conf/local.conf
+else
+       cp conf/local.conf.sample conf/local.conf
+fi
+
+# Check if a machine type exists
+if [ "x${MACHINE}" != "x" ]
+then
+       echo "*** Building for MACHINE type: ${MACHINE}"
+else
+       echo "ERROR: No MACHINE specified!"
+       exit 1
+fi
+
+echo "INHERIT += \"rm_work\"" >> conf/local.conf
+
+# Make build use all available CPUs
+echo "BB_NUMBER_THREADS = $CPUCOUNT
+DL_DIR = $HOME/.poky_dl_dir
+PARALLEL_MAKE = \"-j $CPUCOUNT\" " >> conf/local.conf
+
+# Build firmware images, multiple machines can be built here
+echo "*** Building ***"
+run_bitbake "squeezeos-image"
+
+# Do not leave the source code on the build machine, cleanup private modules
+for PKG in 'marvell-wlan-tools-src' 'marvell-gspi-module-src' 
'squeezeplay-private'
+do
+       echo "*** Cleaning $PKG ***"
+       run_bitbake "$PKG -c clean -f"
+done
+
+# QA: Check version numbers match
+SQUEEZEOS_VERSION=`cat tmp/rootfs/etc/squeezeos.version | perl -nle 'print if 
s/^[\d\.]+\sr(\d+)$/$1/'`
+SQUEEZEPLAY_VERSION=`strings tmp/rootfs/usr/bin/jive | perl -nle 'print if 
s/^[\d\.]+\sr(\d+)$/$1/'`
+
+echo "SQUEEZEOS_VERSION=${SQUEEZEOS_VERSION}"
+echo "SQUEEZEPLAY_VERSION=${SQUEEZEPLAY_VERSION}"
+
+if [ "x${SQUEEZEOS_VERSION}" != "x${SQUEEZEPLAY_VERSION}" ]
+then
+       echo "ERROR: squeezeos version mismatch"
+fi

Propchange: 7.3/trunk/squeezeos/poky/parabuild/build.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: 7.3/trunk/squeezeos/poky/parabuild/clean.sh
URL: 
http://svn.slimdevices.com/jive/7.3/trunk/squeezeos/poky/parabuild/clean.sh?rev=5561&view=auto
==============================================================================
--- 7.3/trunk/squeezeos/poky/parabuild/clean.sh (added)
+++ 7.3/trunk/squeezeos/poky/parabuild/clean.sh Thu Apr 30 10:49:00 2009
@@ -1,0 +1,12 @@
+#!/bin/sh
+
+echo "Setting environment variables..."
+source poky-init-build-env
+
+echo "Cleaning out squeezeos-image and squeezeplay"
+bitbake squeezeos-image -c clean
+bitbake squeezeplay -c clean
+
+echo "Removing old binaries"
+rm -rf $PARABUILD_BUILD_DIR/build/tmp/deploy/images/*.bin
+rm -rf $PARABUILD_BUILD_DIR/build/tmp/deploy/images/squeezeos-image-*

Propchange: 7.3/trunk/squeezeos/poky/parabuild/clean.sh
------------------------------------------------------------------------------
    svn:executable = *

_______________________________________________
Jive-checkins mailing list
Jive-checkins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to