summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2020-04-19 14:26:08 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-04-28 01:08:58 +0300
commitab714a26c3f883c68f08043cd7d8a0af4c84e2ba (patch)
tree2a6f462e69dbca29f348fd438582b1cdb281e93a /setup
parent0512644efaef9dbe1037464a8bf712f55ef36f41 (diff)
downloadopenbmc-ab714a26c3f883c68f08043cd7d8a0af4c84e2ba.tar.xz
setup: Use machine-specific build directories by default
bitbake can struggle to cope with switching machine configurations in the one build directory, so default to using machine-specific build directories. It's recommended that the following be added to your .profile to provide a common location for bitbake data caches: ``` BB_ENV_EXTRAWHITE="SSTATE_DIR DL_DIR" SSTATE_DIR="/var/cache/bitbake/sstate-cache" DL_DIR="/var/cache/bitbake/downloads" export BB_ENV_EXTRAWHITE SSTATE_DIR DL_DIR ``` Change-Id: I70abb6a6bc901c42266f92c9f8c230b793b7a0f9 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'setup')
-rwxr-xr-xsetup3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup b/setup
index 35a4a05f2..9676bb38d 100755
--- a/setup
+++ b/setup
@@ -40,6 +40,7 @@ machine() {
if [ -n "$target" ]; then
if [ "${name}" = "${target}" ]; then
echo "Machine ${target} found in ${tmpl%/conf}"
+ mkdir -p ${build_dir}
TEMPLATECONF="${tmpl}" source \
oe-init-build-env ${build_dir}
@@ -68,7 +69,7 @@ elif [ "$1" = "qemuarm" ]; then
else
bld_dir=$2
if [ -z "$2" ]; then
- bld_dir="build"
+ bld_dir="build/$1"
fi
machine $1 $bld_dir
fi