From de0929e21881fe316721b99722f22642b64d3f34 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 | 7 +++++++ buildconf/default-init-build-env | 18 ++++++++++++++++++ buildconf/rpi-init-build-env | 8 ++++++++ 3 files changed, 33 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..ebea689 --- /dev/null +++ b/buildconf/bbb-init-build-env @@ -0,0 +1,7 @@ +OPT_M=beaglebone-yocto +BUILD_DIR=build + +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..0d50aa6 --- /dev/null +++ b/buildconf/default-init-build-env @@ -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 + diff --git a/buildconf/rpi-init-build-env b/buildconf/rpi-init-build-env new file mode 100644 index 0000000..bc516c9 --- /dev/null +++ b/buildconf/rpi-init-build-env @@ -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 +