summaryrefslogtreecommitdiffstats
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-17 16:44:01 +0200
commitf27790f542d82648231b23cf1ee1e341fb3629d2 (patch)
tree3bdcdc64a61392918477b6209d2891098b27f09f
parent9b95f510e11ef18e54f57fd5fae66ea703a526dd (diff)
downloadmeta-updater-f27790f542d82648231b23cf1ee1e341fb3629d2.tar.gz
Add ability to supply METADIR to envsetup.sh
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>
-rwxr-xr-xscripts/envsetup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh
index ff78681..e912824 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"