All of lore.kernel.org
 help / color / mirror / Atom feed
* what's the fast way to enable a config item?
@ 2015-12-25  1:30 Derek Cheugn
  2016-01-05 10:27 ` Marian Marinov
  0 siblings, 1 reply; 3+ messages in thread
From: Derek Cheugn @ 2015-12-25  1:30 UTC (permalink / raw)
  To: linux-config

hi all,

I have a simple question (have searched but didn't get any good answer
yet):

what's the best way to enable a config item without interactive
interface? if I know the module name, I can find the CONFIG_ name by
this: then in menuconfig to search SENSORS_APPLESMC to enable it;

    $ find -name Makefile |xargs grep -w applesmc
    ./drivers/hwmon/Makefile:obj-$(CONFIG_SENSORS_APPLESMC)	+= applesmc.o

but is there a good way to enable it without interactive interface?

the interactive config interfaces (menuconfig/gconfig/xconfig) are good
for one or two configs, but when I want to enable a list of modules,
this solution is not scalable;

I've tried localmodconfig with LSMOD= env variable, but the
localmodconfig doesn't seem to be working in this way, I feel it's
working by an elimination way, to start from a known to be working
config (maybe from a distro or somewhere)

    $ LSMOD=~/tmp/modules-merged make localmodconfig

while, I want to start with `make defconfig` and enable a list of config
needed; that to accept a list of CONFIG_* names, or a list of modules
name, does anyone if such a config method exists?


thanks,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: what's the fast way to enable a config item?
  2015-12-25  1:30 what's the fast way to enable a config item? Derek Cheugn
@ 2016-01-05 10:27 ` Marian Marinov
  2016-01-05 21:06   ` Derek Cheugn
  0 siblings, 1 reply; 3+ messages in thread
From: Marian Marinov @ 2016-01-05 10:27 UTC (permalink / raw)
  To: Derek Cheugn, linux-config

You simply need to enable it in your .config file and rebuild.

Marian

On 12/25/2015 03:30 AM, Derek Cheugn wrote:
> hi all,
>
> I have a simple question (have searched but didn't get any good answer
> yet):
>
> what's the best way to enable a config item without interactive
> interface? if I know the module name, I can find the CONFIG_ name by
> this: then in menuconfig to search SENSORS_APPLESMC to enable it;
>
>     $ find -name Makefile |xargs grep -w applesmc
>     ./drivers/hwmon/Makefile:obj-$(CONFIG_SENSORS_APPLESMC)	+= applesmc.o
>
> but is there a good way to enable it without interactive interface?
>
> the interactive config interfaces (menuconfig/gconfig/xconfig) are good
> for one or two configs, but when I want to enable a list of modules,
> this solution is not scalable;
>
> I've tried localmodconfig with LSMOD= env variable, but the
> localmodconfig doesn't seem to be working in this way, I feel it's
> working by an elimination way, to start from a known to be working
> config (maybe from a distro or somewhere)
>
>     $ LSMOD=~/tmp/modules-merged make localmodconfig
>
> while, I want to start with `make defconfig` and enable a list of config
> needed; that to accept a list of CONFIG_* names, or a list of modules
> name, does anyone if such a config method exists?
>
>
> thanks,
> --
> To unsubscribe from this list: send the line "unsubscribe linux-config" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: what's the fast way to enable a config item?
  2016-01-05 10:27 ` Marian Marinov
@ 2016-01-05 21:06   ` Derek Cheugn
  0 siblings, 0 replies; 3+ messages in thread
From: Derek Cheugn @ 2016-01-05 21:06 UTC (permalink / raw)
  To: Marian Marinov; +Cc: linux-config

On Tue, Jan 05, 2016 at 12:27:05PM +0200, Marian Marinov wrote:
> You simply need to enable it in your .config file and rebuild.

that simply doesn't always work; for example I started with a minimal defconfig
and want to enable SENSORS_APPLESMC, from nconfig I can search this one
get it depends HWMON && INPUT, if the current .config doesn't have HWMON
and I just write SENSORS_APPLESMC=m there, the following rebuild will deselect
SENSORS_APPLESMC actually;

┌── Search Results ───────────────────────────────────────────────────┐
│                                                                     │
│ Symbol: SENSORS_APPLESMC [=m]                                       │
│ Type  : tristate                                                    │
│ Prompt: Apple SMC (Motion sensor, light sensor, keyboard backlight) │
│   Location:                                                         │
│     -> Device Drivers                                               │
│       -> Hardware Monitoring support (HWMON [=y])                   │
│   Defined at drivers/hwmon/Kconfig:299                              │
│   Depends on: HWMON [=y] && INPUT [=y] && X86 [=y]                  │
│   Selects: NEW_LEDS [=y] && LEDS_CLASS [=y] && INPUT_POLLDEV [=y]   │
│                                                                     │
│                               <OK>                                  │
└─────────────────────────────────────────────────────────────────────┘

I am asking a config method that accepts a list of config items (or module names),
let it make sure all depended items also be selected?


thanks,

> 
> Marian
> 
> On 12/25/2015 03:30 AM, Derek Cheugn wrote:
> > hi all,
> >
> > I have a simple question (have searched but didn't get any good answer
> > yet):
> >
> > what's the best way to enable a config item without interactive
> > interface? if I know the module name, I can find the CONFIG_ name by
> > this: then in menuconfig to search SENSORS_APPLESMC to enable it;
> >
> >     $ find -name Makefile |xargs grep -w applesmc
> >     ./drivers/hwmon/Makefile:obj-$(CONFIG_SENSORS_APPLESMC)	+= applesmc.o
> >
> > but is there a good way to enable it without interactive interface?
> >
> > the interactive config interfaces (menuconfig/gconfig/xconfig) are good
> > for one or two configs, but when I want to enable a list of modules,
> > this solution is not scalable;
> >
> > I've tried localmodconfig with LSMOD= env variable, but the
> > localmodconfig doesn't seem to be working in this way, I feel it's
> > working by an elimination way, to start from a known to be working
> > config (maybe from a distro or somewhere)
> >
> >     $ LSMOD=~/tmp/modules-merged make localmodconfig
> >
> > while, I want to start with `make defconfig` and enable a list of config
> > needed; that to accept a list of CONFIG_* names, or a list of modules
> > name, does anyone if such a config method exists?
--
To unsubscribe from this list: send the line "unsubscribe linux-config" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-05 21:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-25  1:30 what's the fast way to enable a config item? Derek Cheugn
2016-01-05 10:27 ` Marian Marinov
2016-01-05 21:06   ` Derek Cheugn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.