From 1664f9ba4a154f6d11870e0bb9fdaa527b5afbaf Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 24 Apr 2017 20:48:53 +0200 Subject: Add support for 32-bit x86 compilation in Makefiles Change-Id: Ida73678b47b685abef4e81b5cad9fc13eb330850 Signed-off-by: Damjan Marion --- dpdk/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'dpdk/Makefile') 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 -- cgit 1.2.3-korg