From owner-freebsd-doc@FreeBSD.ORG Tue Jan 5 21:31:31 2010 Return-Path: Delivered-To: doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54959106566B for ; Tue, 5 Jan 2010 21:31:31 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id EEF108FC0C for ; Tue, 5 Jan 2010 21:31:30 +0000 (UTC) Received: (qmail 28785 invoked by uid 399); 5 Jan 2010 21:31:30 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 5 Jan 2010 21:31:30 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B43AFB7.6050300@FreeBSD.org> Date: Tue, 05 Jan 2010 13:31:35 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20091206) MIME-Version: 1.0 To: "John P. Barton" References: <001201ca8e43$ddbbb5e0$993321a0$@com> In-Reply-To: <001201ca8e43$ddbbb5e0$993321a0$@com> X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: doc@FreeBSD.org Subject: Re: Compiling the kernel X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jan 2010 21:31:31 -0000 For future reference, the best list to start with is always freebsd-questions@freebsd.org. If you're sure your question is specific only to a port, then use freebsd-ports@freebsd.org. John P. Barton wrote: > I read the handbook section 8.5 {Building a Kernel} many times. I cannot > resolve the phrase "make buildkernel KERNCONF=MYKERNEL". I know that > MYKERNEL refers to the name I give to the new kernel I want to build but > neither buildkernel nor installkernel exists in the make command. Can you > clear this up for me. I'm trying to add the IPDIVERT option to a new build > so I can implement NAT. I cannot seem to figure this out and yes, I am very > new to Linux. A) This is not Linux, it's FreeBSD. Both are open source Unix operating systems, but they have very different infrastructures. B) As far as I can see you're seriously overthinking this. Let's say that your kernel config file is named FRED. You would do this on the command line: make buildkernel KERNCONF=FRED That's it. It would probably be a lot easier for you to put the following in /etc/src.conf: KERNCONF= FRED You should read 'man src.conf' for more information. C) Unlike Linux, you really don't want to build just the kernel, unless you are sticking with the same set of sources that match the system you already have installed. Then, at minimum you'll still have to build the necessary infrastructure in the object tree to be able to build the kernel. Your best bet is to do 'make buildworld' first, then edit src.conf as described above, then do 'make kernel'. good luck, Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ Computers are useless. They can only give you answers. -- Pablo Picasso