aboutsummaryrefslogtreecommitdiffstats
path: root/dpdk
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-08-21 22:19:04 +0200
committerFlorin Coras <florin.coras@gmail.com>2017-08-22 00:42:18 +0000
commit5f22f4ddded8ac41487dab3069ff8d77c3916205 (patch)
tree718eb681309177c3c2a3eb6573e2479a009c52c7 /dpdk
parent3600b67e4fbb3088f13cb75c322c5ef37e6e57a8 (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>
Diffstat (limited to 'dpdk')
-rw-r--r--dpdk/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/dpdk/Makefile b/dpdk/Makefile
index 9f03b710e0e..2e4b0e96248 100644
--- a/dpdk/Makefile
+++ b/dpdk/Makefile
@@ -33,6 +33,7 @@ DPDK_17.02_TARBALL_MD5_CKSUM := 6b9f7387c35641f4e8dbba3e528f2376
DPDK_17.05_TARBALL_MD5_CKSUM := 0a68c31cd6a6cabeed0a4331073e4c05
DPDK_17.08_TARBALL_MD5_CKSUM := 0641f59ea8ea98afefa7cfa2699f6241
DPDK_SOURCE := $(B)/dpdk-$(DPDK_VERSION)
+MACHINE=$(shell uname -m)
ifeq ($(MACHINE),$(filter $(MACHINE),x86_64))
AESNI := y
@@ -58,8 +59,6 @@ else
DPDK_CC=gcc
endif
-MACHINE=$(shell uname -m)
-
##############################################################################
# Intel x86
##############################################################################