summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2013-10-22 21:53:32 +0000
committercperciva <cperciva@FreeBSD.org>2013-10-22 21:53:32 +0000
commit3f78c32610ee2416873e312c436f7460914a4935 (patch)
treed928d44080cfd5b888ad9007e9150a1f81480083 /Makefile.inc1
parent287864b1a7317cf7568bd46c04a058a453c45509 (diff)
downloadFreeBSD-src-3f78c32610ee2416873e312c436f7460914a4935.zip
FreeBSD-src-3f78c32610ee2416873e312c436f7460914a4935.tar.gz
MFC r256921:
Thou shalt not leak build host state into the system being compiled. Approved by: re (gjb)
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc17
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index ac10c2b..ea722fa 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -128,8 +128,11 @@ OSRELDATE= 0
.endif
.if !defined(VERSION)
-VERSION!= uname -srp
-VERSION+= ${OSRELDATE}
+REVISION!= make -C ${.CURDIR}/release -V REVISION
+BRANCH!= make -C ${.CURDIR}/release -V BRANCH
+SRCRELDATE!= awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' \
+ ${.CURDIR}/sys/sys/param.h
+VERSION= FreeBSD ${REVISION}-${BRANCH} ${TARGET_ARCH} ${SRCRELDATE}
.endif
KNOWN_ARCHES?= amd64 arm armeb/arm armv6/arm i386 i386/pc98 ia64 mips mipsel/mips mips64el/mips mips64/mips mipsn32el/mips mipsn32/mips powerpc powerpc64/powerpc sparc64
OpenPOWER on IntegriCloud