summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2016-10-23 18:00:08 +0000
committerWarner Losh <imp@FreeBSD.org>2016-10-23 18:00:08 +0000
commit90136961949dd6ac01e8905dbfae00835b2b1bea (patch)
tree034666ee58d4eda29d8282fd680e88536ea0ab09 /Makefile.inc1
parent3c2b90f1d14c395722b9a7cd9881655d36dc747e (diff)
downloadsrc-test2-90136961949dd6ac01e8905dbfae00835b2b1bea.tar.gz
src-test2-90136961949dd6ac01e8905dbfae00835b2b1bea.zip
Tweak the UPDATING message a bit about the upgrade path.
Add some automation into Makefile.inc1 to to enforce known good upgrade from source paths.
Notes
Notes: svn path=/head/; revision=307825
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc115
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 99918b3703e8..476c05431d2a 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -453,7 +453,7 @@ PACKAGE= kernel
#
BOOTSTRAPPING?= 0
-# Keep these in sync
+# Keep these in sync -- see below for special case exception
MINIMUM_SUPPORTED_OSREL?= 900044
MINIMUM_SUPPORTED_REL?= 9.1
@@ -1557,10 +1557,23 @@ _elftoolchain_libs= lib/libelf lib/libdwarf
.endif
legacy: .PHONY
+# Temporary special case for automatically detecting the clang compiler issue
+# Note: 9.x didn't have FreeBSD_version bumps often enough, so you may need to
+# set BOOTSTRAPPING to 0 if you're stable/9 tree post-dates r286035 but is before
+# the version bump in r296219 (from July 29, 2015 -> Feb 29, 2016).
+.if ${BOOTSTRAPPING} != 0 && \
+ ${WANT_COMPILER_TYPE} == "clang" && ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 30601
+.if ${BOOTSTRAPPING} > 10000000 && ${BOOTSTRAPPING} < 1002501
+ @echo "ERROR: Source upgrades from stable/10 prior to r286033 are not supported."; false
+.elif ${BOOTSTRAPPING} > 9000000 && ${BOOTSTRAPPING} < 903509
+ @echo "ERROR: Source upgrades from stable/9 prior to r286035 are not supported."; false
+.endif
+.endif
.if ${BOOTSTRAPPING} < ${MINIMUM_SUPPORTED_OSREL} && ${BOOTSTRAPPING} != 0
@echo "ERROR: Source upgrades from versions prior to ${MINIMUM_SUPPORTED_REL} are not supported."; \
false
.endif
+
.for _tool in tools/build ${_elftoolchain_libs}
${_+_}@${ECHODIR} "===> ${_tool} (obj,includes,all,install)"; \
cd ${.CURDIR}/${_tool}; \