Re: tristate and bool not enogh for Kconfig anymore

2007-10-27 Thread Roman Zippel
Hi, On Monday 22 October 2007, Randy Dunlap wrote: > ~ > Another common idiom that we see (and sometimes have problems > with) is this: > > When B (module or subsystem) uses interfaces from A (module or > subsystem), A can be linked

Re: tristate and bool not enogh for Kconfig anymore

2007-10-27 Thread Roman Zippel
Hi, On Monday 22 October 2007, Randy Dunlap wrote: ~ Another common idiom that we see (and sometimes have problems with) is this: When B (module or subsystem) uses interfaces from A (module or subsystem), A can be linked

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Henrik Carlqvist
On Mon, 22 Oct 2007 13:46:43 +0200 > > In that kernel CONFIG_SCSI_QLA_FC is set to y but still it is not > > possible to boot from any of those cards as the driver requires a > > firmware file. > Then an initrd-less boot is impossible for this > device - even the modular approach needs > an

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Alexander E. Patrakov
Christoph Hellwig wrote: On Mon, Oct 22, 2007 at 05:27:51PM +0600, Alexander E. Patrakov wrote: Yes, there is a call to usermodehelper_init() before the initcalls in do_basic_setup(), this does mean that firmware can be loaded by means of the old and obsolete /sbin/hotplug mechanism, but

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Christoph Hellwig
On Mon, Oct 22, 2007 at 05:27:51PM +0600, Alexander E. Patrakov wrote: > Yes, there is a call to usermodehelper_init() before the initcalls in > do_basic_setup(), this does mean that firmware can be loaded by means of > the old and obsolete /sbin/hotplug mechanism, but who has /sbin/hotplug now?

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Helge Hafting
Henrik Carlqvist wrote: I think there is a need for Kconfig to specify that a functionality could be built as a module or not built at all. Some drivers require that firmware is loaded when the driver is initialized. The kernel has functionalities for this by using a userspace program. However,

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Alexander E. Patrakov
Christoph Hellwig wrote: On Mon, Oct 22, 2007 at 04:32:19PM +0600, Alexander E. Patrakov wrote: That's wrong. You can load firmware from the initramfs even if the driver is built in. There is no valid reason why a driver shouldn't be allowed to be built in. Could you please

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Christoph Hellwig
On Mon, Oct 22, 2007 at 04:32:19PM +0600, Alexander E. Patrakov wrote: > >That's wrong. You can load firmware from the initramfs even if the > >driver is built in. There is no valid reason why a driver shouldn't > >be allowed to be built in. > > Could you please explain how this is supposed to

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Alexander E. Patrakov
Christoph Hellwig wrote: On Sat, Oct 20, 2007 at 02:42:38PM +0200, Henrik Carlqvist wrote: I think there is a need for Kconfig to specify that a functionality could be built as a module or not built at all. Some drivers require that firmware is loaded when the driver is initialized. The kernel

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Christoph Hellwig
On Sat, Oct 20, 2007 at 02:42:38PM +0200, Henrik Carlqvist wrote: > I think there is a need for Kconfig to specify that a functionality could > be built as a module or not built at all. > > Some drivers require that firmware is loaded when the driver is > initialized. The kernel has

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Christoph Hellwig
On Sat, Oct 20, 2007 at 02:42:38PM +0200, Henrik Carlqvist wrote: I think there is a need for Kconfig to specify that a functionality could be built as a module or not built at all. Some drivers require that firmware is loaded when the driver is initialized. The kernel has functionalities

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Alexander E. Patrakov
Christoph Hellwig wrote: On Sat, Oct 20, 2007 at 02:42:38PM +0200, Henrik Carlqvist wrote: I think there is a need for Kconfig to specify that a functionality could be built as a module or not built at all. Some drivers require that firmware is loaded when the driver is initialized. The kernel

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Christoph Hellwig
On Mon, Oct 22, 2007 at 04:32:19PM +0600, Alexander E. Patrakov wrote: That's wrong. You can load firmware from the initramfs even if the driver is built in. There is no valid reason why a driver shouldn't be allowed to be built in. Could you please explain how this is supposed to work?

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Alexander E. Patrakov
Christoph Hellwig wrote: On Mon, Oct 22, 2007 at 04:32:19PM +0600, Alexander E. Patrakov wrote: That's wrong. You can load firmware from the initramfs even if the driver is built in. There is no valid reason why a driver shouldn't be allowed to be built in. Could you please

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Helge Hafting
Henrik Carlqvist wrote: I think there is a need for Kconfig to specify that a functionality could be built as a module or not built at all. Some drivers require that firmware is loaded when the driver is initialized. The kernel has functionalities for this by using a userspace program. However,

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Christoph Hellwig
On Mon, Oct 22, 2007 at 05:27:51PM +0600, Alexander E. Patrakov wrote: Yes, there is a call to usermodehelper_init() before the initcalls in do_basic_setup(), this does mean that firmware can be loaded by means of the old and obsolete /sbin/hotplug mechanism, but who has /sbin/hotplug now? I

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Alexander E. Patrakov
Christoph Hellwig wrote: On Mon, Oct 22, 2007 at 05:27:51PM +0600, Alexander E. Patrakov wrote: Yes, there is a call to usermodehelper_init() before the initcalls in do_basic_setup(), this does mean that firmware can be loaded by means of the old and obsolete /sbin/hotplug mechanism, but

Re: tristate and bool not enogh for Kconfig anymore

2007-10-22 Thread Henrik Carlqvist
On Mon, 22 Oct 2007 13:46:43 +0200 In that kernel CONFIG_SCSI_QLA_FC is set to y but still it is not possible to boot from any of those cards as the driver requires a firmware file. Then an initrd-less boot is impossible for this device - even the modular approach needs an initrd to load

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Randy Dunlap
On Sun, 21 Oct 2007 20:14:16 -0700 Randy Dunlap wrote: > On Sun, 21 Oct 2007 17:47:48 -0700 Randy Dunlap wrote: > > > On Sun, 21 Oct 2007 23:03:13 +0200 Sam Ravnborg wrote: > > > > > On Sun, Oct 21, 2007 at 09:45:17AM -0700, Randy Dunlap wrote: > > > > > Is there any other way to specify that a

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Randy Dunlap
On Sun, 21 Oct 2007 17:47:48 -0700 Randy Dunlap wrote: > On Sun, 21 Oct 2007 23:03:13 +0200 Sam Ravnborg wrote: > > > On Sun, Oct 21, 2007 at 09:45:17AM -0700, Randy Dunlap wrote: > > > > Is there any other way to specify that a functionality can only be built > > > > as a module, not built into

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Randy Dunlap
On Sun, 21 Oct 2007 23:03:13 +0200 Sam Ravnborg wrote: > On Sun, Oct 21, 2007 at 09:45:17AM -0700, Randy Dunlap wrote: > > > Is there any other way to specify that a functionality can only be built > > > as a module, not built into the kernel? > > > > config FOO > > depends on BAR && m > >

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Sam Ravnborg
On Sun, Oct 21, 2007 at 09:45:17AM -0700, Randy Dunlap wrote: > > Is there any other way to specify that a functionality can only be built > > as a module, not built into the kernel? > > config FOO > depends on BAR && m > > restricts FOO to module-only. > > > In my firsta attempts to post

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Henrik Carlqvist
> config FOO > depends on BAR && m > > restricts FOO to module-only. Thanks alot! That really did the trick! With the following file: -8<--- config SCSI_QLA_FC tristate "QLogic QLA2XXX Fibre Channel Support" depends on PCI && SCSI && m

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Randy Dunlap
On Sun, 21 Oct 2007 12:24:02 +0200 Henrik Carlqvist wrote: > On Sun, 21 Oct 2007 00:47:38 -0400 > [EMAIL PROTECTED] wrote: > > > On Sat, 20 Oct 2007 21:17:00 +0200, Sam Ravnborg said: > > > I assume > > > depends on MODULES > > > > > > should do the trick. > > > > Umm... I think that will

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Henrik Carlqvist
On Sun, 21 Oct 2007 00:47:38 -0400 [EMAIL PROTECTED] wrote: > On Sat, 20 Oct 2007 21:17:00 +0200, Sam Ravnborg said: > > I assume > > depends on MODULES > > > > should do the trick. > > Umm... I think that will work backwards, and give you CONFIG_FOO=y > if.f the kernel *supports* modules.

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Henrik Carlqvist
On Sun, 21 Oct 2007 00:47:38 -0400 [EMAIL PROTECTED] wrote: On Sat, 20 Oct 2007 21:17:00 +0200, Sam Ravnborg said: I assume depends on MODULES should do the trick. Umm... I think that will work backwards, and give you CONFIG_FOO=y if.f the kernel *supports* modules. What he

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Randy Dunlap
On Sun, 21 Oct 2007 12:24:02 +0200 Henrik Carlqvist wrote: On Sun, 21 Oct 2007 00:47:38 -0400 [EMAIL PROTECTED] wrote: On Sat, 20 Oct 2007 21:17:00 +0200, Sam Ravnborg said: I assume depends on MODULES should do the trick. Umm... I think that will work backwards, and

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Henrik Carlqvist
config FOO depends on BAR m restricts FOO to module-only. Thanks alot! That really did the trick! With the following file: -8--- config SCSI_QLA_FC tristate QLogic QLA2XXX Fibre Channel Support depends on PCI SCSI m select

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Sam Ravnborg
On Sun, Oct 21, 2007 at 09:45:17AM -0700, Randy Dunlap wrote: Is there any other way to specify that a functionality can only be built as a module, not built into the kernel? config FOO depends on BAR m restricts FOO to module-only. In my firsta attempts to post about these

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Randy Dunlap
On Sun, 21 Oct 2007 23:03:13 +0200 Sam Ravnborg wrote: On Sun, Oct 21, 2007 at 09:45:17AM -0700, Randy Dunlap wrote: Is there any other way to specify that a functionality can only be built as a module, not built into the kernel? config FOO depends on BAR m restricts FOO

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Randy Dunlap
On Sun, 21 Oct 2007 17:47:48 -0700 Randy Dunlap wrote: On Sun, 21 Oct 2007 23:03:13 +0200 Sam Ravnborg wrote: On Sun, Oct 21, 2007 at 09:45:17AM -0700, Randy Dunlap wrote: Is there any other way to specify that a functionality can only be built as a module, not built into the kernel?

Re: tristate and bool not enogh for Kconfig anymore

2007-10-21 Thread Randy Dunlap
On Sun, 21 Oct 2007 20:14:16 -0700 Randy Dunlap wrote: On Sun, 21 Oct 2007 17:47:48 -0700 Randy Dunlap wrote: On Sun, 21 Oct 2007 23:03:13 +0200 Sam Ravnborg wrote: On Sun, Oct 21, 2007 at 09:45:17AM -0700, Randy Dunlap wrote: Is there any other way to specify that a functionality

Re: tristate and bool not enogh for Kconfig anymore

2007-10-20 Thread Valdis . Kletnieks
On Sat, 20 Oct 2007 21:17:00 +0200, Sam Ravnborg said: > On Sat, Oct 20, 2007 at 02:42:38PM +0200, Henrik Carlqvist wrote: > > I think there is a need for Kconfig to specify that a functionality could > > be built as a module or not built at all. > > I assume > depends on MODULES > >

Re: tristate and bool not enogh for Kconfig anymore

2007-10-20 Thread Randy Dunlap
On Sat, 20 Oct 2007 21:17:00 +0200 Sam Ravnborg wrote: > On Sat, Oct 20, 2007 at 02:42:38PM +0200, Henrik Carlqvist wrote: > > I think there is a need for Kconfig to specify that a functionality could > > be built as a module or not built at all. > > I assume > depends on MODULES > >

Re: tristate and bool not enogh for Kconfig anymore

2007-10-20 Thread Sam Ravnborg
On Sat, Oct 20, 2007 at 02:42:38PM +0200, Henrik Carlqvist wrote: > I think there is a need for Kconfig to specify that a functionality could > be built as a module or not built at all. I assume depends on MODULES should do the trick. Sam - To unsubscribe from this list: send

Re: tristate and bool not enogh for Kconfig anymore

2007-10-20 Thread Sam Ravnborg
On Sat, Oct 20, 2007 at 02:42:38PM +0200, Henrik Carlqvist wrote: I think there is a need for Kconfig to specify that a functionality could be built as a module or not built at all. I assume depends on MODULES should do the trick. Sam - To unsubscribe from this list: send the

Re: tristate and bool not enogh for Kconfig anymore

2007-10-20 Thread Randy Dunlap
On Sat, 20 Oct 2007 21:17:00 +0200 Sam Ravnborg wrote: On Sat, Oct 20, 2007 at 02:42:38PM +0200, Henrik Carlqvist wrote: I think there is a need for Kconfig to specify that a functionality could be built as a module or not built at all. I assume depends on MODULES should do the

Re: tristate and bool not enogh for Kconfig anymore

2007-10-20 Thread Valdis . Kletnieks
On Sat, 20 Oct 2007 21:17:00 +0200, Sam Ravnborg said: On Sat, Oct 20, 2007 at 02:42:38PM +0200, Henrik Carlqvist wrote: I think there is a need for Kconfig to specify that a functionality could be built as a module or not built at all. I assume depends on MODULES should do the