552e21cce6
In SPDK, we will build isa-l with no shared option and then integrate it into SPDK. And we do not need to install isal in the system libaries. Note: ocf build in autobuild.sh now needs to build include/spdk/config.h before building the ocf library, to ensure that header is available in a clean build environment. Change-Id: I3f0ce6932b386de17a77cf5bfdfd738b22417e2d Signed-off-by: Ziye Yang <optimistyzy@gmail.com> Signed-off-by: paul luse <paul.e.luse@intel.com> Signed-off-by: Jim Harris <james.r.harris@intel.com> Reviewed-on: https://review.gerrithub.io/c/441279 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Chunyang Hui <chunyang.hui@intel.com>
73 lines
1.7 KiB
Bash
Executable File
73 lines
1.7 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -xe
|
|
|
|
rootdir=$(readlink -f $(dirname $0))
|
|
source "$rootdir/test/common/autotest_common.sh"
|
|
|
|
out=$PWD
|
|
|
|
MAKEFLAGS=${MAKEFLAGS:--j16}
|
|
cd $rootdir
|
|
|
|
timing_enter autopackage
|
|
|
|
$MAKE clean
|
|
|
|
if [ `git status --porcelain --ignore-submodules | wc -l` -ne 0 ]; then
|
|
echo make clean left the following files:
|
|
git status --porcelain --ignore-submodules
|
|
exit 1
|
|
fi
|
|
|
|
spdk_pv=spdk-$(date +%Y_%m_%d)
|
|
spdk_tarball=${spdk_pv}.tar
|
|
dpdk_pv=dpdk-$(date +%Y_%m_%d)
|
|
dpdk_tarball=${dpdk_pv}.tar
|
|
ipsec_pv=ipsec-$(date +%Y_%m_%d)
|
|
ipsec_tarball=${ipsec_pv}.tar
|
|
isal_pv=isal-$(date +%Y_%m_%d)
|
|
isal_tarball=${isal_pv}.tar
|
|
|
|
find . -iname "spdk-*.tar* dpdk-*.tar* ipsec-*.tar* isal-*.tar*" -delete
|
|
git archive HEAD^{tree} --prefix=${spdk_pv}/ -o ${spdk_tarball}
|
|
|
|
# Build from packaged source
|
|
tmpdir=$(mktemp -d)
|
|
echo "tmpdir=$tmpdir"
|
|
tar -C "$tmpdir" -xf $spdk_tarball
|
|
|
|
if [ -z "$WITH_DPDK_DIR" ]; then
|
|
cd dpdk
|
|
git archive HEAD^{tree} --prefix=dpdk/ -o ../${dpdk_tarball}
|
|
cd ..
|
|
tar -C "$tmpdir/${spdk_pv}" -xf $dpdk_tarball
|
|
fi
|
|
|
|
if [ -d "intel-ipsec-mb" ]; then
|
|
cd intel-ipsec-mb
|
|
git archive HEAD^{tree} --prefix=intel-ipsec-mb/ -o ../${ipsec_tarball}
|
|
cd ..
|
|
tar -C "$tmpdir/${spdk_pv}" -xf $ipsec_tarball
|
|
fi
|
|
|
|
if [ -d "isa-l" ]; then
|
|
cd isa-l
|
|
git archive HEAD^{tree} --prefix=isa-l/ -o ../${isal_tarball}
|
|
cd ..
|
|
tar -C "$tmpdir/${spdk_pv}" -xf $isal_tarball
|
|
fi
|
|
|
|
(
|
|
cd "$tmpdir"/spdk-*
|
|
# use $config_params to get the right dependency options, but disable coverage and ubsan
|
|
# explicitly since they are not needed for this build
|
|
./configure $config_params --disable-debug --enable-werror --disable-coverage --disable-ubsan
|
|
time $MAKE ${MAKEFLAGS}
|
|
)
|
|
rm -rf "$tmpdir"
|
|
|
|
timing_exit autopackage
|
|
|
|
timing_finish
|