From owner-freebsd-arch@FreeBSD.ORG Mon Jan 12 05:44:35 2009 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01820106566C for ; Mon, 12 Jan 2009 05:44:35 +0000 (UTC) (envelope-from ru@freebsd.org) Received: from mail.vega.ru (mail.vega.ru [90.156.167.5]) by mx1.freebsd.org (Postfix) with ESMTP id ABF1B8FC3A for ; Mon, 12 Jan 2009 05:44:34 +0000 (UTC) (envelope-from ru@freebsd.org) Received: from [10.100.124.199] (port=49465 helo=edoofus.dev.vega.ru) by mail.vega.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LMEwG-0006xS-4a; Mon, 12 Jan 2009 08:02:12 +0300 Date: Mon, 12 Jan 2009 08:02:06 +0300 From: Ruslan Ermilov To: "M. Warner Losh" Message-ID: <20090112050205.GA59401@edoofus.dev.vega.ru> References: <20090111.095109.-1112748421.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090111.095109.-1112748421.imp@bsdimp.com> Cc: arch@freebsd.org Subject: Re: Quick hack to make fast kernel builds easier X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2009 05:44:35 -0000 On Sun, Jan 11, 2009 at 09:51:09AM -0700, M. Warner Losh wrote: > This patch makes > > make buildkernel -DKERNFAST > > a short cut for > > make buildkernel -DNO_KERNELCLEAN -DNO_KERNELCONFIG -DNO_KERNELDEPEND > > which is a lot shorter to type. > > comments? > Except the "please don't use any values in assignments", I can't see a reason not to commit it if it's useful. > Index: Makefile.inc1 > =================================================================== > --- Makefile.inc1 (revision 186807) > +++ Makefile.inc1 (working copy) > @@ -5,6 +5,7 @@ > # -DNO_CLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir > # -DNO_CLEAN do not clean at all > # -DNO_SHARE do not go into share subdir > +# -DKERNFAST define NO_KERNELCONFIG, NO_KERNELCLEAN and NO_KERNELCONFIG > # -DNO_KERNELCONFIG do not run config in ${MAKE} buildkernel > # -DNO_KERNELCLEAN do not run ${MAKE} clean in ${MAKE} buildkernel > # -DNO_KERNELDEPEND do not run ${MAKE} depend in ${MAKE} buildkernel > @@ -697,6 +699,11 @@ > # be set to cross-build, we have to make sure TARGET is set > # properly. > > +.if defined(KERNFAST) > +NO_KERNELCLEAN= t > +NO_KERNELCONFIG= t > +NO_KERNELDEPEND= t > +.endif > .if !defined(KERNCONF) && defined(KERNEL) > KERNCONF= ${KERNEL} > KERNWARN= > -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer