From 972dcfcdbfe75dcfeb777150c136576cf1a71e99 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 9 Oct 2015 22:59:03 +0200 Subject: initial commit for Enea Linux 5.0 arm 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..9bc5bab43f --- /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 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" + +function usage() { +cat < + Build dir + default: build + + -c