#!/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