Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jan 2009 18:23:16 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187636 - head
Message-ID:  <200901231823.n0NINGKb049742@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri Jan 23 18:23:16 2009
New Revision: 187636
URL: http://svn.freebsd.org/changeset/base/187636

Log:
  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.

Modified:
  head/Makefile.inc1

Modified: head/Makefile.inc1
==============================================================================
--- head/Makefile.inc1	Fri Jan 23 18:16:14 2009	(r187635)
+++ head/Makefile.inc1	Fri Jan 23 18:23:16 2009	(r187636)
@@ -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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901231823.n0NINGKb049742>