From 154d445f7f8f1553d9bb00d1be42bf1b06eda9f1 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 28 Jun 2016 19:10:41 +0200 Subject: Fix native build on non x86_64 systems Change-Id: Iab9f6793112f19a5b54a555623d84099aa8bb03e Signed-off-by: Damjan Marion --- build-data/platforms/vpp.mk | 6 ++++++ build-data/platforms/vpp_lite.mk | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'build-data/platforms') diff --git a/build-data/platforms/vpp.mk b/build-data/platforms/vpp.mk index ec0d874db4b..9026ad3214c 100644 --- a/build-data/platforms/vpp.mk +++ b/build-data/platforms/vpp.mk @@ -13,9 +13,15 @@ # vector packet processor vpp_arch = native +ifeq ($(shell uname -m),x86_64) vpp_march = corei7 # Nehalem Instruction set vpp_mtune = corei7-avx # Optimize for Sandy Bridge vpp_dpdk_arch = corei7 +else +vpp_march = native +vpp_mtune = generic +vpp_dpdk_arch = native +endif vpp_native_tools = vppapigen vpp_uses_dpdk = yes diff --git a/build-data/platforms/vpp_lite.mk b/build-data/platforms/vpp_lite.mk index a28fec2fbe2..9375a7a90e3 100644 --- a/build-data/platforms/vpp_lite.mk +++ b/build-data/platforms/vpp_lite.mk @@ -13,8 +13,13 @@ # vector packet processor vpp_lite_arch = native +ifeq ($(shell uname -m),x86_64) vpp_lite_march = corei7 # Nehalem Instruction set vpp_lite_mtune = corei7-avx # Optimize for Sandy Bridge +else +vpp_lite_march = native +vpp_lite_mtune = generic +endif vpp_lite_native_tools = vppapigen vpp_lite_uses_dpdk = no -- cgit 1.2.3-korg