summaryrefslogtreecommitdiffstats
path: root/build-data/platforms/vpp_lite.mk
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-06-28 19:10:41 +0200
committerDamjan Marion <damarion@cisco.com>2016-06-28 19:10:41 +0200
commit154d445f7f8f1553d9bb00d1be42bf1b06eda9f1 (patch)
tree11ba54c5d97e1554f8d9547c41b6bd924a39271d /build-data/platforms/vpp_lite.mk
parenta06dfb39c6bee3fbfd702c10e1e1416b98e65455 (diff)
Fix native build on non x86_64 systems
Change-Id: Iab9f6793112f19a5b54a555623d84099aa8bb03e Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'build-data/platforms/vpp_lite.mk')
-rw-r--r--build-data/platforms/vpp_lite.mk5
1 files changed, 5 insertions, 0 deletions
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