From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752521AbdEQCnF (ORCPT ); Tue, 16 May 2017 22:43:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:38872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751577AbdEQCnD (ORCPT ); Tue, 16 May 2017 22:43:03 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E745E23998 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Tue, 16 May 2017 22:42:59 -0400 From: Steven Rostedt To: Randy Dunlap Cc: Pavel Machek , Drew DeVault , linux-kernel@vger.kernel.org Subject: Re: Programatically modifying .config Message-ID: <20170516224259.00cc6115@gandalf.local.home> In-Reply-To: References: <20170312203802.GB809@homura> <20170516105708.GA6314@amd> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 May 2017 17:31:17 -0700 Randy Dunlap wrote: > On 05/16/17 03:57, Pavel Machek wrote: > > On Sun 2017-03-12 16:38:02, Drew DeVault wrote: > >> I'm in the research stage of making it so something to the effect of > >> `make setconfig OPTION="CONFIG_E100E=y"` will work, bringing it up here > >> for some discussion first. > >> > >> Digging into the kconfig code, this seems feasible, but complicated. A > >> simple solver of some sort will be necessary to make the Depends expr > >> true, and this tool would also have to hit up the Selects and Implies > >> lines. > >> > >> I expect there will be edge cases that this tool can't cope with, and > >> I'm okay with just letting that be the case. > >> > >> Any thoughts? > > > > You can prepend (or append?) desired config option to .config, then > > run make oldconfig. And yes, script for automatically modifying > > .config would be nice... as would be script to automatically do > > "configuration bisect" (because some bugs are config dependend and > > nasty). > > > tools/testing/ktest/ktest.pl has some support for config bisecting. > (I have not tried it.) > > ktest.pl works great if you have it set up, but can be difficult if you just want to do a bisect without having ktest already established. I created a standalone config-bisect.pl that just does the bisecting. It's still in beta form. I just pushed it up to my branch. You can try it out here: git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest.git Check out the branch called: config-bisect The file is in tools/testing/ktest/config-bisect.pl The comments at the beginning of the file should explain how to use it. Try it out. You can be my first tester :-) I've used it only once, but haven't had time to push it out to Linus. -- Steve