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 18:28:28 +0200
commit09ad3c88175e9009856c8303ba77b002a33cf68c (patch)
tree2da162599566b7a00dc09cca70714c02bce23e78
parent1c049cbaec927971b0425e608b68551a4d2b898b (diff)
downloadmeta-updater-09ad3c88175e9009856c8303ba77b002a33cf68c.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"