2017-06-13 12:55:28 +00:00
|
|
|
# Defaults
|
|
|
|
OPT_M=beaglebone
|
|
|
|
BUILD_DIR=build
|
|
|
|
|
|
|
|
#
|
|
|
|
# MAIN
|
|
|
|
#
|
|
|
|
OPTIND=1
|
|
|
|
shift $((OPTIND-1))
|
|
|
|
for NOPTARG in $*; do
|
|
|
|
BUILD_DIR="$NOPTARG"
|
|
|
|
done
|
|
|
|
|
2018-01-14 08:57:37 +00:00
|
|
|
export TEMPLATECONF="../meta-bbb/buildconf"
|
2017-06-13 12:55:28 +00:00
|
|
|
|
|
|
|
export MACHINE=$OPT_M
|
|
|
|
rm -f build/conf/bblayers.conf \
|
|
|
|
build/conf/templateconf.cfg
|
2018-01-14 08:57:37 +00:00
|
|
|
|
|
|
|
mkdir -p $BUILD_DIR
|
|
|
|
|
|
|
|
if [ ! -h $BUILD_DIR/sync_ipk_up.sh ]; then
|
|
|
|
ln -s ../layers/meta-bbb/tools/scripts/sync_ipk_up.sh $BUILD_DIR/sync_ipk_up.sh
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -h $BUILD_DIR/sync_src_up.sh ]; then
|
|
|
|
ln -s ../layers/meta-bbb/tools/scripts/sync_src_up.sh $BUILD_DIR/sync_src_up.sh
|
|
|
|
fi
|
|
|
|
|
|
|
|
source layers/poky/oe-init-build-env $BUILD_DIR
|
|
|
|
|
2017-06-13 12:55:28 +00:00
|
|
|
return 0
|
|
|
|
|