From 6b994975c76a2943a588e71cc16e3e0f71284d05 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(-) 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