]>
git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/blob - scripts/yocto-check-layer-wrapper
3 # Yocto Project layer check tool wrapper
5 # Creates a temporary build directory to run the yocto-check-layer
6 # script to avoid a contaminated environment.
8 # Copyright (C) 2017 Intel Corporation
10 # SPDX-License-Identifier: MIT
13 if [ -z "$BUILDDIR" ]; then
14 echo "Please source oe-init-build-env before run this script."
18 # since we are using a temp directory, use the realpath for output
24 o
) output_log
=$
(realpath
"$OPTARG")
27 shift $
(($OPTIND - 1))
29 # generate a temp directory to run check layer script
30 base_dir
=$
(realpath
$BUILDDIR/..
/)
33 build_dir
=$
(mktemp
-p $base_dir -d -t build-XXXX
)
35 this_dir
=$
(dirname $
(readlink
-f $0))
37 source $this_dir/..
/oe-init-build-env
$build_dir
38 if [[ $output_log != '' ]]; then
39 yocto-check-layer
-o "$output_log" "$*"
41 yocto-check-layer
"$@"