aboutsummaryrefslogtreecommitdiffstats
path: root/dpdk/Makefile
diff options
context:
space:
mode:
authorBrian Brooks <brian.brooks@arm.com>2017-08-28 13:05:26 -0500
committerDamjan Marion <dmarion.lists@gmail.com>2017-08-31 10:46:07 +0000
commit9746552e98166cd07c5d77b26d805c5e602b0335 (patch)
tree8b1f0c8c6c78d827d21e1e3ecd47460cef1f43ef /dpdk/Makefile
parent9d9265899e89c2c8db5b5b11a09fdf4034a2149c (diff)
Native arm64 build: dpdk/Makefile change
With this change, the status of `make build': Huawei D02, Linux 4.4.0, gcc 5.4.1 - success AMD Seattle, Linux 4.4.6, gcc 5.3.1 - compiler ICEs Cavium ThunderX, Linux 4.4.49, gcc 5.4.0 - success Before: Huawei D02, Linux 4.4.0, gcc 5.4.1 - fail AMD Seattle, Linux 4.4.6, gcc 5.3.1 - fail Cavium ThunderX, Linux 4.4.49, gcc 5.4.0 - success Change-Id: I49db34a33f9ca0725c7511d4f796706892b5b2da Signed-off-by: Brian Brooks <brian.brooks@arm.com>
Diffstat (limited to 'dpdk/Makefile')
-rw-r--r--dpdk/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/dpdk/Makefile b/dpdk/Makefile
index 06e38f76..4d8dea28 100644
--- a/dpdk/Makefile
+++ b/dpdk/Makefile
@@ -75,14 +75,23 @@ ifeq ($(MACHINE),$(filter $(MACHINE),x86_64 i686))
DPDK_TARGET ?= $(MACHINE)-native-linuxapp-$(DPDK_CC)
DPDK_MACHINE ?= nhm
DPDK_TUNE ?= core-avx2
+else ifeq ($(MACHINE),aarch64)
+export CROSS=""
+ifneq (,$(findstring thunder,$(shell [[ -f /sys/bus/pci/devices/0000:00:01.0/uevent ]] && cat /sys/bus/pci/devices/0000:00:01.0/uevent | grep cavium)))
##############################################################################
# Cavium ThunderX
##############################################################################
-else ifneq (,$(findstring thunder,$(shell cat /sys/bus/pci/devices/0000:00:01.0/uevent | grep cavium)))
-export CROSS=""
DPDK_TARGET ?= arm64-thunderx-linuxapp-$(DPDK_CC)
DPDK_MACHINE ?= thunderx
DPDK_TUNE ?= generic
+else
+##############################################################################
+# Generic ARM64
+##############################################################################
+DPDK_TARGET ?= arm64-armv8a-linuxapp-$(DPDK_CC)
+DPDK_MACHINE ?= armv8a
+DPDK_TUNE ?= generic
+endif
##############################################################################
# Unknown platofrm