From owner-freebsd-current@FreeBSD.ORG Sun May 6 16:08:11 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DF45716A402 for ; Sun, 6 May 2007 16:08:11 +0000 (UTC) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by mx1.freebsd.org (Postfix) with ESMTP id 6470813C487 for ; Sun, 6 May 2007 16:08:11 +0000 (UTC) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by freebsd.czest.pl (8.13.4/8.12.9) with ESMTP id l46GgmC7077889 for ; Sun, 6 May 2007 16:42:48 GMT (envelope-from dunstan@freebsd.czest.pl) Received: (from dunstan@localhost) by freebsd.czest.pl (8.13.4/8.12.9/Submit) id l46GgmDO077888 for freebsd-current@freebsd.org; Sun, 6 May 2007 16:42:48 GMT (envelope-from dunstan) Date: Sun, 6 May 2007 16:42:47 +0000 From: "Wojciech A. Koszek" To: freebsd-current@freebsd.org Message-ID: <20070506164247.GA77786@FreeBSD.czest.pl> Mail-Followup-To: "Wojciech A. Koszek" , freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-2.0.2 (freebsd.czest.pl [80.48.250.4]); Sun, 06 May 2007 16:42:48 +0000 (UTC) Subject: INCLUDE_CONFIG_FILE patches X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2007 16:08:12 -0000 Hello, We talked about improved INCLUDE_CONFIG_FILE work some time ago. I cleaned it up, and I have prepared a patch for the latest -CURRENT. It's here: http://people.freebsd.org/~wkoszek/patches/kernconf.patch If you have any suggestions, please let me know as I'd really like to see this patch into the tree before RELENG_7. Please note that the changes aren't very serious, but config(8)'s functionality is, so any worries should be stated now. With this patch, after building a kernel with: options INCLUDE_CONFIG_FILE you should be able to obtain it's configuration file with a new config(8) and it's -k option: config -k The output should be ready to be redirected to a file: config -k > NEWKERNEL Now, you should be able to type: config NEWKERNEL And newly created kernel should contain the very same options as the old one. Thanks, -- Wojciech A. Koszek wkoszek@FreeBSD.org http://FreeBSD.czest.pl/dunstan/