summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-01-23 09:52:50 +0000
committerpeter <peter@FreeBSD.org>2001-01-23 09:52:50 +0000
commit5e4cf5aee9411adb5735ad8a9deb6b141e22cd4c (patch)
tree20aedd2eb4691d90d26c51e56c1c302633d82e3e /Makefile.inc1
parentac8d71e32602d4a304ef9b20a03d6ea134659c82 (diff)
downloadFreeBSD-src-5e4cf5aee9411adb5735ad8a9deb6b141e22cd4c.zip
FreeBSD-src-5e4cf5aee9411adb5735ad8a9deb6b141e22cd4c.tar.gz
Provide backwards compatable recognition of ${KERNEL}. You should be
able to use KERNEL= again with buildkernel, but it will point you at KERNCONF= and press on regardless.
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc111
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 1b13707..8edc29b 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -358,7 +358,12 @@ distribworld:
# be set to cross-build, we have to make sure MACHINE is set
# properly.
+.if !defined(KERNCONF) && defined(KERNEL)
+KERNCONF= ${KERNEL}
+KERNWARN= yes
+.else
KERNCONF?= GENERIC
+.endif
INSTKERNNAME?= kernel
# The only exotic MACHINE_ARCH/MACHINE combination valid at this
@@ -393,6 +398,12 @@ buildkernel:
@echo ">>> ERROR: Missing kernel configuration file(s) (${KERNCONF})."
@false
.endif
+.if defined(KERNWARN)
+ @echo "--------------------------------------------------------------"
+ @echo ">>> WARNING: KERNEL= setting should be changed to KERNCONF="
+ @echo "--------------------------------------------------------------"
+ @sleep 3
+.endif
@echo
.for _kernel in ${BUILDKERNELS}
@echo "--------------------------------------------------------------"
OpenPOWER on IntegriCloud