From owner-freebsd-current@FreeBSD.ORG Mon May 7 15:46:36 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 809C416A40A for ; Mon, 7 May 2007 15:46:36 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id 407D213C4C8 for ; Mon, 7 May 2007 15:46:36 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by an-out-0708.google.com with SMTP id d23so122905and for ; Mon, 07 May 2007 08:46:35 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=B5+gQ5wCUNafWGXwn964dn0fdLcIjGaStc8h4ftj6cRvw+xEfwBbGRpmAijvDjR9/QQhF26He4irdANXHhi6v6XaLFdaVYUJ6SvNxXD7D5RP9EPbli/V8Vz2B13wdBZPlvZctwY+F3QbEorgD539s4ba7Q7cm7X6W+B4OxMLZHA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ev32icI/rQ/ZYmy0MoCNMpK06O+Yryeyj8S8hhOWj8xiFE8jGuhtK6nlOy7ZUSQYY8M5apSLPAQWxL64iCE6wAUF5gFgRz1sDcLzz+7CqZCQxdk2oXPI7Q/uvmWRFmrXrutSOqgMkJuxhZKC/KYHtwrMGSswnZGAqnNyl4+QRGk= Received: by 10.100.242.11 with SMTP id p11mr4883982anh.1178552789631; Mon, 07 May 2007 08:46:29 -0700 (PDT) Received: by 10.100.9.7 with HTTP; Mon, 7 May 2007 08:46:29 -0700 (PDT) Message-ID: Date: Mon, 7 May 2007 19:46:29 +0400 From: pluknet To: "Wojciech A. Koszek" , freebsd-current@freebsd.org In-Reply-To: <20070506164247.GA77786@FreeBSD.czest.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070506164247.GA77786@FreeBSD.czest.pl> Cc: Subject: Re: 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: Mon, 07 May 2007 15:46:36 -0000 Hello, On 06/05/07, Wojciech A. Koszek wrote: > 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/ While in buildworld (namely in 'make depend' in usr.sbin/config) I get the following error: ===> usr.sbin/config (obj,depend,all,install) /usr/obj/usr/src/tmp/usr/src/usr.sbin/config created for /usr/src/usr.sbin/config yacc -d /usr/src/usr.sbin/config/config.y cp y.tab.c config.c lex -t /usr/src/usr.sbin/config/lang.l > lang.c file2c 'char kernconfstr[] = {' ',0};' < kernconf.tmpl > kernconf.c cannot open kernconf.tmpl: No such file or directory It disappears, if I put manually kernconf.tmpl in generated /usr/obj/usr/src/tmp/usr/src/usr.sbin/config Maybe I forgot something? Thanks. wbr, pluknet