diff options
author | Amithash Prasad <amithash@fb.com> | 2018-09-27 03:39:24 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-09-28 17:04:49 +0300 |
commit | 80d844b8c68bd73caa22e991a5fd90ae759d9164 (patch) | |
tree | 8acdccc4b428596bb208c04a593d0937cef88c59 /setup | |
parent | 45f490d6778656904f917546b03823dac358a085 (diff) | |
download | openbmc-80d844b8c68bd73caa22e991a5fd90ae759d9164.tar.xz |
setup: Allow user to pass in the build directory name
This can be extremely useful if one is working on multiple
platforms simultaneously
Change-Id: I316ef106d972413221ab2691dfc727f8f9bcffa8
Signed-off-by: Amithash Prasad <amithash@fb.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'setup')
-rwxr-xr-x | setup | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -23,6 +23,7 @@ fi machine() { local target=$1 + local build_dir=$2 local mfg mach realmach for mfg in meta-*; do for mach in $mfg/meta-*; do @@ -33,7 +34,7 @@ machine() { if [ -n "$target" ]; then if [ "$realmach" = "$target" ]; then echo Machine $target is $mach - TEMPLATECONF="$mach/conf" source oe-init-build-env build + TEMPLATECONF="$mach/conf" source oe-init-build-env $build_dir return fi else @@ -53,6 +54,10 @@ if [ -z "$1" ]; then elif [ "$1" = "qemuarm" ]; then source openbmc-env else - machine $1 + bld_dir=$2 + if [ -z "$2" ]; then + bld_dir="build" + fi + machine $1 $bld_dir fi |