aboutsummaryrefslogtreecommitdiffstats
path: root/dpdk/Makefile
diff options
context:
space:
mode:
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)