aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-08-21 22:19:04 +0200
committerSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2017-08-22 13:34:29 +0000
commitdff9314f6f5c88b4320ec5de33fb40ac91632a0d (patch)
treec35570d648760ca5a0448a48c890c4d2d16bc5b8
parentf89ad4b9cbd98a7d13fff1e41a643d9dea8c2492 (diff)
dpdk: define MACHINE before it is used
This fixes build on non-x86 platforms like arm64. Change-Id: I7ff5df92f89e34c27889d82f35924dc28cde8c39 Signed-off-by: Damjan Marion <damarion@cisco.com> (cherry picked from commit 5f22f4ddded8ac41487dab3069ff8d77c3916205)
-rw-r--r--dpdk/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/dpdk/Makefile b/dpdk/Makefile
index 50a90fde62f..70d8157a5ff 100644
--- a/dpdk/Makefile
+++ b/dpdk/Makefile
@@ -32,6 +32,7 @@ DPDK_TAR_URL := $(DPDK_BASE_URL)/$(DPDK_TARBALL)
DPDK_17.02_TARBALL_MD5_CKSUM := 6b9f7387c35641f4e8dbba3e528f2376
DPDK_17.05_TARBALL_MD5_CKSUM := 0a68c31cd6a6cabeed0a4331073e4c05
DPDK_SOURCE := $(B)/dpdk-$(DPDK_VERSION)
+MACHINE=$(shell uname -m)
ifeq ($(MACHINE),$(filter $(MACHINE),x86_64))
AESNI := y
@@ -57,8 +58,6 @@ else
DPDK_CC=gcc
endif
-MACHINE=$(shell uname -m)
-
##############################################################################
# Intel x86
##############################################################################