From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from <gentoo-kernel+bounces-239-garchives=archives.gentoo.org@gentoo.org>) id 1HzJ6Z-0005RP-9e for garchives@archives.gentoo.org; Fri, 15 Jun 2007 21:13:15 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l5FLCRuO001224; Fri, 15 Jun 2007 21:12:27 GMT Received: from pentafluge.infradead.org (pentafluge.infradead.org [213.146.154.40]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l5FLCQHS001219 for <gentoo-kernel@lists.gentoo.org>; Fri, 15 Jun 2007 21:12:26 GMT Received: from dsl093-040-174.pdx1.dsl.speakeasy.net ([66.93.40.174] helo=localhost) by pentafluge.infradead.org with esmtpsa (Exim 4.63 #1 (Red Hat Linux)) id 1HzJ5l-0001ze-7K for gentoo-kernel@lists.gentoo.org; Fri, 15 Jun 2007 22:12:25 +0100 Date: Fri, 15 Jun 2007 14:05:41 -0700 From: Greg KH <gregkh@gentoo.org> To: gentoo-kernel@lists.gentoo.org Subject: Re: [gentoo-kernel] How works Genkernel's non-interactive 'make oldconfig' Message-ID: <20070615210541.GA7337@kroah.com> References: <200706151535.31768.arnestaecker@web.de> <20070615193530.GA11267@uranus.ravnborg.org> Precedence: bulk List-Post: <mailto:gentoo-kernel@lists.gentoo.org> List-Help: <mailto:gentoo-kernel+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-kernel+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-kernel+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-kernel.gentoo.org> X-BeenThere: gentoo-kernel@gentoo.org Reply-to: gentoo-kernel@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070615193530.GA11267@uranus.ravnborg.org> User-Agent: Mutt/1.5.15 (2007-04-06) X-Archives-Salt: 2c14fea0-d728-4974-b2e0-9634dfd3fd7a X-Archives-Hash: e5d180c6d61f293c2d827855c4781613 On Fri, Jun 15, 2007 at 09:35:30PM +0200, Sam Ravnborg wrote: > On Fri, Jun 15, 2007 at 03:35:31PM +0200, Arne St?cker wrote: > > Hi, > > I don't know if this the right mailing list, but I give it a try. > > > > I'm writing a software to manage the upgrading, rebuild, uninstallation of the > > linux kernel. > > > > Now, what I need is a non-interactive 'make oldconfig' like genkernel does it. > > I looked at the code, but couldn't find the right line. Can anyone tell me at > > which files and lines I have to look for this feature. Thanks. > > try: > echo y | make oldconfig That's not really safe. You want to use the defaults, which is what I think 'silentoldconfig' does. You really don't want to enable an option like "Add self-destruct mode" to the kernel if it is newly present :) thanks, greg k-h -- gentoo-kernel@gentoo.org mailing list