From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 19:44:34 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BC8A16A50A for ; Thu, 2 Sep 2004 19:44:34 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 726AE43D45 for ; Thu, 2 Sep 2004 19:44:34 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 16564 invoked from network); 2 Sep 2004 19:44:34 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 2 Sep 2004 19:44:32 -0000 Received: from [10.50.41.228] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i82JiGS8069754; Thu, 2 Sep 2004 15:44:29 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Thu, 2 Sep 2004 15:38:26 -0400 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200409021538.26944.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: ctodd@chrismiller.com Subject: Re: How to customize a release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 19:44:34 -0000 On Thursday 02 September 2004 03:21 pm, ctodd@chrismiller.com wrote: > I'm looking for information on how to properly customize a FreeBSD > distribution when using the "make release" framework. Specifically I need > to modify some config files to default to serial console and fast baud > rate, and use a custom kernel configuration (not just hack the GENERIC > conf file). > > The documentation on the FreeBSD site covers how to build a release, but > other than a few hints I'm not finding and references on the correct way > to _customize_ the release. I did find a site that discusses building a > release, mirroring the usr/src tree from that release directory, modifying > the source, then creating a diff patch that's used on a subsequent "make > release". If it works as advertised, this is somewhat helpful other than > waiting an entire day for multiple release builds to finish. > > Is there a way to populate the build area with the source, then apply my > own patches prior to running a full "make release"? I tried "make > release.1" but this totally ignored my CHROOTDIR and tried to create "/R" > in my root partition :-(. > > Also I noted that "make rerelease" updates the source from CVS which is > undesirable in my case since I already have fresh source that was used > to create patches, and if any of those original files changed my patches > could fail. Can CVS updates be turned off for subsequent builds? > > Lastly, KERNCONF seems to have no relevance in "make release". How can I > force a non generic kernel to be used when building the release? There is a 'KERNELS' variable that is helpful. Also, look at LOCAL_PATCHES and LOCAL_SCRIPTS as far as how to patch a release build. Note that you can include patches to src/release/Makefile in LOCAL_PATCHES if need be. :) -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org