Add --disable-vom config option 45/9245/2
authorDave Barach <dave@barachs.net>
Mon, 6 Nov 2017 21:06:05 +0000 (16:06 -0500)
committerChris Luke <chris_luke@comcast.com>
Mon, 6 Nov 2017 22:28:51 +0000 (22:28 +0000)
The vpp object model consumes more than half of the entire [initial]
build time, so it's worth adding a config option.

Change-Id: I86ad41f78160d93835804235b8b4a3fc7988f2f7
Signed-off-by: Dave Barach <dave@barachs.net>
build-data/platforms/vpp.mk
src/Makefile.am
src/configure.ac

index 7745717..f764a1f 100644 (file)
@@ -45,11 +45,17 @@ vpp_root_packages = vpp
 # vpp_dpdk_lib_dir = /usr/lib
 # vpp_dpdk_shared_lib = yes
 
+vpp_configure_args_vpp =
+
 # load balancer plugin is not portable on 32 bit platform
 ifeq ($(MACHINE),i686)
-vpp_configure_args_vpp = --disable-lb-plugin
+vpp_configure_args_vpp += --disable-lb-plugin
 endif
 
+# To disable the VPP object model build - and save about half the build time -
+# uncomment the following...
+# vpp_configure_args_vpp += --disable-vom
+
 vpp_debug_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 -march=$(MARCH) \
        -fstack-protector-all -fPIC -Werror
 vpp_debug_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 -march=$(MARCH) \
index 7b6818f..6f146fe 100644 (file)
@@ -72,6 +72,7 @@ include uri.am
 include vcl.am
 
 SUBDIRS += plugins
+SUBDIRS += vpp-api/vapi
 
 if ENABLE_PAPI
 include vpp-api.am
@@ -82,8 +83,9 @@ if ENABLE_JAPI
 SUBDIRS += vpp-api/java
 endif
 
-SUBDIRS += vpp-api/vapi
+if ENABLE_VOM
 SUBDIRS += vpp-api/vom
+endif
 
 ###############################################################################
 # API
index 150930f..8b79cff 100644 (file)
@@ -134,6 +134,7 @@ DISABLE_ARG(vlib,   [Disable vlib and dependant libs and binaries])
 DISABLE_ARG(svm,       [Disable svm and dependant libs and binaries])
 DISABLE_ARG(papi,      [Disable Python API bindings])
 DISABLE_ARG(japi,      [Disable Java API bindings])
+DISABLE_ARG(vom,       [Disable VPP object model bindings])
 
 # --with-X