summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/yocto-compat-layer-wrapper18
1 files changed, 17 insertions, 1 deletions
diff --git a/scripts/yocto-compat-layer-wrapper b/scripts/yocto-compat-layer-wrapper
index db4b6871b8..b6baeb484e 100755
--- a/scripts/yocto-compat-layer-wrapper
+++ b/scripts/yocto-compat-layer-wrapper
@@ -13,13 +13,29 @@ if [ -z "$BUILDDIR" ]; then
13 exit 2 13 exit 2
14fi 14fi
15 15
16# since we are using a temp directory, use the realpath for output
17# log option
18output_log=''
19while getopts o: name
20do
21 case $name in
22 o) output_log=$(realpath "$OPTARG")
23 esac
24done
25shift $(($OPTIND - 1))
26
27# generate a temp directory to run compat layer script
16base_dir=$(realpath $BUILDDIR/../) 28base_dir=$(realpath $BUILDDIR/../)
17cd $base_dir 29cd $base_dir
18 30
19build_dir=$(mktemp -p $base_dir -d -t build-XXXX) 31build_dir=$(mktemp -p $base_dir -d -t build-XXXX)
20 32
21source oe-init-build-env $build_dir 33source oe-init-build-env $build_dir
22yocto-compat-layer.py "$@" 34if [[ $output_log != '' ]]; then
35 yocto-compat-layer.py -o "$output_log" "$*"
36else
37 yocto-compat-layer.py "$@"
38fi
23retcode=$? 39retcode=$?
24 40
25rm -rf $build_dir 41rm -rf $build_dir