From 4f56a3b823cb8dd43086ad8bdb78ff37520613b4 Mon Sep 17 00:00:00 2001 From: Catalina Focsa Date: Fri, 11 Dec 2015 10:32:32 +0100 Subject: Add enea-init-build-env to meta-enea-base Add enea-init-build-env to the repo. Sourcing it from poky dir shall be done with explicit path using: "source meta-enea-base/enea-init-build-env [OPTIONS]". The default layer added to bblayers.conf is now meta-enea-base instead of meta-enea and shouldn't be added in the "-l" option as usual. Signed-off-by: Catalina Focsa Signed-off-by: Adrian Calianu --- enea-init-build-env | 261 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 261 insertions(+) create mode 100755 enea-init-build-env diff --git a/enea-init-build-env b/enea-init-build-env new file mode 100755 index 0000000..e231a5b --- /dev/null +++ b/enea-init-build-env @@ -0,0 +1,261 @@ +#!/bin/bash +if [ "$_" = "$0" ]; then + echo "Error: This script needs to be sourced." + echo "Please run as 'source $0'." + exit +fi + +# always unset these in case something goes wrong in the previous run +unset BBLAYERS_CONF_EXISTS +unset BUILD_PATH +unset CUSTOM_SCRIPTS +unset DISTRO +unset DOWNLOAD_DLDIR +unset SOURCE_MIRROR_URL +unset ENEAROOT +unset EXITME +unset LOCAL_CONF_EXISTS +unset MACHINE +unset METALAYERS +unset NUM_CORES +unset SSTATE_DIR +unset SSTATE_MIRRORS +unset TESTING_ADDITIONS +unset -f usage +unset OPTERR +unset OPTIND +unset OPTION + +NUM_CORES=$(grep -c processor /proc/cpuinfo || echo 2) +BUILD_PATH="build" +METALAYERS="meta-enea-base" + +function usage() { +cat < + Build dir + default: build + + -c