From b61a9dcf3f316276494cffe400f9476314960e4b Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 23 Jan 2009 18:23:16 +0000 Subject: 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. --- Makefile.inc1 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.inc1') diff --git a/Makefile.inc1 b/Makefile.inc1 index 343ae78450c9..f6a9c747d461 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} -- cgit v1.2.3