summaryrefslogtreecommitdiffstats
path: root/scripts/yocto-check-layer-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/yocto-check-layer-wrapper')
-rwxr-xr-xscripts/yocto-check-layer-wrapper47
1 files changed, 0 insertions, 47 deletions
diff --git a/scripts/yocto-check-layer-wrapper b/scripts/yocto-check-layer-wrapper
deleted file mode 100755
index 2e3b699031..0000000000
--- a/scripts/yocto-check-layer-wrapper
+++ /dev/null
@@ -1,47 +0,0 @@
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#
10# SPDX-License-Identifier: MIT
11#
12
13if [ -z "$BUILDDIR" ]; then
14 echo "Please source oe-init-build-env before run this script."
15 exit 2
16fi
17
18# since we are using a temp directory, use the realpath for output
19# log option
20output_log=''
21while getopts o: name
22do
23 case $name in
24 o) output_log=$(realpath "$OPTARG")
25 esac
26done
27shift $(($OPTIND - 1))
28
29# generate a temp directory to run check layer script
30base_dir=$(realpath $BUILDDIR/../)
31cd $base_dir
32
33build_dir=$(mktemp -p $base_dir -d -t build-XXXX)
34
35this_dir=$(dirname $(readlink -f $0))
36
37source $this_dir/../oe-init-build-env $build_dir
38if [[ $output_log != '' ]]; then
39 yocto-check-layer -o "$output_log" "$*"
40else
41 yocto-check-layer "$@"
42fi
43retcode=$?
44
45rm -rf $build_dir
46
47exit $retcode