diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2020-04-19 14:26:08 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-04-28 01:08:58 +0300 |
commit | ab714a26c3f883c68f08043cd7d8a0af4c84e2ba (patch) | |
tree | 2a6f462e69dbca29f348fd438582b1cdb281e93a /setup | |
parent | 0512644efaef9dbe1037464a8bf712f55ef36f41 (diff) | |
download | openbmc-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-x | setup | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |