diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2019-02-12 18:16:41 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-14 11:20:55 +0000 |
commit | a6a2c8969239a7120959419a23b43dc4dcb61fd0 (patch) | |
tree | c021d2c9d8ffc90e16324d9ec0cc603a0faaefaa | |
parent | 673b603d8a6f41cdd2baae65e24bf7335aa1edb5 (diff) | |
download | poky-a6a2c8969239a7120959419a23b43dc4dcb61fd0.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]
(From OE-Core rev: 47d7b5fcad127171243cc95c586c2c7f35cfac3b)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/yocto-check-layer-wrapper | 4 |
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 | |||
30 | 30 | ||
31 | build_dir=$(mktemp -p $base_dir -d -t build-XXXX) | 31 | build_dir=$(mktemp -p $base_dir -d -t build-XXXX) |
32 | 32 | ||
33 | source oe-init-build-env $build_dir | 33 | this_dir=$(dirname $(readlink -f $0)) |
34 | |||
35 | source $this_dir/../oe-init-build-env $build_dir | ||
34 | if [[ $output_log != '' ]]; then | 36 | if [[ $output_log != '' ]]; then |
35 | yocto-check-layer -o "$output_log" "$*" | 37 | yocto-check-layer -o "$output_log" "$*" |
36 | else | 38 | else |