]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
yocto-check-layer-wrapper: Fix path for oe-init-build-env
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 12 Feb 2019 09:57:52 +0000 (17:57 +0800)
committerRobert Yang <liezhi.yang@windriver.com>
Tue, 12 Feb 2019 10:15:21 +0000 (18:15 +0800)
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>
scripts/yocto-check-layer-wrapper

index bbf6ee176deb70c207423fad507f1af9ea78dd0c..b5df9ce989817363860b86ec91646a05a4516faa 100755 (executable)
@@ -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