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-10 17:03:19 +0200
commit6b994975c76a2943a588e71cc16e3e0f71284d05 (patch)
treeeae3b6f046db7cd5329e4b0273f6ebb7887e8531
parent567ed002259985b5a2afea2f90e5bf2df08f7147 (diff)
downloadmeta-updater-6b994975c76a2943a588e71cc16e3e0f71284d05.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"