From c527fd1f14c27855a37f2e8ac5346ce8d940ced2 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 16 Oct 2014 03:05:19 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- enea-init-build-env | 264 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 264 insertions(+) create mode 100755 enea-init-build-env (limited to 'enea-init-build-env') diff --git a/enea-init-build-env b/enea-init-build-env new file mode 100755 index 0000000000..06c085597b --- /dev/null +++ b/enea-init-build-env @@ -0,0 +1,264 @@ +#!/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 DOWNLOAD_MIRRORS +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" + +function usage() { +cat < + Build dir + default: build + + -c