summaryrefslogtreecommitdiffstats
path: root/poky/scripts/yocto-check-layer-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'poky/scripts/yocto-check-layer-wrapper')
-rwxr-xr-xpoky/scripts/yocto-check-layer-wrapper4
1 files changed, 3 insertions, 1 deletions
diff --git a/poky/scripts/yocto-check-layer-wrapper b/poky/scripts/yocto-check-layer-wrapper
index bbf6ee176..b5df9ce98 100755
--- a/poky/scripts/yocto-check-layer-wrapper
+++ b/poky/scripts/yocto-check-layer-wrapper
@@ -30,7 +30,9 @@ cd $base_dir
build_dir=$(mktemp -p $base_dir -d -t build-XXXX)
-source oe-init-build-env $build_dir
+this_dir=$(dirname $(readlink -f $0))
+
+source $this_dir/../oe-init-build-env $build_dir
if [[ $output_log != '' ]]; then
yocto-check-layer -o "$output_log" "$*"
else
OpenPOWER on IntegriCloud