diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-09-19 15:57:07 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-21 11:34:19 +0100 |
commit | b32174e58e89119e3ca2315030629a6580ccbd52 (patch) | |
tree | 1be70a32209bd098988f1d60cd7ce496329129d0 /scripts/yocto-check-layer-wrapper | |
parent | 455877548e7a685f0dacf3b10056ff85c7aeedf2 (diff) | |
download | poky-b32174e58e89119e3ca2315030629a6580ccbd52.tar.gz |
scripts: rename yocto-compat-layer to remove "compatible" nomenclature
"Yocto Project Compatible" [1] is a programme which requires you meet
specific criteria including going through an application process - it is
not sufficient simply to run the script we have created here and have it
produce no warnings/errors. To avoid people being confused by the fact
that this script uses the term "compatible" or variations thereof,
substitute usage of that word with "check" instead. The functionality of
the script is unchanged.
[1] https://www.yoctoproject.org/ecosystem/yocto-project-branding-program
(From OE-Core rev: 2a6126a115f10750ea89f95629d3699ad41c5665)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/yocto-check-layer-wrapper')
-rwxr-xr-x | scripts/yocto-check-layer-wrapper | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/scripts/yocto-check-layer-wrapper b/scripts/yocto-check-layer-wrapper new file mode 100755 index 0000000000..bbf6ee176d --- /dev/null +++ b/scripts/yocto-check-layer-wrapper | |||
@@ -0,0 +1,43 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | # Yocto Project layer check tool wrapper | ||
4 | # | ||
5 | # Creates a temporary build directory to run the yocto-check-layer | ||
6 | # script to avoid a contaminated environment. | ||
7 | # | ||
8 | # Copyright (C) 2017 Intel Corporation | ||
9 | # Released under the MIT license (see COPYING.MIT) | ||
10 | |||
11 | if [ -z "$BUILDDIR" ]; then | ||
12 | echo "Please source oe-init-build-env before run this script." | ||
13 | exit 2 | ||
14 | fi | ||
15 | |||
16 | # since we are using a temp directory, use the realpath for output | ||
17 | # log option | ||
18 | output_log='' | ||
19 | while getopts o: name | ||
20 | do | ||
21 | case $name in | ||
22 | o) output_log=$(realpath "$OPTARG") | ||
23 | esac | ||
24 | done | ||
25 | shift $(($OPTIND - 1)) | ||
26 | |||
27 | # generate a temp directory to run check layer script | ||
28 | base_dir=$(realpath $BUILDDIR/../) | ||
29 | cd $base_dir | ||
30 | |||
31 | build_dir=$(mktemp -p $base_dir -d -t build-XXXX) | ||
32 | |||
33 | source oe-init-build-env $build_dir | ||
34 | if [[ $output_log != '' ]]; then | ||
35 | yocto-check-layer -o "$output_log" "$*" | ||
36 | else | ||
37 | yocto-check-layer "$@" | ||
38 | fi | ||
39 | retcode=$? | ||
40 | |||
41 | rm -rf $build_dir | ||
42 | |||
43 | exit $retcode | ||