aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build-data/platforms/vpp.mk8
-rw-r--r--src/Makefile.am4
-rw-r--r--src/configure.ac1
3 files changed, 11 insertions, 2 deletions
diff --git a/build-data/platforms/vpp.mk b/build-data/platforms/vpp.mk
index 7745717483a..f764a1f9ae5 100644
--- a/build-data/platforms/vpp.mk
+++ b/build-data/platforms/vpp.mk
@@ -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) \
diff --git a/src/Makefile.am b/src/Makefile.am
index 7b6818f2098..6f146fea4a7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -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
diff --git a/src/configure.ac b/src/configure.ac
index 150930f03e2..8b79cff224f 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -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