aboutsummaryrefslogtreecommitdiffstats
path: root/dpdk/Makefile
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-04-24 20:48:53 +0200
committerNeale Ranns <nranns@cisco.com>2017-04-25 07:38:49 +0000
commit1664f9ba4a154f6d11870e0bb9fdaa527b5afbaf (patch)
tree73dfeb10e87420e50cf84c2a34111bf3eb4bd38f /dpdk/Makefile
parent36c1308b35baac817c2c0b21335b1eed02689f0a (diff)
Add support for 32-bit x86 compilation in Makefiles
Change-Id: Ida73678b47b685abef4e81b5cad9fc13eb330850 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'dpdk/Makefile')
-rw-r--r--dpdk/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/dpdk/Makefile b/dpdk/Makefile
index c46ef0f1..23e84ef4 100644
--- a/dpdk/Makefile
+++ b/dpdk/Makefile
@@ -50,11 +50,13 @@ else
DPDK_CC=gcc
endif
+MACHINE=$(shell uname -m)
+
##############################################################################
-# Intel x86_64
+# Intel x86
##############################################################################
-ifeq ($(shell uname -m),x86_64)
-DPDK_TARGET ?= x86_64-native-linuxapp-$(DPDK_CC)
+ifeq ($(MACHINE),$(filter $(MACHINE),x86_64 i686))
+DPDK_TARGET ?= $(MACHINE)-native-linuxapp-$(DPDK_CC)
DPDK_MACHINE ?= nhm
DPDK_TUNE ?= core-avx2