aboutsummaryrefslogtreecommitdiffstats
path: root/dpdk/Makefile
diff options
context:
space:
mode:
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2017-07-19 16:22:28 +0100
committerSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2017-08-18 22:03:24 +0000
commit375b62e265f0c3f2821ec45847d51cc62a7ebfca (patch)
tree544168e187fa73a4a36bfc3253ce083c274e20d8 /dpdk/Makefile
parentd185427282d4342aedd66eff6583d35b4487b7b3 (diff)
dpdk: only build SW crypto for x86_64 platforms
Change-Id: If559747ad59c82c81d15734f27e15548eca0962b Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Diffstat (limited to 'dpdk/Makefile')
-rw-r--r--dpdk/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/dpdk/Makefile b/dpdk/Makefile
index 8b4e7b60a5b..81c80ea5f62 100644
--- a/dpdk/Makefile
+++ b/dpdk/Makefile
@@ -53,6 +53,12 @@ endif
MACHINE=$(shell uname -m)
+ifeq ($(MACHINE),$(filter $(MACHINE),x86_64))
+AESNI := y
+else
+AESNI := n
+endif
+
##############################################################################
# Intel x86
##############################################################################
@@ -60,7 +66,6 @@ ifeq ($(MACHINE),$(filter $(MACHINE),x86_64 i686))
DPDK_TARGET ?= $(MACHINE)-native-linuxapp-$(DPDK_CC)
DPDK_MACHINE ?= nhm
DPDK_TUNE ?= core-avx2
-
##############################################################################
# Cavium ThunderX
##############################################################################
@@ -133,8 +138,8 @@ $(B)/custom-config: $(B)/.patch.ok Makefile
$(call set,RTE_LIBRTE_PMD_BOND,y)
$(call set,RTE_LIBRTE_IP_FRAG,y)
$(call set,RTE_LIBRTE_PMD_QAT,y)
- $(call set,RTE_LIBRTE_PMD_AESNI_MB,y)
- $(call set,RTE_LIBRTE_PMD_AESNI_GCM,y)
+ $(call set,RTE_LIBRTE_PMD_AESNI_MB,$(AESNI))
+ $(call set,RTE_LIBRTE_PMD_AESNI_GCM,$(AESNI))
$(call set,RTE_LIBRTE_MLX4_PMD,$(DPDK_MLX4_PMD))
$(call set,RTE_LIBRTE_MLX5_PMD,$(DPDK_MLX5_PMD))
@# not needed
@@ -171,8 +176,10 @@ $(CURDIR)/$(ISA_L_CRYPTO_LIB_TARBALL):
fi
DPDK_DOWNLOADS = $(CURDIR)/$(DPDK_TARBALL)
+ifeq ($(AESNI),y)
DPDK_DOWNLOADS += $(CURDIR)/$(AESNIMB_LIB_TARBALL)
DPDK_DOWNLOADS += $(CURDIR)/$(ISA_L_CRYPTO_LIB_TARBALL)
+endif
$(B)/.download.ok: $(DPDK_DOWNLOADS)
@mkdir -p $(B)