[hipl-commit] [trunk] Rev 4164: autobuild: Compile HIPL for ARM in Scratchbox.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 7 Apr 2010 20:48:17 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 07/04/2010 at 20:48:17
Revision: 4164
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  autobuild: Compile HIPL for ARM in Scratchbox.

Modified:
  M  tools/hipl_autobuild.sh

=== modified file 'tools/hipl_autobuild.sh'
--- tools/hipl_autobuild.sh     2010-04-07 17:43:50 +0000
+++ tools/hipl_autobuild.sh     2010-04-07 17:47:52 +0000
@@ -2,11 +2,12 @@
 # HIPL autobuild script for periodic compilation tests.
 # The name of the branch to test needs to be passed as the first parameter.
 #
-# This script relies on the following home directory layout:
+# This script relies on the following directory layout:
 # - $HOME/src/hipl/           - location for HIPL shared repository
 # - $HOME/src/hipl/<branch>   - location for HIPL <branch> to be tested
 # - $HOME/tmp/autobuild/hipl/ - temporary build directory
 # - $HOME/tmp/autobuild/openwrt - working OpenWrt tree
+# - /srv/power/scratchbox/users/${USER}${HOME]} - working scratchbox 
environment
 #
 # If the HIPL_NOTIFICATION_EMAIL environment variable is set to a suitable 
value
 # for the user running this script, then email will be sent in case of failure.
@@ -21,6 +22,8 @@
 AUTOBUILD_DIR=$HOME/tmp/autobuild
 BUILD_DIR=$AUTOBUILD_DIR/hipl
 OPENWRT_DIR=$AUTOBUILD_DIR/openwrt
+SCRATCHBOX_DIR="/srv/power/scratchbox"
+SCRATCHBOX_HOME=$SCRATCHBOX_DIR/users/${USER}${HOME}
 
 BUILD_DIR=$HOME/tmp/autobuild/hipl
 BRANCH_URL=$HOME/src/hipl/$BRANCH_NAME
@@ -122,4 +125,11 @@
 run_program "make -j17 package/hipl-clean V=99"
 run_program "make -j17 package/hipl-install V=99"
 
+# Crosscompile HIPL in a scratchbox environment.
+CONFIGURATION="Scratchbox ARM crosscompile"
+cd $SCRATCHBOX_HOME || cleanup 1
+run_program "rm -rf hipl-main* hipl_*.changes hipl_*.deb"
+run_program "tar -xzf $CHECKOUT_DIR/hipl-main.tar.gz"
+run_program "$SCRATCHBOX_DIR/login -d hipl-main dpkg-buildpackage -rfakeroot 
-b"
+
 cleanup 0

Other related posts:

  • » [hipl-commit] [trunk] Rev 4164: autobuild: Compile HIPL for ARM in Scratchbox. - Diego Biurrun