From f4cf9fe05bb3f32fabea4e54dd92d368967a80da Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 26 Jun 2014 14:36:22 +0200 Subject: initial commit for Enea Linux 4.0 Migrated from the internal git server on the daisy-enea branch Signed-off-by: Adrian Dudau --- enea-init-build-env | 265 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 265 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..09d59cd3aa --- /dev/null +++ b/enea-init-build-env @@ -0,0 +1,265 @@ +#!/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