diff options
author | Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> | 2017-03-22 15:22:14 +0000 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-05-30 09:31:29 +0000 |
commit | 0e2e10b77d63196bfb93ae5be1251bbc1a1b561a (patch) | |
tree | 38cfb04f4284fe5d5184c09b95689c79d950075c | |
parent | d5a65db98d66c66b03b057ac568be05f2456f73c (diff) |
dpdk: build sw cryptodev support with make verify
Change-Id: Ica95b5d3d44563c93c89b2a3233171c3aa1f048d
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | dpdk/Makefile | 13 |
2 files changed, 16 insertions, 9 deletions
@@ -427,22 +427,24 @@ define banner @echo " " endef -verify: install-dep $(BR)/.bootstrap.ok dpdk-install-dev +verify: install-dep $(BR)/.bootstrap.ok + make -C dpdk install-$(PKG) DPDK_CRYPTO_SW_PMD=y $(call banner,"Building for PLATFORM=vpp using gcc") - @make -C build-root PLATFORM=vpp TAG=vpp wipe-all install-packages + @make -C build-root PLATFORM=vpp TAG=vpp wipe-all install-packages \ + vpp_uses_dpdk_cryptodev_sw=yes ifeq ($(OS_ID)-$(OS_VERSION_ID),ubuntu-16.04) $(call banner,"Installing dependencies") @sudo -E apt-get update @sudo -E apt-get $(CONFIRM) $(FORCE) install clang $(call banner,"Building for PLATFORM=vpp using clang") - @make -C build-root CC=clang PLATFORM=vpp TAG=vpp_clang wipe-all install-packages + @make -C build-root CC=clang PLATFORM=vpp TAG=vpp_clang \ + wipe-all install-packages vpp_uses_dpdk_cryptodev_sw=yes endif $(call banner,"Building sample-plugin") @make -C build-root PLATFORM=vpp TAG=vpp sample-plugin-install $(call banner,"Building $(PKG) packages") - @make pkg-$(PKG) + @make pkg-$(PKG) vpp_uses_dpdk_cryptodev_sw=yes ifeq ($(OS_ID)-$(OS_VERSION_ID),ubuntu-16.04) @make test endif - diff --git a/dpdk/Makefile b/dpdk/Makefile index c6968d7cea7..495b4919494 100644 --- a/dpdk/Makefile +++ b/dpdk/Makefile @@ -26,7 +26,7 @@ DPDK_MLX5_PMD ?= n B := $(DPDK_BUILD_DIR) I := $(DPDK_INSTALL_DIR) DPDK_VERSION ?= 17.05 -PKG_SUFFIX ?= vpp3 +PKG_SUFFIX ?= vpp4 DPDK_BASE_URL ?= http://fast.dpdk.org/rel DPDK_TARBALL := dpdk-$(DPDK_VERSION).tar.xz DPDK_TAR_URL := $(DPDK_BASE_URL)/$(DPDK_TARBALL) @@ -41,6 +41,7 @@ AESNIMB_LIB_SOURCE := $(B)/intel-ipsec-mb-0.44-gcm.2 ISA_L_CRYPTO_LIB_TARBALL := isa_l_crypto.tar.gz ISA_L_CRYPTO_LIB_TARBALL_URL := http://github.com/01org/isa-l_crypto/archive/master.tar.gz ISA_L_CRYPTO_LIB_SOURCE := $(B)/isa-l_crypto-master +ISA_L_CRYPTO_INSTALL_DIR := $(ISA_L_CRYPTO_LIB_SOURCE)/install endif ifneq (,$(findstring clang,$(CC))) @@ -90,8 +91,8 @@ DPDK_EXTRA_CFLAGS := -g -O0 endif ifeq ($(DPDK_CRYPTO_SW_PMD),y) -DPDK_EXTRA_CFLAGS += -I$(I)/include -DPDK_EXTRA_LDFLAGS += -L$(I)/lib +DPDK_EXTRA_CFLAGS += -I$(ISA_L_CRYPTO_INSTALL_DIR)/include +DPDK_EXTRA_LDFLAGS += -L$(ISA_L_CRYPTO_INSTALL_DIR)/lib DPDK_MAKE_EXTRA_ARGS += AESNI_MULTI_BUFFER_LIB_PATH=$(AESNIMB_LIB_SOURCE) endif @@ -167,12 +168,14 @@ $(CURDIR)/$(AESNIMB_LIB_TARBALL): then cp $(DPDK_DOWNLOAD_DIR)/$(AESNIMB_LIB_TARBALL) $(CURDIR) ; \ else curl -o $@ -LO $(AESNIMB_LIB_TARBALL_URL) ; \ fi + @rm -f $(B)/.download.ok $(CURDIR)/$(ISA_L_CRYPTO_LIB_TARBALL): @if [ -e $(DPDK_DOWNLOAD_DIR)/$(ISA_L_CRYPTO_LIB_TARBALL) ] ; \ then cp $(DPDK_DOWNLOAD_DIR)/$(ISA_L_CRYPTO_LIB_TARBALL) $(CURDIR) ; \ else curl -o $@ -LO $(ISA_L_CRYPTO_LIB_TARBALL_URL) ; \ fi + @rm -f $(B)/.download.ok DPDK_DOWNLOADS = $(CURDIR)/$(DPDK_TARBALL) ifeq ($(DPDK_CRYPTO_SW_PMD),y) @@ -233,8 +236,10 @@ ifeq ($(DPDK_CRYPTO_SW_PMD),y) make -C $(AESNIMB_LIB_SOURCE) -j NO_GCM=y cp $(AESNIMB_LIB_SOURCE)/libIPSec_MB.a $(I)/lib/ # Build ISA-L Crypto library - cd $(ISA_L_CRYPTO_LIB_SOURCE) && ./autogen.sh && ./configure --prefix=$(I) + cd $(ISA_L_CRYPTO_LIB_SOURCE) && ./autogen.sh && \ + ./configure --prefix=$(ISA_L_CRYPTO_INSTALL_DIR) CFLAGS='-fPIC -DPIC -O2' make -C $(ISA_L_CRYPTO_LIB_SOURCE) -j install + cp $(ISA_L_CRYPTO_INSTALL_DIR)/lib/libisal_crypto.* $(I)/lib/ endif @make $(DPDK_MAKE_ARGS) install @touch $@ |