1 # Copyright (c) 2016 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
14 export WS_ROOT=$(CURDIR)
15 export BR=$(WS_ROOT)/build-root
16 CCACHE_DIR?=$(BR)/.ccache
21 MACHINE=$(shell uname -m)
26 define disable_plugins
29 $(patsubst %,"plugin %_plugin.so { disable }",$(subst $(,), ,$(1))) \
34 MINIMAL_STARTUP_CONF=" \
37 cli-listen /run/vpp/cli.sock \
39 $(if $(wildcard startup.vpp),"exec startup.vpp",) \
41 $(if $(DPDK_CONFIG), "dpdk { $(DPDK_CONFIG) }",) \
42 $(call disable_plugins,$(DISABLED_PLUGINS)) \
45 GDB_ARGS= -ex "handle SIGUSR1 noprint nostop"
50 # We allow Darwin (MacOS) for docs generation; VPP build will still fail.
51 ifneq ($(shell uname),Darwin)
52 OS_ID = $(shell grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
53 OS_VERSION_ID= $(shell grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
56 ifeq ($(filter ubuntu debian,$(OS_ID)),$(OS_ID))
58 else ifeq ($(filter rhel centos fedora opensuse opensuse-leap opensuse-tumbleweed,$(OS_ID)),$(OS_ID))
62 # +libganglia1-dev if building the gmond plugin
64 DEB_DEPENDS = curl build-essential autoconf automake ccache
65 DEB_DEPENDS += debhelper dkms git libtool libapr1-dev dh-systemd
66 DEB_DEPENDS += libconfuse-dev git-review exuberant-ctags cscope pkg-config
67 DEB_DEPENDS += lcov chrpath autoconf indent clang-format libnuma-dev
68 DEB_DEPENDS += python-all python3-all python3-setuptools python-dev
69 DEB_DEPENDS += python-virtualenv python-pip libffi6 check
70 DEB_DEPENDS += libboost-all-dev libffi-dev python3-ply libmbedtls-dev
71 DEB_DEPENDS += cmake ninja-build uuid-dev python3-jsonschema
72 ifeq ($(OS_VERSION_ID),14.04)
73 DEB_DEPENDS += libssl-dev
74 else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-8)
75 DEB_DEPENDS += libssl-dev
76 APT_ARGS = -t jessie-backports
77 else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-9)
78 DEB_DEPENDS += libssl1.0-dev
80 DEB_DEPENDS += libssl-dev
83 RPM_DEPENDS = redhat-lsb glibc-static
84 RPM_DEPENDS += apr-devel
85 RPM_DEPENDS += numactl-devel
86 RPM_DEPENDS += check check-devel
87 RPM_DEPENDS += boost boost-devel
88 RPM_DEPENDS += selinux-policy selinux-policy-devel
89 RPM_DEPENDS += ninja-build
90 RPM_DEPENDS += libuuid-devel
91 RPM_DEPENDS += mbedtls-devel
93 ifeq ($(OS_ID),fedora)
94 RPM_DEPENDS += dnf-utils
95 RPM_DEPENDS += subunit subunit-devel
96 RPM_DEPENDS += compat-openssl10-devel
97 RPM_DEPENDS += python3-devel python3-ply
98 RPM_DEPENDS += python3-virtualenv python3-jsonschema
100 RPM_DEPENDS_GROUPS = 'C Development Tools and Libraries'
102 RPM_DEPENDS += yum-utils
103 RPM_DEPENDS += openssl-devel
104 RPM_DEPENDS += python-devel python36-ply
105 RPM_DEPENDS += python3-devel python3-pip
106 RPM_DEPENDS += python-virtualenv python36-jsonschema
107 RPM_DEPENDS += devtoolset-7
108 RPM_DEPENDS += cmake3
109 RPM_DEPENDS_GROUPS = 'Development Tools'
112 # +ganglia-devel if building the ganglia plugin
114 RPM_DEPENDS += chrpath libffi-devel rpm-build
116 RPM_DEPENDS_DEBUG = glibc-debuginfo e2fsprogs-debuginfo
117 RPM_DEPENDS_DEBUG += krb5-debuginfo openssl-debuginfo
118 RPM_DEPENDS_DEBUG += zlib-debuginfo nss-softokn-debuginfo
119 RPM_DEPENDS_DEBUG += yum-plugin-auto-update-debug-info
120 # lowercase- replace spaces with dashes.
121 SUSE_NAME= $(shell grep '^NAME=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g' | sed -e 's/ /-/' | awk '{print tolower($$0)}')
122 SUSE_ID= $(shell grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g' | cut -d' ' -f2)
123 RPM_SUSE_BUILDTOOLS_DEPS = autoconf automake ccache check-devel chrpath
124 RPM_SUSE_BUILDTOOLS_DEPS += clang cmake indent libtool make ninja python3-ply
126 RPM_SUSE_DEVEL_DEPS = glibc-devel-static libnuma-devel
127 RPM_SUSE_DEVEL_DEPS += libopenssl-devel openssl-devel mbedtls-devel libuuid-devel
129 RPM_SUSE_PYTHON_DEPS = python-devel python3-devel python-pip python3-pip
130 RPM_SUSE_PYTHON_DEPS += python-rpm-macros python3-rpm-macros
132 RPM_SUSE_PLATFORM_DEPS = distribution-release shadow rpm-build
134 ifeq ($(OS_ID),opensuse)
135 ifeq ($(SUSE_NAME),tumbleweed)
136 RPM_SUSE_DEVEL_DEPS = libboost_headers1_68_0-devel-1.68.0 libboost_thread1_68_0-devel-1.68.0 gcc
137 RPM_SUSE_PYTHON_DEPS += python3-ply python2-virtualenv
139 ifeq ($(SUSE_ID),15.0)
140 RPM_SUSE_DEVEL_DEPS += libboost_headers-devel libboost_thread-devel gcc
141 RPM_SUSE_PYTHON_DEPS += python3-ply python2-virtualenv
143 RPM_SUSE_DEVEL_DEPS += libboost_headers1_68_0-devel-1.68.0 gcc6
144 RPM_SUSE_PYTHON_DEPS += python-virtualenv
148 ifeq ($(OS_ID),opensuse-leap)
149 ifeq ($(SUSE_ID),15.0)
150 RPM_SUSE_DEVEL_DEPS += libboost_headers-devel libboost_thread-devel gcc git curl
151 RPM_SUSE_PYTHON_DEPS += python3-ply python2-virtualenv
155 RPM_SUSE_DEPENDS += $(RPM_SUSE_BUILDTOOLS_DEPS) $(RPM_SUSE_DEVEL_DEPS) $(RPM_SUSE_PYTHON_DEPS) $(RPM_SUSE_PLATFORM_DEPS)
157 ifneq ($(wildcard $(STARTUP_DIR)/startup.conf),)
158 STARTUP_CONF ?= $(STARTUP_DIR)/startup.conf
161 ifeq ($(findstring y,$(UNATTENDED)),y)
168 ifneq ($(SAMPLE_PLUGIN),no)
169 TARGETS += sample-plugin
172 .PHONY: help wipe wipe-release build build-release rebuild rebuild-release
173 .PHONY: run run-release debug debug-release build-vat run-vat pkg-deb pkg-rpm
175 .PHONY: test test-debug retest retest-debug test-doc test-wipe-doc test-help test-wipe
176 .PHONY: test-cov test-wipe-cov
179 @echo "========================================================================"
181 @echo "========================================================================"
186 @echo "Make Targets:"
187 @echo " install-dep - install software dependencies"
188 @echo " wipe - wipe all products of debug build "
189 @echo " wipe-release - wipe all products of release build "
190 @echo " build - build debug binaries"
191 @echo " build-release - build release binaries"
192 @echo " build-coverity - build coverity artifacts"
193 @echo " rebuild - wipe and build debug binares"
194 @echo " rebuild-release - wipe and build release binares"
195 @echo " run - run debug binary"
196 @echo " run-release - run release binary"
197 @echo " debug - run debug binary with debugger"
198 @echo " debug-release - run release binary with debugger"
199 @echo " test - build and run (basic) functional tests"
200 @echo " test-debug - build and run (basic) functional tests (debug build)"
201 @echo " test-all - build and run functional and extended tests"
202 @echo " test-all-debug - build and run functional and extended tests (debug build)"
203 @echo " test-gcov - build and run functional tests (gcov build)"
204 @echo " test-shell - enter shell with test environment"
205 @echo " test-shell-debug - enter shell with test environment (debug build)"
206 @echo " test-wipe - wipe files generated by unit tests"
207 @echo " retest - run functional tests"
208 @echo " retest-debug - run functional tests (debug build)"
209 @echo " test-help - show help on test framework"
210 @echo " run-vat - run vpp-api-test tool"
211 @echo " pkg-deb - build DEB packages"
212 @echo " pkg-deb-debug - build DEB debug packages"
213 @echo " vom-pkg-deb - build vom DEB packages"
214 @echo " vom-pkg-deb-debug - build vom DEB debug packages"
215 @echo " pkg-rpm - build RPM packages"
216 @echo " install-ext-deps - install external development dependencies"
217 @echo " ctags - (re)generate ctags database"
218 @echo " gtags - (re)generate gtags database"
219 @echo " cscope - (re)generate cscope database"
220 @echo " checkstyle - check coding style"
221 @echo " fixstyle - fix coding style"
222 @echo " doxygen - (re)generate documentation"
223 @echo " bootstrap-doxygen - setup Doxygen dependencies"
224 @echo " wipe-doxygen - wipe all generated documentation"
225 @echo " checkfeaturelist - check FEATURE.yaml according to schema"
226 @echo " featurelist - dump feature list in markdown"
227 @echo " json-api-files - (re)-generate json api files"
228 @echo " json-api-files-debug - (re)-generate json api files for debug target"
229 @echo " docs - Build the Sphinx documentation"
230 @echo " docs-venv - Build the virtual environment for the Sphinx docs"
231 @echo " docs-clean - Remove the generated files from the Sphinx docs"
232 @echo " test-doc - generate documentation for test framework"
233 @echo " test-wipe-doc - wipe documentation for test framework"
234 @echo " test-cov - generate code coverage report for test framework"
235 @echo " test-wipe-cov - wipe code coverage report for test framework"
236 @echo " test-checkstyle - check PEP8 compliance for test framework"
237 @echo " test-refresh-deps - refresh the Python dependencies for the tests"
239 @echo "Make Arguments:"
240 @echo " V=[0|1] - set build verbosity level"
241 @echo " STARTUP_CONF=<path> - startup configuration file"
242 @echo " (e.g. /etc/vpp/startup.conf)"
243 @echo " STARTUP_DIR=<path> - startup drectory (e.g. /etc/vpp)"
244 @echo " It also sets STARTUP_CONF if"
245 @echo " startup.conf file is present"
246 @echo " GDB=<path> - gdb binary to use for debugging"
247 @echo " PLATFORM=<name> - target platform. default is vpp"
248 @echo " TEST=<filter> - apply filter to test set, see test-help"
249 @echo " DPDK_CONFIG=<conf> - add specified dpdk config commands to"
250 @echo " autogenerated startup.conf"
251 @echo " (e.g. \"no-pci\" )"
252 @echo " SAMPLE_PLUGIN=yes - in addition build/run/debug sample plugin"
253 @echo " DISABLED_PLUGINS=<list> - comma separated list of plugins which"
254 @echo " should not be loaded"
256 @echo "Current Argument Values:"
258 @echo " STARTUP_CONF = $(STARTUP_CONF)"
259 @echo " STARTUP_DIR = $(STARTUP_DIR)"
260 @echo " GDB = $(GDB)"
261 @echo " PLATFORM = $(PLATFORM)"
262 @echo " DPDK_VERSION = $(DPDK_VERSION)"
263 @echo " DPDK_CONFIG = $(DPDK_CONFIG)"
264 @echo " SAMPLE_PLUGIN = $(SAMPLE_PLUGIN)"
265 @echo " DISABLED_PLUGINS = $(DISABLED_PLUGINS)"
268 ifeq ($(findstring y,$(UNATTENDED)),y)
271 ifeq ($(filter ubuntu debian,$(OS_ID)),$(OS_ID))
272 @MISSING=$$(apt-get install -y -qq -s $(DEB_DEPENDS) | grep "^Inst ") ; \
273 if [ -n "$$MISSING" ] ; then \
274 echo "\nPlease install missing packages: \n$$MISSING\n" ; \
275 echo "by executing \"make install-dep\"\n" ; \
279 else ifneq ("$(wildcard /etc/redhat-release)","")
280 @for i in $(RPM_DEPENDS) ; do \
281 RPM=$$(basename -s .rpm "$${i##*/}" | cut -d- -f1,2,3) ; \
282 MISSING+=$$(rpm -q $$RPM | grep "^package") ; \
284 if [ -n "$$MISSING" ] ; then \
285 echo "Please install missing RPMs: \n$$MISSING\n" ; \
286 echo "by executing \"make install-dep\"\n" ; \
294 @echo "'make bootstrap' is not needed anymore"
297 ifeq ($(filter ubuntu debian,$(OS_ID)),$(OS_ID))
298 ifeq ($(OS_VERSION_ID),14.04)
299 @sudo -E apt-get $(CONFIRM) $(FORCE) install software-properties-common
301 ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-8)
302 @grep -q jessie-backports /etc/apt/sources.list /etc/apt/sources.list.d/* 2> /dev/null \
303 || ( echo "Please install jessie-backports" ; exit 1 )
305 @sudo -E apt-get update
306 @sudo -E apt-get $(APT_ARGS) $(CONFIRM) $(FORCE) install $(DEB_DEPENDS)
307 else ifneq ("$(wildcard /etc/redhat-release)","")
309 @sudo -E yum-config-manager --enable rhel-server-rhscl-7-rpms
310 @sudo -E yum groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
311 @sudo -E yum install $(CONFIRM) $(RPM_DEPENDS)
312 @sudo -E debuginfo-install $(CONFIRM) glibc openssl-libs mbedtls-devel zlib
313 else ifeq ($(OS_ID),centos)
314 @sudo -E yum install $(CONFIRM) centos-release-scl-rh epel-release
315 @sudo -E yum groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
316 @sudo -E yum install $(CONFIRM) $(RPM_DEPENDS)
317 @sudo -E yum install $(CONFIRM) --enablerepo=base-debuginfo $(RPM_DEPENDS_DEBUG)
318 else ifeq ($(OS_ID),fedora)
319 @sudo -E dnf groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
320 @sudo -E dnf install $(CONFIRM) $(RPM_DEPENDS)
321 @sudo -E debuginfo-install $(CONFIRM) glibc openssl-libs mbedtls-devel zlib
323 else ifeq ($(filter opensuse-tumbleweed,$(OS_ID)),$(OS_ID))
324 @sudo -E zypper refresh
325 @sudo -E zypper install -y $(RPM_SUSE_DEPENDS)
326 else ifeq ($(filter opensuse-leap,$(OS_ID)),$(OS_ID))
327 @sudo -E zypper refresh
328 @sudo -E zypper install -y $(RPM_SUSE_DEPENDS)
329 else ifeq ($(filter opensuse,$(OS_ID)),$(OS_ID))
330 @sudo -E zypper refresh
331 @sudo -E zypper install -y $(RPM_SUSE_DEPENDS)
333 $(error "This option currently works only on Ubuntu, Debian, RHEL, CentOS or openSUSE systems")
335 git config commit.template .git_commit_template.txt
338 @make -C $(BR) PLATFORM=$(PLATFORM) TAG=$(1) $(2)
341 $(BR)/scripts/.version:
342 ifneq ("$(wildcard /etc/redhat-release)","")
343 $(shell $(BR)/scripts/version rpm-string > $(BR)/scripts/.version)
345 $(shell $(BR)/scripts/version > $(BR)/scripts/.version)
348 DIST_FILE = $(BR)/vpp-$(shell src/scripts/version).tar
349 DIST_SUBDIR = vpp-$(shell src/scripts/version|cut -f1 -d-)
352 @if git rev-parse 2> /dev/null ; then \
354 --prefix=$(DIST_SUBDIR)/ \
358 git describe > $(BR)/.version ; \
360 (cd .. ; tar -cf $(DIST_FILE) $(DIST_SUBDIR) --exclude=*.tar) ; \
361 src/scripts/version > $(BR)/.version ; \
364 --file $(DIST_FILE) \
365 --transform='s,.*/.version,$(DIST_SUBDIR)/src/scripts/.version,' \
367 @$(RM) $(BR)/.version $(DIST_FILE).xz
368 @xz -v --threads=0 $(DIST_FILE)
369 @$(RM) $(BR)/vpp-latest.tar.xz
370 @ln -rs $(DIST_FILE).xz $(BR)/vpp-latest.tar.xz
372 build: $(BR)/.deps.ok
373 $(call make,$(PLATFORM)_debug,$(addsuffix -install,$(TARGETS)))
376 @$(RM) $(BR)/*.tar.xz
378 wipe: wipedist test-wipe $(BR)/.deps.ok
379 $(call make,$(PLATFORM)_debug,$(addsuffix -wipe,$(TARGETS)))
380 @find . -type f -name "*.api.json" ! -path "./test/*" -exec rm {} \;
384 build-release: $(BR)/.deps.ok
385 $(call make,$(PLATFORM),$(addsuffix -install,$(TARGETS)))
387 wipe-release: test-wipe $(BR)/.deps.ok
388 $(call make,$(PLATFORM),$(addsuffix -wipe,$(TARGETS)))
390 rebuild-release: wipe-release build-release
392 libexpand = $(subst $(subst ,, ),:,$(foreach lib,$(1),$(BR)/install-$(2)-native/vpp/$(lib)/$(3)))
394 export TEST_DIR ?= $(WS_ROOT)/test
397 $(if $(filter-out $(3),retest),make -C $(BR) PLATFORM=$(1) TAG=$(2) vpp-install,)
398 $(eval libs:=lib lib64)
400 VPP_BUILD_DIR=$(BR)/build-$(2)-native \
401 VPP_BIN=$(BR)/install-$(2)-native/vpp/bin/vpp \
402 VPP_PLUGIN_PATH=$(call libexpand,$(libs),$(2),vpp_plugins) \
403 VPP_TEST_PLUGIN_PATH=$(call libexpand,$(libs),$(2),vpp_api_test_plugins) \
404 VPP_INSTALL_PATH=$(BR)/install-$(2)-native/ \
405 LD_LIBRARY_PATH=$(call libexpand,$(libs),$(2),) \
406 EXTENDED_TESTS=$(EXTENDED_TESTS) \
409 CACHE_OUTPUT=$(CACHE_OUTPUT) \
414 $(call test,vpp,vpp,test)
417 $(call test,vpp,vpp_debug,test)
420 $(call test,vpp,vpp_gcov,test)
423 $(if $(filter-out $(3),retest),make -C $(BR) PLATFORM=vpp TAG=vpp vom-install,)
424 $(eval EXTENDED_TESTS=yes)
425 $(call test,vpp,vpp,test)
428 $(if $(filter-out $(3),retest),make -C $(BR) PLATFORM=vpp TAG=vpp_debug vom-install,)
429 $(eval EXTENDED_TESTS=yes)
430 $(call test,vpp,vpp_debug,test)
433 @make -C test papi-wipe
442 $(call test,vpp,vpp,shell)
445 $(call test,vpp,vpp_debug,shell)
448 $(call test,vpp,vpp_gcov,shell)
451 @make -C test test-dep
457 @make -C test wipe-doc
460 @make -C $(BR) PLATFORM=vpp TAG=vpp_gcov vom-install
461 $(eval EXTENDED_TESTS=yes)
462 $(call test,vpp,vpp_gcov,cov)
465 @make -C test wipe-cov
468 @make -C test checkstyle
471 @make -C test refresh-deps
474 $(call test,vpp,vpp,retest)
477 $(call test,vpp,vpp_debug,retest)
479 ifeq ("$(wildcard $(STARTUP_CONF))","")
481 @echo "WARNING: STARTUP_CONF not defined or file doesn't exist."
482 @echo " Running with minimal startup config: $(MINIMAL_STARTUP_CONF)\n"
483 @cd $(STARTUP_DIR) && \
484 $(SUDO) $(2) $(1)/vpp/bin/vpp $(MINIMAL_STARTUP_CONF)
488 @cd $(STARTUP_DIR) && \
489 $(SUDO) $(2) $(1)/vpp/bin/vpp $(shell cat $(STARTUP_CONF) | sed -e 's/#.*//')
494 @find . \( -name '*\.[chyS]' -o -name '*\.java' -o -name '*\.lex' \) -and \
495 \( -not -path './build-root*' -o -path \
496 './build-root/build-vpp_debug-native/dpdk*' \) > $@
501 $(call run, $(BR)/install-$(PLATFORM)_debug-native)
504 $(call run, $(BR)/install-$(PLATFORM)-native)
507 $(call run, $(BR)/install-$(PLATFORM)_debug-native,$(GDB) $(GDB_ARGS) --args)
510 $(call make,$(PLATFORM)_coverity,install-packages)
513 $(call run, $(BR)/install-$(PLATFORM)-native,$(GDB) $(GDB_ARGS) --args)
516 $(call make,$(PLATFORM)_debug,vpp-api-test-install)
519 @$(SUDO) $(BR)/install-$(PLATFORM)_debug-native/vpp/bin/vpp_api_test
522 $(call make,$(PLATFORM),vpp-package-deb)
525 $(call make,$(PLATFORM),vpp-package-deb)
526 $(call make,$(PLATFORM),vom-package-deb)
529 $(call make,$(PLATFORM)_debug,vpp-package-deb)
532 $(call make,$(PLATFORM)_debug,vpp-package-deb)
533 $(call make,$(PLATFORM)_debug,vom-package-deb)
539 make -C extras/rpm srpm
542 $(call banner,"This command is deprecated. Please use 'make install-ext-deps'")
543 make -C build/external install-$(PKG)
546 make -C build/external install-$(PKG)
549 $(WS_ROOT)/src/tools/vppapigen/generate_json.py
551 json-api-files-debug:
552 $(WS_ROOT)/src/tools/vppapigen/generate_json.py --debug-target
555 @ctags --totals --tag-relative -L $<
559 @gtags --gtagslabel=ctags
565 @build-root/scripts/checkstyle.sh
568 @build-root/scripts/checkstyle.sh --fix
571 @build-root/scripts/fts.py --all --markdown
574 @build-root/scripts/fts.py --validate --git-status
577 # Build the documentation
580 # Doxygen configuration and our utility scripts
581 export DOXY_DIR ?= $(WS_ROOT)/doxygen
584 @OS_ID="$(OS_ID)" make -C $(DOXY_DIR) $@
587 .PHONY: bootstrap-doxygen doxygen wipe-doxygen
599 export DOCS_DIR = $(WS_ROOT)/docs
600 export VENV_DIR = $(WS_ROOT)/sphinx_venv
601 export SPHINX_SCRIPTS_DIR = $(WS_ROOT)/docs/scripts
603 .PHONY: docs-venv docs docs-clean
606 @($(SPHINX_SCRIPTS_DIR)/sphinx-make.sh venv)
609 @($(SPHINX_SCRIPTS_DIR)/sphinx-make.sh html)
612 @($(SPHINX_SCRIPTS_DIR)/sphinx-make.sh clean)
614 pkg-verify: install-dep $(BR)/.deps.ok install-ext-deps
615 $(call banner,"Building for PLATFORM=vpp using gcc")
616 @make -C build-root PLATFORM=vpp TAG=vpp wipe-all install-packages
617 $(call banner,"Building sample-plugin")
618 @make -C build-root PLATFORM=vpp TAG=vpp sample-plugin-install
619 $(call banner,"Building libmemif")
620 @make -C build-root PLATFORM=vpp TAG=vpp libmemif-install
621 $(call banner,"Building VOM")
622 @make -C build-root PLATFORM=vpp TAG=vpp vom-install
623 $(call banner,"Building $(PKG) packages")
625 ifeq ($(OS_ID),ubuntu)
626 $(call banner,"Building VOM $(PKG) package")
631 ifeq ($(OS_ID)-$(OS_VERSION_ID),ubuntu-18.04)
632 $(call banner,"Running tests")
633 @make COMPRESS_FAILED_TEST_LOGS=yes RETRIES=3 test