buildconf: Add init environment script for bbb and rpi

Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
This commit is contained in:
Thomas Klaehn 2019-03-02 08:05:03 +01:00
parent baa49abfdd
commit 19ab0af33a
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,9 @@
OPT_M=beaglebone-yocto
BUILD_DIR=build
export TEMPLATECONF="../meta-bbb/buildconf"
source layers/meta-blackfinn/buildconf/default-init-build-env $BUILD_DIR
return 0

View File

@ -0,0 +1,16 @@
OPTIND=1
shift $((OPTIND-1))
for NOPTARG in $*; do
BUILD_DIR="$NOPTARG"
done
export MACHINE=$OPT_M
rm -f build/conf/bblayers.conf \
build/conf/templateconf.cfg
mkdir -p $BUILD_DIR
source layers/poky/oe-init-build-env $BUILD_DIR
return 0

View File

@ -0,0 +1,10 @@
# Defaults
OPT_M=raspberrypi3-64
BUILD_DIR=build
export TEMPLATECONF="../meta-rpi/buildconf"
source layers/meta-blackfinn/buildconf/default-init-build-env $BUILD_DIR
return 0