From 09ad3c88175e9009856c8303ba77b002a33cf68c Mon Sep 17 00:00:00 2001 From: Laurent Bonnans Date: Mon, 1 Jul 2019 17:00:23 +0200 Subject: 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 --- scripts/envsetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 exit 1 fi -METADIR="${SOURCEDIR}/../.." +METADIR=${METADIR:-${SOURCEDIR}/../..} if [[ ! -f "${BUILDDIR}/conf/local.conf" ]]; then source "$METADIR/poky/oe-init-build-env" "$BUILDDIR" -- cgit v1.2.3-54-g00ecf