From owner-cvs-all@FreeBSD.ORG Sat May 12 19:38:19 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5584016A404; Sat, 12 May 2007 19:38:19 +0000 (UTC) (envelope-from wkoszek@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 4774D13C455; Sat, 12 May 2007 19:38:19 +0000 (UTC) (envelope-from wkoszek@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l4CJcJZO021865; Sat, 12 May 2007 19:38:19 GMT (envelope-from wkoszek@repoman.freebsd.org) Received: (from wkoszek@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l4CJcJBj021864; Sat, 12 May 2007 19:38:19 GMT (envelope-from wkoszek) Message-Id: <200705121938.l4CJcJBj021864@repoman.freebsd.org> From: "Wojciech A. Koszek" Date: Sat, 12 May 2007 19:38:19 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern kern_mib.c src/usr.sbin/config Makefile config.8 config.h config.y kernconf.tmpl lang.l main.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 May 2007 19:38:19 -0000 wkoszek 2007-05-12 19:38:18 UTC FreeBSD src repository Modified files: sys/kern kern_mib.c usr.sbin/config Makefile config.8 config.h config.y lang.l main.c Added files: usr.sbin/config kernconf.tmpl Log: Improve INCLUDE_CONFIG_FILE support. This change will let us to have full configuration of a running kernel available in sysctl: sysctl -b kern.conftxt The same configuration is also contained within the kernel image. It can be obtained with: config -x Current functionality lets you to quickly recover kernel configuration, by simply redirecting output from commands presented above and starting kernel build procedure. "include" statements are also honored, which means options and devices from included files are also included. Please note that comments from configuration files are not preserved by default. In order to preserve them, you can use -C flag for config(8). This will bring configuration file and included files literally; however, redirection to a file no longer works directly. This commit was followed by discussion, that took place on freebsd-current@. For more details, look here: http://lists.freebsd.org/pipermail/freebsd-current/2007-March/069994.html http://lists.freebsd.org/pipermail/freebsd-current/2007-May/071844.html Development of this patch took place in Perforce, hierarchy: //depot/user/wkoszek/wkoszek_kconftxt/ Support from: freebsd-current@ (links above) Reviewed by: imp@ Approved by: imp@ Revision Changes Path 1.78 +33 -0 src/sys/kern/kern_mib.c 1.36 +7 -2 src/usr.sbin/config/Makefile 1.46 +29 -13 src/usr.sbin/config/config.8 1.61 +25 -2 src/usr.sbin/config/config.h 1.77 +82 -27 src/usr.sbin/config/config.y 1.1 +17 -0 src/usr.sbin/config/kernconf.tmpl (new) 1.45 +26 -0 src/usr.sbin/config/lang.l 1.74 +203 -46 src/usr.sbin/config/main.c