X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=build%2Fexternal%2FMakefile;h=fb3cd94e52683e9cd6e8f70e2b2a82a10b09f111;hb=5ca8bfcacb3be58c46965ab52fba72ac6dfb828c;hp=d648f4fa1c7b60a0076fa02016b55ad2d2c30eb0;hpb=e9d7babde07ea93af54336200dbd65cc64bbd7ff;p=vpp.git diff --git a/build/external/Makefile b/build/external/Makefile index d648f4fa1c7..fb3cd94e526 100644 --- a/build/external/Makefile +++ b/build/external/Makefile @@ -21,6 +21,7 @@ BUILD_DIR ?= $(CURDIR)/_build INSTALL_DIR ?= $(CURDIR)/_install PKG_VERSION ?= $(shell git describe --abbrev=0 --match 'v[0-9]*' | cut -d- -f1 | cut -dv -f2 | cut -d. -f1,2) PKG_SUFFIX ?= $(shell git log --oneline v$(PKG_VERSION)-rc0.. . | wc -l) +SOURCE_DATE_EPOCH ?= $(shell git log -1 --pretty=%ct .) JOBS := $(if $(shell [ -f /proc/cpuinfo ] && head /proc/cpuinfo),\ $(shell grep -c ^processor /proc/cpuinfo), 2) @@ -68,7 +69,7 @@ deb/debian/changelog: Makefile @echo "" >> $@ @echo " * Version $(DEB_VER)" >> $@ @echo "" >> $@ - @echo " -- VPP Dev $(shell date -R)" >> $@ + @echo " -- VPP Dev $(shell date -R --date=@${SOURCE_DATE_EPOCH})" >> $@ $(DEV_DEB): deb/debian/changelog @cd deb && dpkg-buildpackage -b -uc -us