#!/bin/sh
# Set this to the location of bb
BB_DIR=/home/hrw/devel/bitbake/bitbake
# The location of the packages build dir (sometimes bb/packages or bb/../packages)
OE_DIR=/home/hrw/devel/oe/openembedded/
HERE=`pwd`
cd $BB_DIR
svn cleanup
svn update
cd $HERE
cd $OE_DIR
git pull
cd $HERE
cd $1
# Blank this so we don't link non-arm libraries
LD_LIBRARY_PATH=
PATH=$BB_DIR/bin:$PATH
# Don't export TARGET_ARCH - it *will* cause build failures
export PATH LD_LIBRARY_PATH
#Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really
export LC_ALL=C
bbrebuild()
{
bitbake -b $1 --cmd=clean
bitbake -b $1
}
export BBPATH=`pwd`:$OE_DIR
export BB_ENV_EXTRAWHITE="MACHINE"