From owner-freebsd-questions Tue May 12 18:30:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA14638 for freebsd-questions-outgoing; Tue, 12 May 1998 18:30:16 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA14421 for ; Tue, 12 May 1998 18:29:46 -0700 (PDT) (envelope-from grog@lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id KAA00703; Wed, 13 May 1998 10:59:42 +0930 (CST) (envelope-from grog) Message-ID: <19980513105941.Y20153@freebie.lemis.com> Date: Wed, 13 May 1998 10:59:41 +0930 From: Greg Lehey To: Mark Jaffe , freebsd-questions@FreeBSD.ORG Cc: mjaffe@congo.crc.ricoh.com Subject: Re: Building Kernel in different area? References: <9805121834.AA12637@gateway.crc.ricoh.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Mark Jaffe on Tue, May 12, 1998 at 12:44:15PM -0700 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 12 May 1998 at 12:44:15 -0700, Mark Jaffe wrote: > Suppose I want to create a new source tree for kernel mods and wish to NOT > build under my existing tree. What do I need to set in the way of flags to allow > this to happen? Nothing, really. Just create the new tree, and perform all the steps in that tree. For example, on my system I have /usr/src as a symlink to /src/freebie/src; this is the standard source. I also have two development trees /src/razzia/src and /src/daemon/src which I use for building test kernels for 3.0 and 2.2.6 respectively. To build a 3.0 kernel, I do: # cd /src/razzia/src/sys/i386/conf # config -g RAZZIA # cd ../../compile/RAZZIA # make depend # make You'll notice that, modulo the kernel name, the last four lines are identical with what you'd do to build a kernel in the /usr/src/sys hierarchy. Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message