vlib: deduplicatee code in main and worker main loop
[vpp.git] / build-data / platforms / vpp_lite.mk
index d35d234..a556b48 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
 
-vpp_lite_root_packages = vpp vlib vlib-api vnet svm vpp-api-test \
-       vpp-api gmod
+# Uncoment to enable building unit tests
+#vpp_lite_enable_tests = yes
+
+vpp_lite_root_packages = vpp gmod
 
 vlib_configure_args_vpp_lite = --with-pre-data=128
 
-vnet_configure_args_vpp_lite = --without-vcgn
-vpp_configure_args_vpp_lite = --without-vcgn
+vnet_configure_args_vpp_lite =
+vpp_configure_args_vpp_lite =
 
 vpp_lite_debug_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 -march=$(MARCH) \
        -fstack-protector-all -fPIC -Werror
@@ -36,3 +43,8 @@ vpp_lite_TAG_CFLAGS = -g -O2 -DFORTIFY_SOURCE=2 -march=$(MARCH) -mtune=$(MTUNE)
        -fstack-protector -fPIC -Werror
 vpp_lite_TAG_LDFLAGS = -g -O2 -DFORTIFY_SOURCE=2 -march=$(MARCH) -mtune=$(MTUNE) \
        -fstack-protector -fPIC -Werror
+
+vpp_lite_gcov_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -march=$(MARCH) \
+       -fPIC -Werror -fprofile-arcs -ftest-coverage
+vpp_lite_gcov_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -march=$(MARCH) \
+       -fPIC -Werror -coverage