X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=build%2Fexternal%2FMakefile;h=e5dff3c43e5efd84553feac83eb715207700ae1a;hb=b6103105f99e0c7f210a9596f205a1efd21b626f;hp=aed8b2ecb272002b650fa33391d15de73671c1a9;hpb=7cae003a68ed3e1022bcc8d33d0b5375918a83f7;p=vpp.git diff --git a/build/external/Makefile b/build/external/Makefile index aed8b2ecb27..e5dff3c43e5 100644 --- a/build/external/Makefile +++ b/build/external/Makefile @@ -19,7 +19,7 @@ MAKE ?= make MAKE_ARGS ?= -j BUILD_DIR ?= $(CURDIR)/_build INSTALL_DIR ?= $(CURDIR)/_install -PKG_VERSION ?= $(shell git describe --abbrev=0 | cut -d- -f1 | cut -dv -f2) +PKG_VERSION ?= $(shell git describe --abbrev=0 | cut -d- -f1 | cut -dv -f2 | cut -d. -f1,2) PKG_SUFFIX ?= $(shell git log --oneline v$(PKG_VERSION)-rc0.. . | wc -l) JOBS := $(if $(shell [ -f /proc/cpuinfo ] && head /proc/cpuinfo),\ $(shell grep -c ^processor /proc/cpuinfo), 2) @@ -27,6 +27,12 @@ JOBS := $(if $(shell [ -f /proc/cpuinfo ] && head /proc/cpuinfo),\ B := $(BUILD_DIR) I := $(INSTALL_DIR) +ifneq ($(shell which cmake3),) +CMAKE?=cmake3 +else +CMAKE?=cmake +endif + include packages.mk include packages/nasm.mk include packages/ipsec-mb.mk @@ -115,6 +121,7 @@ build-rpm: $(DEV_RPM) install-rpm: ifneq ($(INSTALLED_RPM_VER),$(RPM_VER)-$(PKG_SUFFIX)) @$(MAKE) $(DEV_RPM) + sudo rpm -e vpp-ext-deps || true sudo rpm -Uih --force $(DEV_RPM) else @echo "=========================================================="