2021-11-06 10:59:22 -04:00
|
|
|
# Copyright (c) 2021 Cisco and/or its affiliates.
|
2016-02-10 00:36:06 +01:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at:
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2017-01-15 21:30:50 +01:00
|
|
|
export WS_ROOT=$(CURDIR)
|
|
|
|
export BR=$(WS_ROOT)/build-root
|
2016-02-10 00:36:06 +01:00
|
|
|
CCACHE_DIR?=$(BR)/.ccache
|
2024-01-18 14:51:44 +00:00
|
|
|
SHELL:=$(shell which bash)
|
2016-02-10 00:36:06 +01:00
|
|
|
GDB?=gdb
|
2016-03-16 22:49:05 +01:00
|
|
|
PLATFORM?=vpp
|
2017-05-31 19:25:08 +02:00
|
|
|
SAMPLE_PLUGIN?=no
|
2018-07-19 14:39:40 +02:00
|
|
|
STARTUP_DIR?=$(PWD)
|
2017-09-22 12:26:34 -05:00
|
|
|
MACHINE=$(shell uname -m)
|
2020-10-21 23:55:08 +02:00
|
|
|
SUDO?=sudo -E
|
2019-09-24 17:45:49 +02:00
|
|
|
DPDK_CONFIG?=no-pci
|
2017-09-22 12:26:34 -05:00
|
|
|
|
2024-02-06 10:05:06 +00:00
|
|
|
ifeq ($(strip $(SHELL)),)
|
|
|
|
$(error "bash not found, VPP requires bash to build")
|
|
|
|
endif
|
|
|
|
|
2017-06-30 11:51:41 +02:00
|
|
|
,:=,
|
|
|
|
define disable_plugins
|
|
|
|
$(if $(1), \
|
|
|
|
"plugins {" \
|
|
|
|
$(patsubst %,"plugin %_plugin.so { disable }",$(subst $(,), ,$(1))) \
|
|
|
|
" }" \
|
|
|
|
,)
|
|
|
|
endef
|
|
|
|
|
|
|
|
MINIMAL_STARTUP_CONF=" \
|
|
|
|
unix { \
|
|
|
|
interactive \
|
|
|
|
cli-listen /run/vpp/cli.sock \
|
|
|
|
gid $(shell id -g) \
|
|
|
|
$(if $(wildcard startup.vpp),"exec startup.vpp",) \
|
|
|
|
} \
|
|
|
|
$(if $(DPDK_CONFIG), "dpdk { $(DPDK_CONFIG) }",) \
|
2022-03-14 09:49:15 +00:00
|
|
|
$(if $(EXTRA_VPP_CONFIG), "$(EXTRA_VPP_CONFIG)",) \
|
2017-06-30 11:51:41 +02:00
|
|
|
$(call disable_plugins,$(DISABLED_PLUGINS)) \
|
|
|
|
"
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2016-02-23 22:04:50 +01:00
|
|
|
GDB_ARGS= -ex "handle SIGUSR1 noprint nostop"
|
|
|
|
|
2016-05-02 19:40:27 +02:00
|
|
|
#
|
|
|
|
# OS Detection
|
|
|
|
#
|
2016-09-22 20:52:26 -04:00
|
|
|
# We allow Darwin (MacOS) for docs generation; VPP build will still fail.
|
|
|
|
ifneq ($(shell uname),Darwin)
|
2016-05-02 19:40:27 +02:00
|
|
|
OS_ID = $(shell grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
|
|
|
|
OS_VERSION_ID= $(shell grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
|
2016-09-22 20:52:26 -04:00
|
|
|
endif
|
2016-05-02 19:40:27 +02:00
|
|
|
|
2023-08-22 12:42:09 +08:00
|
|
|
ifeq ($(filter ubuntu debian linuxmint,$(OS_ID)),$(OS_ID))
|
2017-01-09 20:24:50 +01:00
|
|
|
PKG=deb
|
2023-10-09 13:14:51 +00:00
|
|
|
else ifeq ($(filter rhel centos fedora opensuse-leap rocky almalinux,$(OS_ID)),$(OS_ID))
|
2017-01-09 20:24:50 +01:00
|
|
|
PKG=rpm
|
|
|
|
endif
|
|
|
|
|
2017-07-03 13:11:38 -04:00
|
|
|
# +libganglia1-dev if building the gmond plugin
|
|
|
|
|
2017-10-12 13:06:35 +02:00
|
|
|
DEB_DEPENDS = curl build-essential autoconf automake ccache
|
2021-08-10 09:20:32 +01:00
|
|
|
DEB_DEPENDS += debhelper dkms git libtool libapr1-dev dh-python
|
2017-01-10 10:39:21 +01:00
|
|
|
DEB_DEPENDS += libconfuse-dev git-review exuberant-ctags cscope pkg-config
|
2023-06-21 23:14:38 -04:00
|
|
|
DEB_DEPENDS += gcovr lcov chrpath autoconf libnuma-dev
|
2020-05-12 12:22:18 +02:00
|
|
|
DEB_DEPENDS += python3-all python3-setuptools check
|
2024-05-23 13:06:39 +00:00
|
|
|
DEB_DEPENDS += libffi-dev python3-ply libunwind-dev
|
2023-07-28 20:06:09 +02:00
|
|
|
DEB_DEPENDS += cmake ninja-build python3-jsonschema python3-yaml
|
2019-11-20 19:15:46 -05:00
|
|
|
DEB_DEPENDS += python3-venv # ensurepip
|
2022-05-19 11:48:59 -07:00
|
|
|
DEB_DEPENDS += python3-dev python3-pip
|
2021-02-05 09:04:35 +00:00
|
|
|
DEB_DEPENDS += libnl-3-dev libnl-route-3-dev libmnl-dev
|
2022-02-02 19:32:18 +00:00
|
|
|
# DEB_DEPENDS += enchant # for docs
|
2021-11-12 18:25:32 -05:00
|
|
|
DEB_DEPENDS += python3-virtualenv
|
|
|
|
DEB_DEPENDS += libssl-dev
|
af_xdp: update af_xdp driver plugin to depend on libxdp
AF_XDP support is deprecated in libbpf since v0.7.0 [1], the libxdp library
now provides the functionality which once was in libbpf, this commit updates
af_xdp plugin to depend on libxdp, libbpf still remains a dependency even if
libxdp is present, as it need use libbpf APIs for program loading.
libxdp is distributed within xdp-tool [2], xdp-tools package also
include libbpf in it as dependency, so here installed libxdp v1.2.9 and
libbpf v0.8.0, both from xdp-tool-1.2.9 package.
More information about libxdp compatibility can be found in the libxdp
README [3].
In libbpf v0.8.0, The bpf_prog_load function was deprecated and changed to
bpf_object__open_file and bpf_object__next_program and bpf_object__load,
The bpf_get_link_xdp_id and bpf_set_link_xdp_fd functions were deprecated
and changed to bpf_xdp_attach and bpf_xdp_detach, The bpf_object__unload
function was deprecated and changed to bpf_object__close.
[1] https://github.com/libbpf/libbpf/commit/277846bc6c15
[2] https://github.com/xdp-project/xdp-tools/releases/tag/v1.2.9
[3] https://github.com/xdp-project/xdp-tools/blob/master/lib/libxdp/README.org
Type: improvement
Change-Id: Ifbf6e3aa38bc6e0b77561f26311fd11c15ddb47e
Signed-off-by: Yulong Pei <yulong.pei@intel.com>
2023-01-05 02:26:32 +00:00
|
|
|
DEB_DEPENDS += libelf-dev libpcap-dev # for libxdp (af_xdp)
|
2022-02-05 09:27:05 -05:00
|
|
|
DEB_DEPENDS += iperf3 # for 'make test TEST=vcl'
|
2022-04-05 19:26:51 +02:00
|
|
|
DEB_DEPENDS += nasm
|
2022-12-20 08:39:06 -08:00
|
|
|
DEB_DEPENDS += iperf ethtool # for 'make test TEST=vm_vpp_interfaces'
|
2023-06-09 16:50:56 +02:00
|
|
|
DEB_DEPENDS += libpcap-dev
|
2023-08-31 00:47:44 -04:00
|
|
|
DEB_DEPENDS += tshark
|
2024-05-06 06:55:34 -04:00
|
|
|
DEB_DEPENDS += jq # for extracting test summary from .json report (hs-test)
|
2020-03-18 10:14:40 -04:00
|
|
|
|
2020-09-25 15:34:06 -07:00
|
|
|
LIBFFI=libffi6 # works on all but 20.04 and debian-testing
|
2020-03-21 11:15:48 -04:00
|
|
|
|
2022-06-10 19:34:04 -07:00
|
|
|
ifeq ($(OS_VERSION_ID),22.04)
|
|
|
|
DEB_DEPENDS += python3-virtualenv
|
|
|
|
DEB_DEPENDS += libssl-dev
|
|
|
|
DEB_DEPENDS += clang clang-format-11
|
|
|
|
LIBFFI=libffi7
|
|
|
|
DEB_DEPENDS += enchant-2 # for docs
|
|
|
|
else ifeq ($(OS_VERSION_ID),20.04)
|
2020-05-12 12:22:18 +02:00
|
|
|
DEB_DEPENDS += python3-virtualenv
|
2020-06-04 14:09:57 +08:00
|
|
|
DEB_DEPENDS += libssl-dev
|
2022-04-14 22:18:19 +02:00
|
|
|
DEB_DEPENDS += clang clang-format-11
|
2020-03-21 11:15:48 -04:00
|
|
|
LIBFFI=libffi7
|
2021-11-12 18:25:32 -05:00
|
|
|
DEB_DEPENDS += enchant-2 # for docs
|
2020-12-29 00:10:42 +01:00
|
|
|
else ifeq ($(OS_VERSION_ID),20.10)
|
2022-04-14 22:18:19 +02:00
|
|
|
DEB_DEPENDS += clang clang-format-11
|
2021-11-09 13:58:12 -05:00
|
|
|
LIBFFI=libffi8ubuntu1
|
2020-09-09 12:50:07 +02:00
|
|
|
else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-10)
|
2021-11-12 18:25:32 -05:00
|
|
|
DEB_DEPENDS += virtualenv
|
2022-02-02 19:32:18 +00:00
|
|
|
else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-11)
|
|
|
|
DEB_DEPENDS += virtualenv
|
2022-04-14 22:18:19 +02:00
|
|
|
DEB_DEPENDS += clang clang-format-11
|
2022-02-02 19:32:18 +00:00
|
|
|
LIBFFI=libffi7
|
2024-01-14 21:02:41 +01:00
|
|
|
else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-12)
|
|
|
|
DEB_DEPENDS += virtualenv
|
|
|
|
DEB_DEPENDS += clang-14 clang-format-14
|
2024-01-15 11:06:19 +01:00
|
|
|
# for extras/scripts/checkstyle.sh
|
|
|
|
export CLANG_FORMAT_VER=14
|
2024-01-14 21:02:41 +01:00
|
|
|
LIBFFI=libffi8
|
2018-07-19 14:39:40 +02:00
|
|
|
else
|
2022-03-17 17:44:35 -04:00
|
|
|
DEB_DEPENDS += clang-11 clang-format-11
|
2020-09-25 15:34:06 -07:00
|
|
|
LIBFFI=libffi7
|
2021-11-12 18:25:32 -05:00
|
|
|
DEB_DEPENDS += enchant-2 # for docs
|
2016-05-05 18:03:27 -05:00
|
|
|
endif
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2020-03-21 11:15:48 -04:00
|
|
|
DEB_DEPENDS += $(LIBFFI)
|
|
|
|
|
2023-02-06 17:25:16 +01:00
|
|
|
RPM_DEPENDS = glibc-static
|
2017-09-06 10:44:07 +02:00
|
|
|
RPM_DEPENDS += apr-devel
|
2017-08-03 11:04:24 -04:00
|
|
|
RPM_DEPENDS += numactl-devel
|
2017-10-09 15:03:55 -04:00
|
|
|
RPM_DEPENDS += check check-devel
|
2018-01-15 17:54:52 -05:00
|
|
|
RPM_DEPENDS += selinux-policy selinux-policy-devel
|
2018-11-27 15:57:30 -05:00
|
|
|
RPM_DEPENDS += ninja-build
|
2020-06-08 17:13:01 -07:00
|
|
|
RPM_DEPENDS += ccache
|
|
|
|
RPM_DEPENDS += xmlto
|
2023-02-06 17:25:16 +01:00
|
|
|
RPM_DEPENDS += elfutils-libelf-devel libpcap-devel
|
2021-02-05 09:04:35 +00:00
|
|
|
RPM_DEPENDS += libnl3-devel libmnl-devel
|
2022-04-12 15:05:08 +08:00
|
|
|
RPM_DEPENDS += nasm
|
2017-09-29 12:36:37 +02:00
|
|
|
|
2018-11-27 15:57:30 -05:00
|
|
|
ifeq ($(OS_ID),fedora)
|
|
|
|
RPM_DEPENDS += dnf-utils
|
2018-03-05 17:21:56 -05:00
|
|
|
RPM_DEPENDS += subunit subunit-devel
|
2017-09-11 08:58:23 -04:00
|
|
|
RPM_DEPENDS += compat-openssl10-devel
|
2020-02-05 08:30:00 -07:00
|
|
|
RPM_DEPENDS += python3-devel # needed for python3 -m pip install psutil
|
2019-11-20 00:09:04 -05:00
|
|
|
RPM_DEPENDS += python3-ply # for vppapigen
|
2019-05-14 13:24:10 +02:00
|
|
|
RPM_DEPENDS += python3-virtualenv python3-jsonschema
|
2018-11-27 15:57:30 -05:00
|
|
|
RPM_DEPENDS += cmake
|
2017-05-17 19:00:07 -04:00
|
|
|
RPM_DEPENDS_GROUPS = 'C Development Tools and Libraries'
|
2023-02-06 17:25:16 +01:00
|
|
|
else ifeq ($(OS_ID),rocky)
|
|
|
|
RPM_DEPENDS += yum-utils
|
|
|
|
RPM_DEPENDS += subunit subunit-devel
|
|
|
|
RPM_DEPENDS += openssl-devel
|
|
|
|
RPM_DEPENDS += python3-devel # needed for python3 -m pip install psutil
|
|
|
|
RPM_DEPENDS += python3-ply # for vppapigen
|
|
|
|
RPM_DEPENDS += python3-virtualenv python3-jsonschema
|
|
|
|
RPM_DEPENDS += infiniband-diags llvm clang cmake
|
|
|
|
RPM_DEPENDS_GROUPS = 'Development Tools'
|
2023-10-09 13:14:51 +00:00
|
|
|
else ifeq ($(OS_ID),almalinux)
|
|
|
|
RPM_DEPENDS += yum-utils
|
|
|
|
RPM_DEPENDS += subunit subunit-devel
|
|
|
|
RPM_DEPENDS += openssl-devel
|
|
|
|
RPM_DEPENDS += python3-devel # needed for python3 -m pip install psutil
|
|
|
|
RPM_DEPENDS += python3-ply # for vppapigen
|
|
|
|
RPM_DEPENDS += python3-virtualenv python3-jsonschema
|
|
|
|
RPM_DEPENDS += infiniband-diags llvm clang cmake
|
|
|
|
RPM_DEPENDS_GROUPS = 'Development Tools'
|
2019-11-07 06:10:34 -06:00
|
|
|
else ifeq ($(OS_ID)-$(OS_VERSION_ID),centos-8)
|
2020-02-05 08:30:00 -07:00
|
|
|
RPM_DEPENDS += yum-utils
|
2021-01-14 16:46:49 -05:00
|
|
|
RPM_DEPENDS += compat-openssl10 openssl-devel
|
2020-06-08 17:13:01 -07:00
|
|
|
RPM_DEPENDS += python2-devel python36-devel python3-ply
|
2019-11-07 06:10:34 -06:00
|
|
|
RPM_DEPENDS += python3-virtualenv python3-jsonschema
|
2021-06-04 22:55:18 -04:00
|
|
|
RPM_DEPENDS += libarchive cmake
|
2022-10-26 09:15:12 +00:00
|
|
|
RPM_DEPENDS += infiniband-diags libibumad
|
2023-01-28 07:58:45 +00:00
|
|
|
RPM_DEPENDS += libpcap-devel llvm-toolset
|
2019-11-07 06:10:34 -06:00
|
|
|
RPM_DEPENDS_GROUPS = 'Development Tools'
|
2017-03-29 10:40:16 -04:00
|
|
|
else
|
2018-11-27 15:57:30 -05:00
|
|
|
RPM_DEPENDS += yum-utils
|
2017-09-11 08:58:23 -04:00
|
|
|
RPM_DEPENDS += openssl-devel
|
2019-11-20 00:09:04 -05:00
|
|
|
RPM_DEPENDS += python36-ply # for vppapigen
|
2019-09-17 13:19:42 -06:00
|
|
|
RPM_DEPENDS += python3-devel python3-pip
|
2019-05-14 13:24:10 +02:00
|
|
|
RPM_DEPENDS += python-virtualenv python36-jsonschema
|
2020-08-27 16:00:16 +08:00
|
|
|
RPM_DEPENDS += devtoolset-9 devtoolset-9-libasan-devel
|
2018-11-27 15:57:30 -05:00
|
|
|
RPM_DEPENDS += cmake3
|
2017-05-17 19:00:07 -04:00
|
|
|
RPM_DEPENDS_GROUPS = 'Development Tools'
|
2017-03-29 10:40:16 -04:00
|
|
|
endif
|
2017-07-03 13:11:38 -04:00
|
|
|
|
|
|
|
# +ganglia-devel if building the ganglia plugin
|
|
|
|
|
2017-05-17 19:00:07 -04:00
|
|
|
RPM_DEPENDS += chrpath libffi-devel rpm-build
|
2020-07-23 15:19:25 +00:00
|
|
|
|
|
|
|
RPM_DEPENDS_DEBUG = glibc-debuginfo e2fsprogs-debuginfo
|
|
|
|
RPM_DEPENDS_DEBUG += krb5-debuginfo openssl-debuginfo
|
|
|
|
RPM_DEPENDS_DEBUG += zlib-debuginfo nss-softokn-debuginfo
|
|
|
|
RPM_DEPENDS_DEBUG += yum-plugin-auto-update-debug-info
|
2017-10-24 17:02:04 +02:00
|
|
|
|
2021-11-02 11:07:19 +01:00
|
|
|
RPM_SUSE_BUILDTOOLS_DEPS = autoconf automake ccache check-devel chrpath
|
|
|
|
RPM_SUSE_BUILDTOOLS_DEPS += clang cmake indent libtool make ninja python3-ply
|
|
|
|
|
2022-09-02 14:08:36 +02:00
|
|
|
RPM_SUSE_DEVEL_DEPS = glibc-devel-static libnuma-devel libelf-devel
|
2023-07-28 20:06:09 +02:00
|
|
|
RPM_SUSE_DEVEL_DEPS += libopenssl-devel lsb-release
|
2023-07-06 11:36:42 +02:00
|
|
|
RPM_SUSE_DEVEL_DEPS += libpcap-devel llvm-devel
|
2022-09-02 14:08:36 +02:00
|
|
|
RPM_SUSE_DEVEL_DEPS += curl libstdc++-devel bison gcc-c++ zlib-devel
|
2021-11-02 11:07:19 +01:00
|
|
|
|
2022-09-02 14:08:36 +02:00
|
|
|
RPM_SUSE_PYTHON_DEPS = python3-devel python3-pip python3-rpm-macros
|
2021-11-02 11:07:19 +01:00
|
|
|
|
2022-09-02 14:08:36 +02:00
|
|
|
RPM_SUSE_PLATFORM_DEPS = shadow rpm-build
|
2021-11-02 11:07:19 +01:00
|
|
|
|
|
|
|
ifeq ($(OS_ID),opensuse-leap)
|
2022-09-02 14:08:36 +02:00
|
|
|
RPM_SUSE_DEVEL_DEPS += xmlto openssl-devel asciidoc git nasm
|
|
|
|
RPM_SUSE_PYTHON_DEPS += python3 python3-ply python3-virtualenv
|
|
|
|
RPM_SUSE_PLATFORM_DEPS += distribution-release
|
2021-11-02 11:07:19 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
RPM_SUSE_DEPENDS += $(RPM_SUSE_BUILDTOOLS_DEPS) $(RPM_SUSE_DEVEL_DEPS) $(RPM_SUSE_PYTHON_DEPS) $(RPM_SUSE_PLATFORM_DEPS)
|
|
|
|
|
2016-03-29 22:37:02 +02:00
|
|
|
ifneq ($(wildcard $(STARTUP_DIR)/startup.conf),)
|
2016-02-23 22:04:50 +01:00
|
|
|
STARTUP_CONF ?= $(STARTUP_DIR)/startup.conf
|
|
|
|
endif
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2016-05-02 19:40:27 +02:00
|
|
|
ifeq ($(findstring y,$(UNATTENDED)),y)
|
2023-08-31 00:47:44 -04:00
|
|
|
DEBIAN_FRONTEND=noninteractive
|
2016-05-02 19:40:27 +02:00
|
|
|
CONFIRM=-y
|
2022-06-10 19:34:04 -07:00
|
|
|
FORCE=--allow-downgrades --allow-remove-essential --allow-change-held-packages
|
2016-05-02 19:40:27 +02:00
|
|
|
endif
|
|
|
|
|
2017-05-31 19:25:08 +02:00
|
|
|
TARGETS = vpp
|
|
|
|
|
|
|
|
ifneq ($(SAMPLE_PLUGIN),no)
|
|
|
|
TARGETS += sample-plugin
|
|
|
|
endif
|
|
|
|
|
2018-09-18 18:41:38 +02:00
|
|
|
define banner
|
|
|
|
@echo "========================================================================"
|
|
|
|
@echo " $(1)"
|
|
|
|
@echo "========================================================================"
|
|
|
|
@echo " "
|
|
|
|
endef
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: help
|
2016-02-10 00:36:06 +01:00
|
|
|
help:
|
|
|
|
@echo "Make Targets:"
|
2019-11-14 12:19:32 -05:00
|
|
|
@echo " install-dep[s] - install software dependencies"
|
2019-09-24 17:52:36 -04:00
|
|
|
@echo " wipe - wipe all products of debug build "
|
|
|
|
@echo " wipe-release - wipe all products of release build "
|
|
|
|
@echo " build - build debug binaries"
|
|
|
|
@echo " build-release - build release binaries"
|
|
|
|
@echo " build-coverity - build coverity artifacts"
|
2024-01-11 11:59:47 +01:00
|
|
|
@echo " build-vpp-gcov - build gcov vpp only"
|
2019-11-01 02:34:32 -04:00
|
|
|
@echo " rebuild - wipe and build debug binaries"
|
|
|
|
@echo " rebuild-release - wipe and build release binaries"
|
2019-09-24 17:52:36 -04:00
|
|
|
@echo " run - run debug binary"
|
|
|
|
@echo " run-release - run release binary"
|
|
|
|
@echo " debug - run debug binary with debugger"
|
|
|
|
@echo " debug-release - run release binary with debugger"
|
2019-11-15 17:29:15 -05:00
|
|
|
@echo " test - build and run tests"
|
2024-01-11 11:59:47 +01:00
|
|
|
@echo " test-cov-hs - build and run host stack tests with coverage"
|
|
|
|
@echo " test-cov-both - build and run python and host stack tests, merge coverage data"
|
2019-09-24 17:52:36 -04:00
|
|
|
@echo " test-help - show help on test framework"
|
|
|
|
@echo " run-vat - run vpp-api-test tool"
|
|
|
|
@echo " pkg-deb - build DEB packages"
|
|
|
|
@echo " pkg-deb-debug - build DEB debug packages"
|
2020-03-18 10:14:40 -04:00
|
|
|
@echo " pkg-snap - build SNAP package"
|
|
|
|
@echo " snap-clean - clean up snap build environment"
|
2019-09-24 17:52:36 -04:00
|
|
|
@echo " pkg-rpm - build RPM packages"
|
2019-11-14 12:19:32 -05:00
|
|
|
@echo " install-ext-dep[s] - install external development dependencies"
|
2019-09-24 17:52:36 -04:00
|
|
|
@echo " ctags - (re)generate ctags database"
|
|
|
|
@echo " gtags - (re)generate gtags database"
|
|
|
|
@echo " cscope - (re)generate cscope database"
|
2020-05-08 19:01:22 +02:00
|
|
|
@echo " compdb - (re)generate compile_commands.json"
|
2019-09-24 17:52:36 -04:00
|
|
|
@echo " checkstyle - check coding style"
|
2019-11-14 12:19:32 -05:00
|
|
|
@echo " checkstyle-commit - check commit message format"
|
2022-04-26 19:02:15 +02:00
|
|
|
@echo " checkstyle-python - check python coding style using 'black' formatter"
|
2020-05-05 12:23:47 +02:00
|
|
|
@echo " checkstyle-api - check api for incompatible changes"
|
2024-06-13 08:59:58 +02:00
|
|
|
@echo " checkstyle-go - check style of .go source files"
|
2019-09-24 17:52:36 -04:00
|
|
|
@echo " fixstyle - fix coding style"
|
2022-04-26 19:02:15 +02:00
|
|
|
@echo " fixstyle-python - fix python coding style using 'black' formatter"
|
2024-06-13 08:59:58 +02:00
|
|
|
@echo " fixstyle-go - format .go source files"
|
2021-08-19 11:38:06 +02:00
|
|
|
@echo " doxygen - DEPRECATED - use 'make docs'"
|
|
|
|
@echo " bootstrap-doxygen - DEPRECATED"
|
|
|
|
@echo " wipe-doxygen - DEPRECATED"
|
2019-09-24 17:52:36 -04:00
|
|
|
@echo " checkfeaturelist - check FEATURE.yaml according to schema"
|
|
|
|
@echo " featurelist - dump feature list in markdown"
|
|
|
|
@echo " json-api-files - (re)-generate json api files"
|
2019-07-15 15:22:31 -04:00
|
|
|
@echo " json-api-files-debug - (re)-generate json api files for debug target"
|
2021-04-08 13:08:04 +02:00
|
|
|
@echo " go-api-files - (re)-generate golang api files"
|
2024-06-13 08:59:58 +02:00
|
|
|
@echo " cleanup-hst - stops and removes all docker contaiers and namespaces"
|
2018-09-24 14:59:33 -04:00
|
|
|
@echo " docs - Build the Sphinx documentation"
|
2019-09-24 17:52:36 -04:00
|
|
|
@echo " docs-venv - Build the virtual environment for the Sphinx docs"
|
|
|
|
@echo " docs-clean - Remove the generated files from the Sphinx docs"
|
2022-03-25 12:06:51 +01:00
|
|
|
@echo " docs-rebuild - Rebuild all of the Sphinx documentation"
|
2016-02-10 00:36:06 +01:00
|
|
|
@echo ""
|
|
|
|
@echo "Make Arguments:"
|
2017-06-30 11:51:41 +02:00
|
|
|
@echo " V=[0|1] - set build verbosity level"
|
|
|
|
@echo " STARTUP_CONF=<path> - startup configuration file"
|
|
|
|
@echo " (e.g. /etc/vpp/startup.conf)"
|
2019-11-01 02:34:32 -04:00
|
|
|
@echo " STARTUP_DIR=<path> - startup directory (e.g. /etc/vpp)"
|
2017-06-30 11:51:41 +02:00
|
|
|
@echo " It also sets STARTUP_CONF if"
|
|
|
|
@echo " startup.conf file is present"
|
|
|
|
@echo " GDB=<path> - gdb binary to use for debugging"
|
|
|
|
@echo " PLATFORM=<name> - target platform. default is vpp"
|
|
|
|
@echo " DPDK_CONFIG=<conf> - add specified dpdk config commands to"
|
|
|
|
@echo " autogenerated startup.conf"
|
|
|
|
@echo " (e.g. \"no-pci\" )"
|
|
|
|
@echo " SAMPLE_PLUGIN=yes - in addition build/run/debug sample plugin"
|
|
|
|
@echo " DISABLED_PLUGINS=<list> - comma separated list of plugins which"
|
|
|
|
@echo " should not be loaded"
|
2016-02-10 00:36:06 +01:00
|
|
|
@echo ""
|
2016-10-28 13:20:27 +02:00
|
|
|
@echo "Current Argument Values:"
|
2017-05-31 19:25:08 +02:00
|
|
|
@echo " V = $(V)"
|
|
|
|
@echo " STARTUP_CONF = $(STARTUP_CONF)"
|
|
|
|
@echo " STARTUP_DIR = $(STARTUP_DIR)"
|
|
|
|
@echo " GDB = $(GDB)"
|
|
|
|
@echo " PLATFORM = $(PLATFORM)"
|
|
|
|
@echo " DPDK_VERSION = $(DPDK_VERSION)"
|
2017-06-30 11:51:41 +02:00
|
|
|
@echo " DPDK_CONFIG = $(DPDK_CONFIG)"
|
2017-05-31 19:25:08 +02:00
|
|
|
@echo " SAMPLE_PLUGIN = $(SAMPLE_PLUGIN)"
|
2017-06-30 11:51:41 +02:00
|
|
|
@echo " DISABLED_PLUGINS = $(DISABLED_PLUGINS)"
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2018-03-15 19:36:41 +01:00
|
|
|
$(BR)/.deps.ok:
|
2016-11-19 12:04:34 +01:00
|
|
|
ifeq ($(findstring y,$(UNATTENDED)),y)
|
2024-01-18 10:48:17 +00:00
|
|
|
$(MAKE) install-dep
|
2016-11-19 12:04:34 +01:00
|
|
|
endif
|
2023-08-22 12:42:09 +08:00
|
|
|
ifeq ($(filter ubuntu debian linuxmint,$(OS_ID)),$(OS_ID))
|
2016-02-10 00:36:06 +01:00
|
|
|
@MISSING=$$(apt-get install -y -qq -s $(DEB_DEPENDS) | grep "^Inst ") ; \
|
|
|
|
if [ -n "$$MISSING" ] ; then \
|
|
|
|
echo "\nPlease install missing packages: \n$$MISSING\n" ; \
|
2016-02-25 16:26:01 +01:00
|
|
|
echo "by executing \"make install-dep\"\n" ; \
|
2016-02-10 00:36:06 +01:00
|
|
|
exit 1 ; \
|
|
|
|
fi ; \
|
|
|
|
exit 0
|
2017-03-20 19:19:51 -04:00
|
|
|
else ifneq ("$(wildcard /etc/redhat-release)","")
|
2017-08-03 11:04:24 -04:00
|
|
|
@for i in $(RPM_DEPENDS) ; do \
|
2020-08-27 16:00:16 +08:00
|
|
|
RPM=$$(basename -s .rpm "$${i##*/}" | cut -d- -f1,2,3,4) ; \
|
2017-08-03 11:04:24 -04:00
|
|
|
MISSING+=$$(rpm -q $$RPM | grep "^package") ; \
|
2017-03-20 19:19:51 -04:00
|
|
|
done ; \
|
|
|
|
if [ -n "$$MISSING" ] ; then \
|
|
|
|
echo "Please install missing RPMs: \n$$MISSING\n" ; \
|
|
|
|
echo "by executing \"make install-dep\"\n" ; \
|
|
|
|
exit 1 ; \
|
|
|
|
fi ; \
|
|
|
|
exit 0
|
2016-02-10 00:36:06 +01:00
|
|
|
endif
|
|
|
|
@touch $@
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: bootstrap
|
2018-03-15 19:36:41 +01:00
|
|
|
bootstrap:
|
|
|
|
@echo "'make bootstrap' is not needed anymore"
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: install-dep
|
2016-02-25 16:26:01 +01:00
|
|
|
install-dep:
|
2023-08-22 12:42:09 +08:00
|
|
|
ifeq ($(filter ubuntu debian linuxmint,$(OS_ID)),$(OS_ID))
|
2017-02-01 16:08:51 -08:00
|
|
|
@sudo -E apt-get update
|
2017-05-29 12:29:05 +02:00
|
|
|
@sudo -E apt-get $(APT_ARGS) $(CONFIRM) $(FORCE) install $(DEB_DEPENDS)
|
2016-03-22 16:09:29 -05:00
|
|
|
else ifneq ("$(wildcard /etc/redhat-release)","")
|
2018-10-30 22:52:15 -07:00
|
|
|
ifeq ($(OS_ID),rhel)
|
|
|
|
@sudo -E yum-config-manager --enable rhel-server-rhscl-7-rpms
|
2019-02-04 22:27:20 -08:00
|
|
|
@sudo -E yum groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
|
|
|
|
@sudo -E yum install $(CONFIRM) $(RPM_DEPENDS)
|
2022-04-28 07:55:07 -07:00
|
|
|
@sudo -E debuginfo-install $(CONFIRM) glibc openssl-libs zlib
|
2023-02-06 17:25:16 +01:00
|
|
|
else ifeq ($(OS_ID),rocky)
|
|
|
|
@sudo -E dnf install $(CONFIRM) dnf-plugins-core epel-release
|
|
|
|
@sudo -E dnf config-manager --set-enabled \
|
|
|
|
$(shell dnf repolist all 2>/dev/null|grep -i crb|cut -d' ' -f1|grep -v source)
|
|
|
|
@sudo -E dnf groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
|
|
|
|
@sudo -E dnf install $(CONFIRM) $(RPM_DEPENDS)
|
2019-11-07 06:10:34 -06:00
|
|
|
else ifeq ($(OS_ID)-$(OS_VERSION_ID),centos-8)
|
2020-09-21 13:07:29 -04:00
|
|
|
@sudo -E dnf install $(CONFIRM) dnf-plugins-core epel-release
|
2020-12-08 10:50:08 -05:00
|
|
|
@sudo -E dnf config-manager --set-enabled \
|
2022-03-03 10:49:39 +08:00
|
|
|
$(shell dnf repolist all 2>/dev/null|grep -i powertools|cut -d' ' -f1|grep -v source)
|
2019-11-07 06:10:34 -06:00
|
|
|
@sudo -E dnf groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
|
2021-06-03 17:37:27 -04:00
|
|
|
@sudo -E dnf install --skip-broken $(CONFIRM) $(RPM_DEPENDS)
|
2018-10-30 22:52:15 -07:00
|
|
|
else ifeq ($(OS_ID),centos)
|
2019-01-15 08:24:26 +00:00
|
|
|
@sudo -E yum install $(CONFIRM) centos-release-scl-rh epel-release
|
2018-10-30 22:52:15 -07:00
|
|
|
@sudo -E yum groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
|
2017-01-02 16:44:21 +01:00
|
|
|
@sudo -E yum install $(CONFIRM) $(RPM_DEPENDS)
|
2020-07-23 15:19:25 +00:00
|
|
|
@sudo -E yum install $(CONFIRM) --enablerepo=base-debuginfo $(RPM_DEPENDS_DEBUG)
|
2018-11-27 15:57:30 -05:00
|
|
|
else ifeq ($(OS_ID),fedora)
|
|
|
|
@sudo -E dnf groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
|
|
|
|
@sudo -E dnf install $(CONFIRM) $(RPM_DEPENDS)
|
2022-04-28 07:55:07 -07:00
|
|
|
@sudo -E debuginfo-install $(CONFIRM) glibc openssl-libs zlib
|
2018-11-27 15:57:30 -05:00
|
|
|
endif
|
2022-09-02 14:08:36 +02:00
|
|
|
else ifeq ($(filter opensuse-leap-15.3 opensuse-leap-15.4 ,$(OS_ID)-$(OS_VERSION_ID)),$(OS_ID)-$(OS_VERSION_ID))
|
2021-11-02 11:07:19 +01:00
|
|
|
@sudo -E zypper refresh
|
|
|
|
@sudo -E zypper install -y $(RPM_SUSE_DEPENDS)
|
2016-02-25 16:26:01 +01:00
|
|
|
else
|
2021-11-02 11:07:19 +01:00
|
|
|
$(error "This option currently works only on Ubuntu, Debian, RHEL, CentOS or openSUSE-leap systems")
|
2016-02-25 16:26:01 +01:00
|
|
|
endif
|
2019-05-07 10:32:40 +02:00
|
|
|
git config commit.template .git_commit_template.txt
|
2016-02-25 16:26:01 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: install-deps
|
|
|
|
install-deps: install-dep
|
|
|
|
|
2016-02-10 00:36:06 +01:00
|
|
|
define make
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C $(BR) PLATFORM=$(PLATFORM) TAG=$(1) $(2)
|
2016-02-10 00:36:06 +01:00
|
|
|
endef
|
|
|
|
|
2016-10-13 18:36:50 -04:00
|
|
|
$(BR)/scripts/.version:
|
|
|
|
ifneq ("$(wildcard /etc/redhat-release)","")
|
|
|
|
$(shell $(BR)/scripts/version rpm-string > $(BR)/scripts/.version)
|
|
|
|
else
|
|
|
|
$(shell $(BR)/scripts/version > $(BR)/scripts/.version)
|
|
|
|
endif
|
|
|
|
|
2017-04-18 15:26:39 +02:00
|
|
|
DIST_FILE = $(BR)/vpp-$(shell src/scripts/version).tar
|
|
|
|
DIST_SUBDIR = vpp-$(shell src/scripts/version|cut -f1 -d-)
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: dist
|
2017-04-18 15:26:39 +02:00
|
|
|
dist:
|
2017-07-18 15:48:03 -04:00
|
|
|
@if git rev-parse 2> /dev/null ; then \
|
|
|
|
git archive \
|
|
|
|
--prefix=$(DIST_SUBDIR)/ \
|
|
|
|
--format=tar \
|
|
|
|
-o $(DIST_FILE) \
|
|
|
|
HEAD ; \
|
2021-05-17 16:16:28 +00:00
|
|
|
git describe --long > $(BR)/.version ; \
|
2017-07-18 15:48:03 -04:00
|
|
|
else \
|
|
|
|
(cd .. ; tar -cf $(DIST_FILE) $(DIST_SUBDIR) --exclude=*.tar) ; \
|
|
|
|
src/scripts/version > $(BR)/.version ; \
|
|
|
|
fi
|
2017-04-18 15:26:39 +02:00
|
|
|
@tar --append \
|
|
|
|
--file $(DIST_FILE) \
|
|
|
|
--transform='s,.*/.version,$(DIST_SUBDIR)/src/scripts/.version,' \
|
|
|
|
$(BR)/.version
|
|
|
|
@$(RM) $(BR)/.version $(DIST_FILE).xz
|
|
|
|
@xz -v --threads=0 $(DIST_FILE)
|
|
|
|
@$(RM) $(BR)/vpp-latest.tar.xz
|
|
|
|
@ln -rs $(DIST_FILE).xz $(BR)/vpp-latest.tar.xz
|
2016-10-13 18:36:50 -04:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: build
|
2018-03-15 19:36:41 +01:00
|
|
|
build: $(BR)/.deps.ok
|
2018-03-14 20:58:39 +01:00
|
|
|
$(call make,$(PLATFORM)_debug,$(addsuffix -install,$(TARGETS)))
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: wipedist
|
2016-10-13 18:36:50 -04:00
|
|
|
wipedist:
|
2017-04-18 15:26:39 +02:00
|
|
|
@$(RM) $(BR)/*.tar.xz
|
2016-10-13 18:36:50 -04:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: wipe
|
2018-03-15 19:36:41 +01:00
|
|
|
wipe: wipedist test-wipe $(BR)/.deps.ok
|
2017-05-31 19:25:08 +02:00
|
|
|
$(call make,$(PLATFORM)_debug,$(addsuffix -wipe,$(TARGETS)))
|
2021-06-04 17:43:01 +08:00
|
|
|
@find . -type f -name "*.api.json" ! -path "./src/*" -exec rm {} \;
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: rebuild
|
2016-02-10 00:36:06 +01:00
|
|
|
rebuild: wipe build
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: build-release
|
2018-03-15 19:36:41 +01:00
|
|
|
build-release: $(BR)/.deps.ok
|
2017-05-31 19:25:08 +02:00
|
|
|
$(call make,$(PLATFORM),$(addsuffix -install,$(TARGETS)))
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2024-01-11 11:59:47 +01:00
|
|
|
.PHONY: build-vpp-gcov
|
|
|
|
build-vpp-gcov:
|
|
|
|
$(call test,vpp_gcov)
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: wipe-release
|
2018-03-15 19:36:41 +01:00
|
|
|
wipe-release: test-wipe $(BR)/.deps.ok
|
2017-05-31 19:25:08 +02:00
|
|
|
$(call make,$(PLATFORM),$(addsuffix -wipe,$(TARGETS)))
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: rebuild-release
|
2016-02-10 00:36:06 +01:00
|
|
|
rebuild-release: wipe-release build-release
|
|
|
|
|
2018-11-08 11:21:39 +01:00
|
|
|
export TEST_DIR ?= $(WS_ROOT)/test
|
|
|
|
|
2016-10-03 19:44:57 +02:00
|
|
|
define test
|
2024-01-18 10:48:17 +00:00
|
|
|
$(if $(filter-out $(2),retest),$(MAKE) -C $(BR) PLATFORM=vpp TAG=$(1) CC=$(CC) vpp-install,)
|
2017-05-09 23:27:14 -07:00
|
|
|
$(eval libs:=lib lib64)
|
2024-01-18 10:48:17 +00:00
|
|
|
$(MAKE) -C test \
|
2021-05-31 16:11:49 +02:00
|
|
|
VPP_BUILD_DIR=$(BR)/build-$(1)-native/vpp \
|
|
|
|
VPP_BIN=$(BR)/install-$(1)-native/vpp/bin/vpp \
|
|
|
|
VPP_INSTALL_PATH=$(BR)/install-$(1)-native/ \
|
2017-03-07 11:39:27 +01:00
|
|
|
EXTENDED_TESTS=$(EXTENDED_TESTS) \
|
2023-08-08 15:25:21 -04:00
|
|
|
TEST_GCOV=$(TEST_GCOV) \
|
2017-04-07 01:48:47 +00:00
|
|
|
PYTHON=$(PYTHON) \
|
2017-09-29 12:36:37 +02:00
|
|
|
OS_ID=$(OS_ID) \
|
2019-12-19 16:09:43 -05:00
|
|
|
RND_SEED=$(RND_SEED) \
|
2017-11-06 09:46:00 +01:00
|
|
|
CACHE_OUTPUT=$(CACHE_OUTPUT) \
|
2021-05-31 16:08:53 +02:00
|
|
|
TAG=$(1) \
|
2021-05-31 16:11:49 +02:00
|
|
|
$(2)
|
2016-10-03 19:44:57 +02:00
|
|
|
endef
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test
|
2018-03-15 19:36:41 +01:00
|
|
|
test:
|
2023-12-20 20:02:45 -05:00
|
|
|
ifeq ($(CC),cc)
|
|
|
|
$(eval CC=clang)
|
|
|
|
endif
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp,test)
|
2016-10-03 19:44:57 +02:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test-debug
|
2018-03-15 19:36:41 +01:00
|
|
|
test-debug:
|
2023-12-20 20:02:45 -05:00
|
|
|
ifeq ($(CC),cc)
|
|
|
|
$(eval CC=clang)
|
|
|
|
endif
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp_debug,test)
|
2016-10-11 11:47:09 +02:00
|
|
|
|
2023-06-21 23:14:38 -04:00
|
|
|
.PHONY: test-cov
|
|
|
|
test-cov:
|
|
|
|
$(eval CC=gcc)
|
|
|
|
$(eval TEST_GCOV=1)
|
|
|
|
$(call test,vpp_gcov,cov)
|
|
|
|
|
2024-01-11 11:59:47 +01:00
|
|
|
.PHONY: test-cov-hs
|
|
|
|
test-cov-hs:
|
2024-06-05 18:11:46 +00:00
|
|
|
@$(MAKE) -C extras/hs-test build-cov
|
|
|
|
@$(MAKE) -C extras/hs-test test-cov
|
2024-01-11 11:59:47 +01:00
|
|
|
|
|
|
|
.PHONY: test-cov-both
|
|
|
|
test-cov-both:
|
|
|
|
@echo "Running Python, Golang tests and merging coverage reports."
|
|
|
|
find $(BR) -name '*.gcda' -delete
|
2024-06-05 18:11:46 +00:00
|
|
|
@$(MAKE) test-cov
|
2024-01-11 11:59:47 +01:00
|
|
|
find $(BR) -name '*.gcda' -delete
|
2024-06-05 18:11:46 +00:00
|
|
|
@$(MAKE) test-cov-hs
|
|
|
|
@$(MAKE) cov-merge
|
2024-01-11 11:59:47 +01:00
|
|
|
|
2023-06-21 23:14:38 -04:00
|
|
|
.PHONY: test-cov-build
|
|
|
|
test-cov-build:
|
|
|
|
$(eval CC=gcc)
|
|
|
|
$(eval TEST_GCOV=1)
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp_gcov,test)
|
2019-03-22 08:50:29 -04:00
|
|
|
|
2023-06-21 23:14:38 -04:00
|
|
|
.PHONY: test-cov-prep
|
|
|
|
test-cov-prep:
|
|
|
|
$(eval CC=gcc)
|
|
|
|
$(call test,vpp_gcov,cov-prep)
|
|
|
|
|
|
|
|
.PHONY: test-cov-post
|
|
|
|
test-cov-post:
|
|
|
|
$(eval CC=gcc)
|
|
|
|
$(call test,vpp_gcov,cov-post)
|
|
|
|
|
2024-01-11 11:59:47 +01:00
|
|
|
.PHONY: cov-merge
|
|
|
|
cov-merge:
|
|
|
|
@lcov --add-tracefile $(BR)/test-coverage-merged/coverage-filtered.info \
|
|
|
|
-a $(BR)/test-coverage-merged/coverage-filtered1.info -o $(BR)/test-coverage-merged/coverage-merged.info
|
|
|
|
@genhtml $(BR)/test-coverage-merged/coverage-merged.info \
|
|
|
|
--output-directory $(BR)/test-coverage-merged/html
|
|
|
|
@echo "Code coverage report is in $(BR)/test-coverage-merged/html/index.html"
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test-all
|
2018-03-15 19:36:41 +01:00
|
|
|
test-all:
|
2021-05-31 16:08:53 +02:00
|
|
|
$(eval EXTENDED_TESTS=1)
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp,test)
|
2018-07-16 08:22:37 -04:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test-all-debug
|
2018-03-15 19:36:41 +01:00
|
|
|
test-all-debug:
|
2021-05-31 16:08:53 +02:00
|
|
|
$(eval EXTENDED_TESTS=1)
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp_debug,test)
|
2017-03-07 11:39:27 +01:00
|
|
|
|
2023-06-21 23:14:38 -04:00
|
|
|
.PHONY: test-all-cov
|
|
|
|
test-all-cov:
|
|
|
|
$(eval CC=gcc)
|
|
|
|
$(eval TEST_GCOV=1)
|
|
|
|
$(eval EXTENDED_TESTS=1)
|
|
|
|
$(call test,vpp_gcov,test)
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: papi-wipe
|
|
|
|
papi-wipe: test-wipe-papi
|
|
|
|
$(call banner,"This command is deprecated. Please use 'test-wipe-papi'")
|
|
|
|
|
|
|
|
.PHONY: test-wipe-papi
|
|
|
|
test-wipe-papi:
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C test wipe-papi
|
2019-07-09 16:49:46 -04:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test-help
|
2016-10-28 13:20:27 +02:00
|
|
|
test-help:
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C test help
|
2016-10-28 13:20:27 +02:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test-wipe
|
2016-10-28 13:20:27 +02:00
|
|
|
test-wipe:
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C test wipe
|
2016-10-28 13:20:27 +02:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test-shell
|
2018-03-15 19:36:41 +01:00
|
|
|
test-shell:
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp,shell)
|
2017-03-09 08:01:52 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test-shell-debug
|
2018-03-15 19:36:41 +01:00
|
|
|
test-shell-debug:
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp_debug,shell)
|
2017-03-09 08:01:52 +01:00
|
|
|
|
2023-06-21 23:14:38 -04:00
|
|
|
.PHONY: test-shell-cov
|
|
|
|
test-shell-cov:
|
|
|
|
$(eval CC=gcc)
|
|
|
|
$(eval TEST_GCOV=1)
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp_gcov,shell)
|
2019-05-08 19:18:18 -04:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test-dep
|
2018-04-02 16:42:48 -06:00
|
|
|
test-dep:
|
2024-06-05 18:11:46 +00:00
|
|
|
@$(MAKE) -C test test-dep
|
2018-04-02 16:42:48 -06:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test-doc
|
2016-10-11 11:47:09 +02:00
|
|
|
test-doc:
|
2021-11-06 10:59:22 -04:00
|
|
|
@echo "make test-doc is DEPRECATED: use 'make docs'"
|
2021-08-19 11:38:06 +02:00
|
|
|
sleep 300
|
2016-10-11 11:47:09 +02:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test-wipe-doc
|
2016-10-28 13:20:27 +02:00
|
|
|
test-wipe-doc:
|
2021-08-19 11:38:06 +02:00
|
|
|
@echo "make test-wipe-doc is DEPRECATED"
|
|
|
|
sleep 300
|
2016-10-03 19:44:57 +02:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test-wipe-cov
|
2016-11-16 19:50:24 +01:00
|
|
|
test-wipe-cov:
|
2023-06-21 23:14:38 -04:00
|
|
|
$(call make,$(PLATFORM)_gcov,$(addsuffix -wipe,$(TARGETS)))
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C test wipe-cov
|
2016-11-16 19:50:24 +01:00
|
|
|
|
2019-11-15 17:29:15 -05:00
|
|
|
.PHONY: test-wipe-all
|
|
|
|
test-wipe-all:
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C test wipe-all
|
2019-11-15 17:29:15 -05:00
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
# Note: All python venv consolidated in test/Makefile, test/requirements*.txt
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test-checkstyle
|
2017-01-17 10:37:05 +01:00
|
|
|
test-checkstyle:
|
2022-04-26 19:02:15 +02:00
|
|
|
$(warning test-checkstyle is deprecated. Running checkstyle-python.")
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C test checkstyle-python-all
|
2017-01-17 10:37:05 +01:00
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
# Note: All python venv consolidated in test/Makefile, test/requirements*.txt
|
2021-03-24 23:24:52 +01:00
|
|
|
.PHONY: test-checkstyle-diff
|
|
|
|
test-checkstyle-diff:
|
2022-04-26 19:02:15 +02:00
|
|
|
$(warning test-checkstyle-diff is deprecated. Running checkstyle-python.")
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C test checkstyle-python-all
|
2021-03-24 23:24:52 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: test-refresh-deps
|
2019-06-21 17:04:29 +02:00
|
|
|
test-refresh-deps:
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C test refresh-deps
|
2019-06-21 17:04:29 +02:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: retest
|
2016-10-03 19:44:57 +02:00
|
|
|
retest:
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp,retest)
|
2016-10-03 19:44:57 +02:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: retest-debug
|
2016-10-03 19:44:57 +02:00
|
|
|
retest-debug:
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp_debug,retest)
|
2016-10-03 19:44:57 +02:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: retest-all
|
|
|
|
retest-all:
|
2021-05-31 16:08:53 +02:00
|
|
|
$(eval EXTENDED_TESTS=1)
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp,retest)
|
2019-11-14 12:19:32 -05:00
|
|
|
|
|
|
|
.PHONY: retest-all-debug
|
|
|
|
retest-all-debug:
|
2021-05-31 16:08:53 +02:00
|
|
|
$(eval EXTENDED_TESTS=1)
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp_debug,retest)
|
2019-11-14 12:19:32 -05:00
|
|
|
|
2021-03-16 12:52:12 +01:00
|
|
|
.PHONY: test-start-vpp-in-gdb
|
|
|
|
test-start-vpp-in-gdb:
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp,start-gdb)
|
2021-03-16 12:52:12 +01:00
|
|
|
|
|
|
|
.PHONY: test-start-vpp-debug-in-gdb
|
|
|
|
test-start-vpp-debug-in-gdb:
|
2021-05-31 16:11:49 +02:00
|
|
|
$(call test,vpp_debug,start-gdb)
|
2021-03-16 12:52:12 +01:00
|
|
|
|
2016-02-10 00:36:06 +01:00
|
|
|
ifeq ("$(wildcard $(STARTUP_CONF))","")
|
|
|
|
define run
|
|
|
|
@echo "WARNING: STARTUP_CONF not defined or file doesn't exist."
|
|
|
|
@echo " Running with minimal startup config: $(MINIMAL_STARTUP_CONF)\n"
|
2016-07-07 17:56:48 +02:00
|
|
|
@cd $(STARTUP_DIR) && \
|
2018-04-05 21:32:29 +02:00
|
|
|
$(SUDO) $(2) $(1)/vpp/bin/vpp $(MINIMAL_STARTUP_CONF)
|
2016-02-10 00:36:06 +01:00
|
|
|
endef
|
|
|
|
else
|
|
|
|
define run
|
2016-07-07 17:56:48 +02:00
|
|
|
@cd $(STARTUP_DIR) && \
|
2018-04-05 21:32:29 +02:00
|
|
|
$(SUDO) $(2) $(1)/vpp/bin/vpp $(shell cat $(STARTUP_CONF) | sed -e 's/#.*//')
|
2016-02-10 00:36:06 +01:00
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2016-03-16 22:49:05 +01:00
|
|
|
%.files: .FORCE
|
2021-04-28 00:11:33 +02:00
|
|
|
@find src -name '*.[chS]' > $@
|
2016-03-16 22:49:05 +01:00
|
|
|
|
|
|
|
.FORCE:
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: run
|
2016-02-10 00:36:06 +01:00
|
|
|
run:
|
2016-07-07 17:56:48 +02:00
|
|
|
$(call run, $(BR)/install-$(PLATFORM)_debug-native)
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: run-release
|
2016-02-10 00:36:06 +01:00
|
|
|
run-release:
|
2016-07-07 17:56:48 +02:00
|
|
|
$(call run, $(BR)/install-$(PLATFORM)-native)
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: debug
|
2016-02-10 00:36:06 +01:00
|
|
|
debug:
|
2016-07-07 17:56:48 +02:00
|
|
|
$(call run, $(BR)/install-$(PLATFORM)_debug-native,$(GDB) $(GDB_ARGS) --args)
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: build-coverity
|
2018-07-19 14:39:40 +02:00
|
|
|
build-coverity:
|
2017-01-04 17:24:32 -05:00
|
|
|
$(call make,$(PLATFORM)_coverity,install-packages)
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C build-root PLATFORM=vpp TAG=vpp_coverity libmemif-install
|
2017-01-04 17:24:32 -05:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: debug-release
|
2016-02-10 00:36:06 +01:00
|
|
|
debug-release:
|
2016-07-07 17:56:48 +02:00
|
|
|
$(call run, $(BR)/install-$(PLATFORM)-native,$(GDB) $(GDB_ARGS) --args)
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: build-vat
|
2016-02-10 00:36:06 +01:00
|
|
|
build-vat:
|
2016-03-16 22:49:05 +01:00
|
|
|
$(call make,$(PLATFORM)_debug,vpp-api-test-install)
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: run-vat
|
2016-02-10 00:36:06 +01:00
|
|
|
run-vat:
|
2018-04-05 21:32:29 +02:00
|
|
|
@$(SUDO) $(BR)/install-$(PLATFORM)_debug-native/vpp/bin/vpp_api_test
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: pkg-deb
|
2017-01-10 10:39:21 +01:00
|
|
|
pkg-deb:
|
2019-01-18 13:28:22 +01:00
|
|
|
$(call make,$(PLATFORM),vpp-package-deb)
|
|
|
|
|
2020-03-18 10:14:40 -04:00
|
|
|
.PHONY: pkg-snap
|
|
|
|
pkg-snap:
|
|
|
|
cd extras/snap ; \
|
|
|
|
./prep ; \
|
|
|
|
SNAPCRAFT_BUILD_ENVIRONMENT_MEMORY=8G \
|
|
|
|
SNAPCRAFT_BUILD_ENVIRONMENT_CPU=6 \
|
|
|
|
snapcraft --debug
|
|
|
|
|
|
|
|
.PHONY: snap-clean
|
|
|
|
snap-clean:
|
|
|
|
cd extras/snap ; \
|
|
|
|
snapcraft clean ; \
|
|
|
|
rm -f *.snap *.tgz
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: pkg-deb-debug
|
2019-01-18 13:28:22 +01:00
|
|
|
pkg-deb-debug:
|
|
|
|
$(call make,$(PLATFORM)_debug,vpp-package-deb)
|
2016-02-10 00:36:06 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: pkg-rpm
|
2017-01-10 10:39:21 +01:00
|
|
|
pkg-rpm: dist
|
2024-01-18 10:48:17 +00:00
|
|
|
$(MAKE) -C extras/rpm
|
2016-03-16 22:49:05 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: pkg-srpm
|
2017-07-19 19:17:15 -04:00
|
|
|
pkg-srpm: dist
|
2024-01-18 10:48:17 +00:00
|
|
|
$(MAKE) -C extras/rpm srpm
|
2017-07-19 19:17:15 -04:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: install-ext-deps
|
2018-09-18 18:41:38 +02:00
|
|
|
install-ext-deps:
|
2024-01-18 10:48:17 +00:00
|
|
|
$(MAKE) -C build/external install-$(PKG)
|
2017-01-09 20:24:50 +01:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: install-ext-dep
|
|
|
|
install-ext-dep: install-ext-deps
|
|
|
|
|
|
|
|
.PHONY: json-api-files
|
2019-07-15 15:22:31 -04:00
|
|
|
json-api-files:
|
|
|
|
$(WS_ROOT)/src/tools/vppapigen/generate_json.py
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: json-api-files-debug
|
2019-07-15 15:22:31 -04:00
|
|
|
json-api-files-debug:
|
|
|
|
$(WS_ROOT)/src/tools/vppapigen/generate_json.py --debug-target
|
|
|
|
|
2021-04-08 13:08:04 +02:00
|
|
|
.PHONY: go-api-files
|
|
|
|
go-api-files: json-api-files
|
2022-03-10 12:38:31 +01:00
|
|
|
$(WS_ROOT)/src/tools/vppapigen/generate_go.py $(ARGS)
|
2021-04-08 13:08:04 +02:00
|
|
|
|
2024-06-13 08:59:58 +02:00
|
|
|
.PHONY: cleanup-hst
|
|
|
|
cleanup-hst:
|
|
|
|
$(MAKE) -C extras/hs-test cleanup-hst
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: ctags
|
2016-03-16 22:49:05 +01:00
|
|
|
ctags: ctags.files
|
2020-12-05 11:01:14 +01:00
|
|
|
@ctags --totals --tag-relative=yes -L $<
|
2016-03-16 22:49:05 +01:00
|
|
|
@rm $<
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: gtags
|
2016-07-02 17:54:36 -07:00
|
|
|
gtags: ctags
|
|
|
|
@gtags --gtagslabel=ctags
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: cscope
|
2016-03-16 22:49:05 +01:00
|
|
|
cscope: cscope.files
|
|
|
|
@cscope -b -q -v
|
2016-04-26 08:01:31 +02:00
|
|
|
|
2020-05-08 19:01:22 +02:00
|
|
|
.PHONY: compdb
|
|
|
|
compdb:
|
2020-10-23 17:20:32 +02:00
|
|
|
@ninja -C build-root/build-vpp_debug-native/vpp build.ninja
|
|
|
|
@ninja -C build-root/build-vpp_debug-native/vpp -t compdb | \
|
2021-04-29 18:47:25 +02:00
|
|
|
src/scripts/compdb_cleanup.py > compile_commands.json
|
2020-05-08 19:01:22 +02:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: checkstyle
|
2020-01-03 16:37:27 +01:00
|
|
|
checkstyle: checkfeaturelist
|
2020-12-12 19:09:31 +01:00
|
|
|
@extras/scripts/checkstyle.sh
|
2016-09-07 13:10:50 +02:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: checkstyle-commit
|
|
|
|
checkstyle-commit:
|
|
|
|
@extras/scripts/check_commit_msg.sh
|
|
|
|
|
|
|
|
.PHONY: checkstyle-test
|
2022-04-26 19:02:15 +02:00
|
|
|
checkstyle-test:
|
|
|
|
$(warning test-checkstyle is deprecated. Running checkstyle-python.")
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C test checkstyle-python-all
|
2022-04-26 19:02:15 +02:00
|
|
|
|
|
|
|
# Note: All python venv consolidated in test/Makefile, test/requirements*.txt
|
|
|
|
.PHONY: checkstyle-python
|
|
|
|
checkstyle-python:
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C test checkstyle-python-all
|
2019-11-14 12:19:32 -05:00
|
|
|
|
2024-06-11 10:32:08 +02:00
|
|
|
.PHONY: checkstyle-go
|
|
|
|
checkstyle-go:
|
|
|
|
@$(MAKE) -C extras/hs-test checkstyle-go
|
|
|
|
|
|
|
|
.PHONY: fixstyle-go
|
|
|
|
fixstyle-go:
|
|
|
|
@$(MAKE) -C extras/hs-test fixstyle-go
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: checkstyle-all
|
2024-06-13 08:59:58 +02:00
|
|
|
checkstyle-all: checkstyle-commit checkstyle checkstyle-python docs-spell checkstyle-go
|
2019-11-14 12:19:32 -05:00
|
|
|
|
|
|
|
.PHONY: fixstyle
|
2016-09-07 13:10:50 +02:00
|
|
|
fixstyle:
|
2020-12-12 19:09:31 +01:00
|
|
|
@extras/scripts/checkstyle.sh --fix
|
2016-05-03 16:34:59 -04:00
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
# Note: All python venv consolidated in test/Makefile, test/requirements*.txt
|
|
|
|
.PHONY: fixstyle-python
|
|
|
|
fixstyle-python:
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C test fixstyle-python-all
|
2022-04-26 19:02:15 +02:00
|
|
|
|
2020-05-05 12:23:47 +02:00
|
|
|
.PHONY: checkstyle-api
|
|
|
|
checkstyle-api:
|
2020-12-15 10:19:25 +01:00
|
|
|
@extras/scripts/crcchecker.py --check-patchset
|
2020-05-05 12:23:47 +02:00
|
|
|
|
2019-11-01 02:34:32 -04:00
|
|
|
# necessary because Bug 1696324 - Update to python3.6 breaks PyYAML dependencies
|
|
|
|
# Status: CLOSED CANTFIX
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1696324
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: centos-pyyaml
|
2019-11-01 02:34:32 -04:00
|
|
|
centos-pyyaml:
|
|
|
|
ifeq ($(OS_ID)-$(OS_VERSION_ID),centos-8)
|
|
|
|
@sudo -E yum install $(CONFIRM) python3-pyyaml
|
|
|
|
endif
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: featurelist
|
2019-11-01 02:34:32 -04:00
|
|
|
featurelist: centos-pyyaml
|
2021-04-28 00:11:33 +02:00
|
|
|
@extras/scripts/fts.py --all --markdown
|
2019-05-14 13:24:10 +02:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: checkfeaturelist
|
2019-11-01 02:34:32 -04:00
|
|
|
checkfeaturelist: centos-pyyaml
|
2021-04-28 00:11:33 +02:00
|
|
|
@extras/scripts/fts.py --validate --all
|
2019-05-14 13:24:10 +02:00
|
|
|
|
2016-05-13 13:41:36 -04:00
|
|
|
#
|
|
|
|
# Build the documentation
|
|
|
|
#
|
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: bootstrap-doxygen
|
2017-01-10 10:39:21 +01:00
|
|
|
bootstrap-doxygen:
|
2021-08-19 11:38:06 +02:00
|
|
|
@echo "make bootstrap-doxygen is DEPRECATED"
|
|
|
|
sleep 300
|
2016-05-03 16:34:59 -04:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: doxygen
|
2021-08-19 11:38:06 +02:00
|
|
|
doxygen: docs
|
|
|
|
@echo "make doxygen is DEPRECATED: use 'make docs'"
|
|
|
|
sleep 300
|
2016-05-03 16:34:59 -04:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: wipe-doxygen
|
2016-05-03 16:34:59 -04:00
|
|
|
wipe-doxygen:
|
2021-08-19 11:38:06 +02:00
|
|
|
@echo "make wipe-doxygen is DEPRECATED"
|
|
|
|
sleep 300
|
2016-07-25 16:38:11 -04:00
|
|
|
|
2021-08-19 11:38:06 +02:00
|
|
|
.PHONY: docs-%
|
|
|
|
docs-%:
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C $(WS_ROOT)/docs $*
|
2018-09-24 14:59:33 -04:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: docs
|
2021-08-19 11:38:06 +02:00
|
|
|
docs:
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C $(WS_ROOT)/docs docs
|
2018-09-24 14:59:33 -04:00
|
|
|
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: pkg-verify
|
2019-07-15 12:03:51 -04:00
|
|
|
pkg-verify: install-dep $(BR)/.deps.ok install-ext-deps
|
2022-09-09 11:34:02 -04:00
|
|
|
$(call banner,"Building for PLATFORM=vpp")
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C build-root PLATFORM=vpp TAG=vpp wipe-all install-packages
|
2017-04-19 14:09:07 +02:00
|
|
|
$(call banner,"Building sample-plugin")
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C build-root PLATFORM=vpp TAG=vpp sample-plugin-install
|
2018-03-26 14:09:38 +02:00
|
|
|
$(call banner,"Building libmemif")
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) -C build-root PLATFORM=vpp TAG=vpp libmemif-install
|
2017-01-09 20:24:50 +01:00
|
|
|
$(call banner,"Building $(PKG) packages")
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) pkg-$(PKG)
|
2019-07-15 12:03:51 -04:00
|
|
|
|
2022-09-09 11:34:02 -04:00
|
|
|
# Note: 'make verify' target is not used by ci-management scripts
|
|
|
|
MAKE_VERIFY_GATE_OS ?= ubuntu-22.04
|
2019-11-14 12:19:32 -05:00
|
|
|
.PHONY: verify
|
2019-07-15 12:03:51 -04:00
|
|
|
verify: pkg-verify
|
2018-10-26 05:55:18 -07:00
|
|
|
ifeq ($(OS_ID)-$(OS_VERSION_ID),$(MAKE_VERIFY_GATE_OS))
|
2019-07-31 00:34:05 -04:00
|
|
|
$(call banner,"Testing vppapigen")
|
|
|
|
@src/tools/vppapigen/test_vppapigen.py
|
2018-08-24 13:37:45 +02:00
|
|
|
$(call banner,"Running tests")
|
2024-01-18 10:48:17 +00:00
|
|
|
@$(MAKE) COMPRESS_FAILED_TEST_LOGS=yes RETRIES=3 test
|
2018-10-26 05:55:18 -07:00
|
|
|
else
|
|
|
|
$(call banner,"Skipping tests. Tests under 'make verify' supported on $(MAKE_VERIFY_GATE_OS)")
|
2017-05-22 16:56:54 +02:00
|
|
|
endif
|
2022-09-19 16:26:25 +02:00
|
|
|
|
|
|
|
.PHONY: check-dpdk-mlx
|
|
|
|
check-dpdk-mlx:
|
2024-01-18 10:48:17 +00:00
|
|
|
@[ $$($(MAKE) -sC build/external dpdk-show-DPDK_MLX_DEFAULT) = y ]
|