From owner-freebsd-questions@FreeBSD.ORG Sun Feb 20 03:25:51 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B859E106564A for ; Sun, 20 Feb 2011 03:25:51 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 774E08FC16 for ; Sun, 20 Feb 2011 03:25:51 +0000 (UTC) Received: from r55.edvax.de (port-92-195-143-131.dynamic.qsc.de [92.195.143.131]) by mx01.qsc.de (Postfix) with ESMTP id 797233CAB9; Sun, 20 Feb 2011 04:25:50 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p1K3PnBl002670; Sun, 20 Feb 2011 04:25:49 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 20 Feb 2011 04:25:49 +0100 From: Polytropon To: Rem P Roberti Message-Id: <20110220042549.3922a8f9.freebsd@edvax.de> In-Reply-To: <4D5AE66E.1070603@comcast.net> References: <201102151225.p1FCPQoW094547@fire.js.berklix.net> <4D5AE66E.1070603@comcast.net> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Stuck X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2011 03:25:51 -0000 On Tue, 15 Feb 2011 12:47:42 -0800, Rem P Roberti wrote: > > > NOTE: Slightly OT, but figured it was worth the post. > > > > As a side-note, the config-file will be "cleaned up" before being embedded into the kernel. Meaning "config -x `sysctl -n kern.bootfile`" will rarely ever match the config that was used to generate the kernel in the first place. > > > > Specifically, comments are removed, and if you've nested configs using the "include" statement, redundant and/or conflicting directives will be consolidated. > > > > If you instead wish to embed the kernel config AS-IS, comments and structure remaining in-tact, you should instead: > > > > cd /sys/ARCH/conf > > config -C -g CONFIG > > > > NOTE: `/sys' ought to be a symbolic link to `/usr/src/sys' > > NOTE: ARCH is to be replaced with something like "i386", "amd64", etc. > > NOTE: CONFIG is to be replaced with something like "GENERIC", "PAE", "MYCUSTOMKERNELCONFIG", etc. > > > > Then one simply does the following to compile the kernel: > > > > cd ../../compile/CONFIG > > make depend > > make > > > > BUT... then again not everybody: > > a. compiles their own custom kernels > > b. uses a custom config > > c. needs to be able to extract the config verbatim from the compiled kernel > > > > YNMV (Your Needs May Vary). > > -- > > Devin > > > > > > Not off topic at all, and much appreciated. A lot of what has been > offered as a result of my OP is a bit over my head at this stage of the > game, but much isn't. I'm gaining on it! The procedure described above reminds me to how kernels have been built in the FreeBSD 4 era. Interesting to see that it is -a- still supported and -b- serves a specific purpose that may be intended sometimes. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...