From 19ab0af33a3997d4486a03a90161bfa2bb8c5add Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Sat, 2 Mar 2019 08:05:03 +0100 Subject: [PATCH] buildconf: Add init environment script for bbb and rpi Signed-off-by: Thomas Klaehn --- buildconf/bbb-init-build-env | 9 +++++++++ buildconf/default-init-build-env | 16 ++++++++++++++++ buildconf/rpi-init-build-env | 10 ++++++++++ 3 files changed, 35 insertions(+) create mode 100644 buildconf/bbb-init-build-env create mode 100644 buildconf/default-init-build-env create mode 100644 buildconf/rpi-init-build-env diff --git a/buildconf/bbb-init-build-env b/buildconf/bbb-init-build-env new file mode 100644 index 0000000..0d9daa1 --- /dev/null +++ b/buildconf/bbb-init-build-env @@ -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 + diff --git a/buildconf/default-init-build-env b/buildconf/default-init-build-env new file mode 100644 index 0000000..10f694e --- /dev/null +++ b/buildconf/default-init-build-env @@ -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 + diff --git a/buildconf/rpi-init-build-env b/buildconf/rpi-init-build-env new file mode 100644 index 0000000..3a8ea2c --- /dev/null +++ b/buildconf/rpi-init-build-env @@ -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 +