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
committerDave Wallace <dwallacelf@gmail.com>2017-08-09 20:47:35 +0000
commit618f7b003ea92c01bbb892b937a5ce5417603d6b (patch)
treebf1c717c384c5eccbce6517d76cf08f9212ccaf4 /dpdk/Makefile
parent024064d0a944495de2bab839f96ebb9d06ecdb90 (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 659439c0..be1d628a 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
##############################################################################
@@ -139,8 +144,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
@@ -177,8 +182,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)