summaryrefslogtreecommitdiffstats
path: root/scripts/envsetup.sh
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2019-07-01 17:00:23 +0200
committerLaurent Bonnans <laurent.bonnans@here.com>2019-07-01 17:02:20 +0200
commit2545aa65d581df7bc90a942446520f2ccef8f4b8 (patch)
treecfcabdbf9f6aa6834d60932238733fca1c0812a1 /scripts/envsetup.sh
parentf7ba52b35b028d7234402f5b1e79e270a8555584 (diff)
downloadmeta-updater-wip/ci-gitlab.tar.gz
Add ability to supply METADIR to envsetup.shwip/ci-gitlab
So that we can bypass the "relative path from the script" trick that doesn't work with symlinks. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Diffstat (limited to 'scripts/envsetup.sh')
-rwxr-xr-xscripts/envsetup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh
index 6103cf6..5827bc2 100755
--- a/scripts/envsetup.sh
+++ b/scripts/envsetup.sh
@@ -21,7 +21,7 @@ if [[ $SOURCED -ne 1 ]]; then
21 exit 1 21 exit 1
22fi 22fi
23 23
24METADIR="${SOURCEDIR}/../.." 24METADIR=${METADIR:-${SOURCEDIR}/../..}
25 25
26if [[ ! -f "${BUILDDIR}/conf/local.conf" ]]; then 26if [[ ! -f "${BUILDDIR}/conf/local.conf" ]]; then
27 source "$METADIR/poky/oe-init-build-env" "$BUILDDIR" 27 source "$METADIR/poky/oe-init-build-env" "$BUILDDIR"