aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2019-02-12 17:57:52 +0800
committerRobert Yang <liezhi.yang@windriver.com>2019-02-12 18:15:21 +0800
commitb8d94b5b58d4a3572ae32accb269b71d3aeb934a (patch)
tree0b1b44af8adabd7b659607eccbaea9ee7c412b6c
parent2dbbf598192ae2b3aa488df042f56aa6c6634a00 (diff)
downloadopenembedded-core-contrib-b8d94b5b58d4a3572ae32accb269b71d3aeb934a.tar.gz
yocto-check-layer-wrapper: Fix path for oe-init-build-env
We only could run it in top of oe-core dir since it assumed oe-init-build-env was in cwd, this patch fixes the problem. [YOCTO #13148] Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rwxr-xr-xscripts/yocto-check-layer-wrapper4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/yocto-check-layer-wrapper b/scripts/yocto-check-layer-wrapper
index bbf6ee176d..b5df9ce989 100755
--- a/scripts/yocto-check-layer-wrapper
+++ b/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