Commit 8f5a22d5 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

autopackage: do not copy tarball to build output



The tarball can be recreated with 'git archive'; it is not useful to
keep it as part of the build output.

Change-Id: I585aaaac765d9a52e444bcd878d3826bb7b96a45
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent f78d2493
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -26,14 +26,11 @@ find . -iname "spdk-*.tar.gz" -delete
git archive HEAD -9 --prefix=${pv}/ -o ${pv}.tar.gz

tarball=$(ls -1 spdk-*.tar.gz)
if [ $PWD != $out ]; then
	mv $tarball $out/
fi

# Build from packaged source
tmpdir=$(mktemp -d)
echo "tmpdir=$tmpdir"
tar -C "$tmpdir" -xf $out/$tarball
tar -C "$tmpdir" -xf $tarball
(
	cd "$tmpdir"/spdk-*
	time $MAKE ${MAKEFLAGS} DPDK_DIR=$DPDK_DIR CONFIG_DEBUG=n CONFIG_WERROR=y