Fix native build on non x86_64 systems 94/1794/1
authorDamjan Marion <damarion@cisco.com>
Tue, 28 Jun 2016 17:10:41 +0000 (19:10 +0200)
committerDamjan Marion <damarion@cisco.com>
Tue, 28 Jun 2016 17:10:41 +0000 (19:10 +0200)
Change-Id: Iab9f6793112f19a5b54a555623d84099aa8bb03e
Signed-off-by: Damjan Marion <damarion@cisco.com>
build-data/platforms/vpp.mk
build-data/platforms/vpp_lite.mk
vnet/vnet/devices/nic/ixge.c

index ec0d874..9026ad3 100644 (file)
 
 # 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
index a28fec2..9375a7a 100644 (file)
 
 # 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
index cd08379..b98e7d9 100644 (file)
@@ -20,6 +20,7 @@
  *   Please use supported DPDK driver instead.
  */
 
+#if __x86_64__
 #include <vppinfra/vector.h>
 
 #ifndef CLIB_HAVE_VEC128
@@ -2815,3 +2816,4 @@ void ixge_set_next_node (ixge_rx_next_t next, char *name)
       break;
     }
 }
+#endif