summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-01-23 18:23:16 +0000
committerimp <imp@FreeBSD.org>2009-01-23 18:23:16 +0000
commit71d7b5671d1f0656a04a6fef0cc8931b2f4e8071 (patch)
tree5dcb4b5e71a86d43e21ca879685308047d195e18 /Makefile.inc1
parentcdea6eebedb83ac0008c6664435b9ae9baa18342 (diff)
downloadFreeBSD-src-71d7b5671d1f0656a04a6fef0cc8931b2f4e8071.zip
FreeBSD-src-71d7b5671d1f0656a04a6fef0cc8931b2f4e8071.tar.gz
Implement an idea from Sam Leffler:
make KERNFAST=blah buildkernel is now a short cut for make KERNCONF=blah -DKERNFAST buildkernel This change works for all kernel config files not named "1". I did that to make sure that make -DKERNFAST buildkernel remains the same as make -DKERNFAST KERNCONF=GENERIC buildkernel rather than trying to build and configure "1". I've never seen a kernel config file named "1," so I think this is a good compromise.
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc14
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 343ae78..f6a9c74 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -702,6 +702,10 @@ distrib-dirs distribution:
NO_KERNELCLEAN= t
NO_KERNELCONFIG= t
NO_KERNELDEPEND= t
+# Shortcut for KERNCONF=Blah -DKERNFAST is now KERNFAST=Blah
+.if !defined(KERNCONF) && ${KERNFAST} != "1"
+KERNCONF=${KERNFAST}
+.endif
.endif
.if !defined(KERNCONF) && defined(KERNEL)
KERNCONF= ${KERNEL}
OpenPOWER on IntegriCloud