lkml.org 
[lkml]   [2015]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] kconfig: a new command line tool to set configs
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


\
 
 \ /
  Last update: 2015-06-15 15:01    [W:0.038 / U:0.740 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site