X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=Makefile;h=b8c8a781997d94689a8d99636783d94d6929ea59;hb=dcbbf2833d09ca6fc4f3df9bcac4ff2d1244c531;hp=cca853417b69b336cd0807efa5ecdd839078c1c9;hpb=2777ec761514fc0838ad11e6232ad97897663356;p=vpp.git diff --git a/Makefile b/Makefile index cca853417b6..b8c8a781997 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ DEB_DEPENDS += lcov chrpath autoconf indent clang-format libnuma-dev DEB_DEPENDS += python-all python3-all python3-setuptools python-dev DEB_DEPENDS += python-virtualenv python-pip libffi6 check DEB_DEPENDS += libboost-all-dev libffi-dev python3-ply libmbedtls-dev -DEB_DEPENDS += cmake ninja-build uuid-dev python3-jsonschema +DEB_DEPENDS += cmake ninja-build uuid-dev python3-jsonschema python3-yaml yamllint ifeq ($(OS_VERSION_ID),14.04) DEB_DEPENDS += libssl-dev else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-8) @@ -89,6 +89,7 @@ RPM_DEPENDS += selinux-policy selinux-policy-devel RPM_DEPENDS += ninja-build RPM_DEPENDS += libuuid-devel RPM_DEPENDS += mbedtls-devel +RPM_DEPENDS += yamllint ifeq ($(OS_ID),fedora) RPM_DEPENDS += dnf-utils @@ -185,8 +186,8 @@ help: @echo " build - build debug binaries" @echo " build-release - build release binaries" @echo " build-coverity - build coverity artifacts" - @echo " rebuild - wipe and build debug binares" - @echo " rebuild-release - wipe and build release binares" + @echo " rebuild - wipe and build debug binaries" + @echo " rebuild-release - wipe and build release binaries" @echo " run - run debug binary" @echo " run-release - run release binary" @echo " debug - run debug binary with debugger" @@ -235,7 +236,7 @@ help: @echo " V=[0|1] - set build verbosity level" @echo " STARTUP_CONF= - startup configuration file" @echo " (e.g. /etc/vpp/startup.conf)" - @echo " STARTUP_DIR= - startup drectory (e.g. /etc/vpp)" + @echo " STARTUP_DIR= - startup directory (e.g. /etc/vpp)" @echo " It also sets STARTUP_CONF if" @echo " startup.conf file is present" @echo " GDB= - gdb binary to use for debugging" @@ -558,14 +559,26 @@ cscope: cscope.files checkstyle: @build-root/scripts/checkstyle.sh + yamllint $(WS_ROOT)/src fixstyle: @build-root/scripts/checkstyle.sh --fix -featurelist: +# necessary because Bug 1696324 - Update to python3.6 breaks PyYAML dependencies +# Status: CLOSED CANTFIX +# https://bugzilla.redhat.com/show_bug.cgi?id=1696324 +centos-pyyaml: +ifeq ($(OS_ID)-$(OS_VERSION_ID),centos-7) + @python3 -m pip install pyyaml +endif +ifeq ($(OS_ID)-$(OS_VERSION_ID),centos-8) + @sudo -E yum install $(CONFIRM) python3-pyyaml +endif + +featurelist: centos-pyyaml @build-root/scripts/fts.py --all --markdown -checkfeaturelist: +checkfeaturelist: centos-pyyaml @build-root/scripts/fts.py --validate --git-status #