diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-06-05 17:06:42 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-09 17:12:04 +0100 |
commit | 0addd079966ece97abc2e0ba3e7d6434d23692aa (patch) | |
tree | 2a6a0803ccaf5d2b0bdeb3d1960104d2fce94e0d /scripts | |
parent | c00102e7b67e5f21247094d41943d767ad13db88 (diff) | |
download | openembedded-core-0addd079966ece97abc2e0ba3e7d6434d23692aa.tar.gz openembedded-core-0addd079966ece97abc2e0ba3e7d6434d23692aa.tar.bz2 openembedded-core-0addd079966ece97abc2e0ba3e7d6434d23692aa.zip |
scripts/yocto-compat-layer-wrapper: Use realpath of output_log
We are using a temp directory, use the realpath for output log
to store the results in the original BUILDDIR.
[YOCTO #11571]
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/yocto-compat-layer-wrapper | 18 |
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 exit 2 fi +# since we are using a temp directory, use the realpath for output +# log option +output_log='' +while getopts o: name +do + case $name in + o) output_log=$(realpath "$OPTARG") + esac +done +shift $(($OPTIND - 1)) + +# generate a temp directory to run compat layer script base_dir=$(realpath $BUILDDIR/../) cd $base_dir build_dir=$(mktemp -p $base_dir -d -t build-XXXX) source oe-init-build-env $build_dir -yocto-compat-layer.py "$@" +if [[ $output_log != '' ]]; then + yocto-compat-layer.py -o "$output_log" "$*" +else + yocto-compat-layer.py "$@" +fi retcode=$? rm -rf $build_dir |