From 3e26af2a0bbf3e8b9eb1ecfec58c64104a6e53da Mon Sep 17 00:00:00 2001 From: Paul Luse Date: Thu, 30 Aug 2018 16:02:18 -0700 Subject: [PATCH] autopackage: add ipsec submodule to autopackage The way autopackage builds spdk, the absence of ipsec in the tarball will result in missing dpdk crypto options if crypto is enabled. This patch adds the ipsec submodule to the tarball. Change-Id: Ia21f3e90c4753569cf2aa1887e4938740fd47113 Signed-off-by: Paul Luse Reviewed-on: https://review.gerrithub.io/424142 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto Chandler-Test-Pool: SPDK Automated Test System --- autopackage.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/autopackage.sh b/autopackage.sh index cfb04877f..19b5cd286 100755 --- a/autopackage.sh +++ b/autopackage.sh @@ -24,8 +24,10 @@ 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 -find . -iname "spdk-*.tar* dpdk-*.tar*" -delete +find . -iname "spdk-*.tar* dpdk-*.tar* ipsec-*.tar*" -delete git archive HEAD^{tree} --prefix=${spdk_pv}/ -o ${spdk_tarball} # Build from packaged source @@ -40,6 +42,13 @@ if [ -z "$WITH_DPDK_DIR" ]; then 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 + ( cd "$tmpdir"/spdk-* # use $config_params to get the right dependency options, but disable coverage and ubsan