SAMPLE_PLUGIN?=no
STARTUP_DIR?=$(PWD)
MACHINE=$(shell uname -m)
-SUDO?=sudo
+SUDO?=sudo -E
DPDK_CONFIG?=no-pci
,:=,
@sudo -E debuginfo-install $(CONFIRM) glibc openssl-libs mbedtls-devel zlib
else ifeq ($(OS_ID)-$(OS_VERSION_ID),centos-8)
@sudo -E dnf install $(CONFIRM) dnf-plugins-core epel-release
- @sudo -E dnf config-manager --set-enabled PowerTools
+ @sudo -E dnf config-manager --set-enabled \
+ $(shell dnf repolist all 2>/dev/null|grep -i powertools|cut -d' ' -f1)
@sudo -E dnf groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
@sudo -E dnf install $(CONFIRM) $(RPM_DEPENDS)
else ifeq ($(OS_ID),centos)
.PHONY: ctags
ctags: ctags.files
- @ctags --totals --tag-relative -L $<
+ @ctags --totals --tag-relative=yes -L $<
@rm $<
.PHONY: gtags
.PHONY: compdb
compdb:
- @ninja -C build-root/build-vpp_debug-native/vpp -t compdb > compile_commands.json
+ @ninja -C build-root/build-vpp_debug-native/vpp build.ninja
+ @ninja -C build-root/build-vpp_debug-native/vpp -t compdb | \
+ extras/scripts/compdb_cleanup.py > compile_commands.json
.PHONY: checkstyle
checkstyle: checkfeaturelist