dpdk: define MACHINE before it is used 49/8149/2
authorDamjan Marion <[email protected]>
Mon, 21 Aug 2017 20:19:04 +0000 (22:19 +0200)
committerFlorin Coras <[email protected]>
Tue, 22 Aug 2017 00:42:18 +0000 (00:42 +0000)
This fixes build on non-x86 platforms like arm64.

Change-Id: I7ff5df92f89e34c27889d82f35924dc28cde8c39
Signed-off-by: Damjan Marion <[email protected]>
dpdk/Makefile

index 9f03b71..2e4b0e9 100644 (file)
@@ -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
 ##############################################################################