buildconf: Add init environment script for bbb and rpi
Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
This commit is contained in:
parent
baa49abfdd
commit
de0929e218
7
buildconf/bbb-init-build-env
Normal file
7
buildconf/bbb-init-build-env
Normal file
@ -0,0 +1,7 @@
|
||||
OPT_M=beaglebone-yocto
|
||||
BUILD_DIR=build
|
||||
|
||||
source layers/meta-blackfinn/buildconf/default-init-build-env $BUILD_DIR
|
||||
|
||||
return 0
|
||||
|
18
buildconf/default-init-build-env
Normal file
18
buildconf/default-init-build-env
Normal file
@ -0,0 +1,18 @@
|
||||
OPTIND=1
|
||||
shift $((OPTIND-1))
|
||||
for NOPTARG in $*; do
|
||||
BUILD_DIR="$NOPTARG"
|
||||
done
|
||||
|
||||
export TEMPLATECONF="../meta-rpi/buildconf"
|
||||
|
||||
export MACHINE=$OPT_M
|
||||
rm -f build/conf/bblayers.conf \
|
||||
build/conf/templateconf.cfg
|
||||
|
||||
mkdir -p $BUILD_DIR
|
||||
|
||||
source ../../poky/oe-init-build-env $BUILD_DIR
|
||||
|
||||
return 0
|
||||
|
8
buildconf/rpi-init-build-env
Normal file
8
buildconf/rpi-init-build-env
Normal file
@ -0,0 +1,8 @@
|
||||
# Defaults
|
||||
OPT_M=raspberrypi3-64
|
||||
BUILD_DIR=build
|
||||
|
||||
source layers/meta-blackfinn/buildconf/default-init-build-env $BUILD_DIR
|
||||
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user