Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754926AbbFOMz5 (ORCPT ); Mon, 15 Jun 2015 08:55:57 -0400 Received: from cantor2.suse.de ([195.135.220.15]:50446 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754051AbbFOMzt (ORCPT ); Mon, 15 Jun 2015 08:55:49 -0400 Message-ID: <557ECB52.2060402@suse.cz> Date: Mon, 15 Jun 2015 14:55:46 +0200 From: Michal Marek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Dan Carpenter , linux-kbuild@vger.kernel.org CC: linux-kernel@vger.kernel.org Subject: Re: [RFC] kconfig: a new command line tool to set configs References: <20150512103128.GA25706@mwanda> In-Reply-To: <20150512103128.GA25706@mwanda> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 988 Lines: 29 On 2015-05-12 12:31, Dan Carpenter wrote: > This is an ugly hack job I made last night and it barely works. It > does two things: > > 1) Sometimes I want to search for a config so I have to load > menuconfig, then search for the config entry, then exit. With > this script I simply run: > > ./scripts/kconfig/kconfig search COMEDI > > 2) I quite often try to enable something by doing: > > echo CONFIG_FOO=y >> .config > make oldconfig > grep CONFIG_FOO .config > > The grep is to see if the setting worked. Now I can do: > > ./scripts/kconfig/kconfig set CONFIG_FOO=y The second use-case is provided by scripts/config already. It's is a lot simpler shell script, but it's maybe good enough for such task. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/