linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to handle indirect kconfig dependencies
@ 2006-11-17  4:07 Randy Dunlap
  2006-11-17 13:55 ` Stefan Richter
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Randy Dunlap @ 2006-11-17  4:07 UTC (permalink / raw)
  To: lkml; +Cc: zippel, jejb

Hi,

I have a (randconfig) build of 2.6.19-rc5-mm2 with:

CONFIG_DEBUG_READAHEAD=y

which selects DEBUG_FS, so DEBUG_FS=y, but DEBUG_FS depends on
SYSFS, and SYSFS is not set in the randconfig.

This randconfig causes this build error:

fs/built-in.o: In function `debugfs_init':
inode.c:(.init.text+0xdb2): undefined reference to `kernel_subsys'

so the question is:
(How) can kconfig follow the dependency chain and either
- prevent this odd config combination or
- see that 'select DEBUG_FS' implies 'select SYSFS' and then enable SYSFS
?

I don't believe that the right answer is to add
	depends on SYSFS
to DEBUG_READAHEAD.


.config is at http://oss.oracle.com/~rdunlap/configs/config-readahead-debugfs

Thanks,
---
~Randy [or just kill off select]

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

* Re: how to handle indirect kconfig dependencies
  2006-11-17  4:07 how to handle indirect kconfig dependencies Randy Dunlap
@ 2006-11-17 13:55 ` Stefan Richter
  2006-11-20 18:13   ` Adrian Bunk
  2006-11-20 22:09 ` James Bottomley
  2006-11-26  3:46 ` Randy Dunlap
  2 siblings, 1 reply; 6+ messages in thread
From: Stefan Richter @ 2006-11-17 13:55 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: lkml, zippel, jejb

Randy Dunlap wrote:
> I have a (randconfig) build of 2.6.19-rc5-mm2 with:
[...]
> so the question is:
> (How) can kconfig follow the dependency chain and either
> - prevent this odd config combination or
> - see that 'select DEBUG_FS' implies 'select SYSFS' and then enable SYSFS
> ?
> 
> I don't believe that the right answer is to add
> 	depends on SYSFS
> to DEBUG_READAHEAD.

I know this doesn't concludingly answer your question, but: All of the
various shipped tools to generate .config need to be fixed to recognize
"select" to imply a dependency like "depends on" does.

[...]
> ~Randy [or just kill off select]

Or this. ("select" appears to be useful for dialog driven creation of
.config in cases where developers are able to predetermine preferences
of users --- nothing more and nothing less.)
-- 
Stefan Richter
-=====-=-==- =-== =---=
http://arcgraph.de/sr/

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

* Re: how to handle indirect kconfig dependencies
  2006-11-17 13:55 ` Stefan Richter
@ 2006-11-20 18:13   ` Adrian Bunk
  2006-11-20 18:56     ` Stefan Richter
  0 siblings, 1 reply; 6+ messages in thread
From: Adrian Bunk @ 2006-11-20 18:13 UTC (permalink / raw)
  To: Stefan Richter; +Cc: Randy Dunlap, lkml, zippel, jejb

On Fri, Nov 17, 2006 at 02:55:09PM +0100, Stefan Richter wrote:
> Randy Dunlap wrote:
> > I have a (randconfig) build of 2.6.19-rc5-mm2 with:
> [...]
> > so the question is:
> > (How) can kconfig follow the dependency chain and either
> > - prevent this odd config combination or
> > - see that 'select DEBUG_FS' implies 'select SYSFS' and then enable SYSFS
> > ?
> > 
> > I don't believe that the right answer is to add
> > 	depends on SYSFS
> > to DEBUG_READAHEAD.
> 
> I know this doesn't concludingly answer your question, but: All of the
> various shipped tools to generate .config need to be fixed to recognize
> "select" to imply a dependency like "depends on" does.
>...

BTW:
"All of the various shipped tools ... need to be fixed" is a bit 
misleading since one of the features of the 2.6 kconfig is that this 
code is shared by all tools.

> Stefan Richter

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: how to handle indirect kconfig dependencies
  2006-11-20 18:13   ` Adrian Bunk
@ 2006-11-20 18:56     ` Stefan Richter
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Richter @ 2006-11-20 18:56 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Randy Dunlap, lkml, zippel, jejb

Adrian Bunk wrote:
> "All of the various shipped tools ... need to be fixed" is a bit 
> misleading since one of the features of the 2.6 kconfig is that this 
> code is shared by all tools.

All the better, the job will be quickly done then.
-- 
Stefan Richter
-=====-=-==- =-== =-=--
http://arcgraph.de/sr/

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

* Re: how to handle indirect kconfig dependencies
  2006-11-17  4:07 how to handle indirect kconfig dependencies Randy Dunlap
  2006-11-17 13:55 ` Stefan Richter
@ 2006-11-20 22:09 ` James Bottomley
  2006-11-26  3:46 ` Randy Dunlap
  2 siblings, 0 replies; 6+ messages in thread
From: James Bottomley @ 2006-11-20 22:09 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: lkml, zippel

On Thu, 2006-11-16 at 20:07 -0800, Randy Dunlap wrote:
> Hi,
> 
> I have a (randconfig) build of 2.6.19-rc5-mm2 with:
> 
> CONFIG_DEBUG_READAHEAD=y
> 
> which selects DEBUG_FS, so DEBUG_FS=y, but DEBUG_FS depends on
> SYSFS, and SYSFS is not set in the randconfig.
> 
> This randconfig causes this build error:
> 
> fs/built-in.o: In function `debugfs_init':
> inode.c:(.init.text+0xdb2): undefined reference to `kernel_subsys'
> 
> so the question is:
> (How) can kconfig follow the dependency chain and either
> - prevent this odd config combination or
> - see that 'select DEBUG_FS' implies 'select SYSFS' and then enable SYSFS
> ?
> 
> I don't believe that the right answer is to add
> 	depends on SYSFS
> to DEBUG_READAHEAD.
> 
> 
> .config is at http://oss.oracle.com/~rdunlap/configs/config-readahead-debugfs

Actually, no, I don't think this is the right thing to do.  If we can't
persuade selected CONFIG options to give an inherited dependency to the
selectee, then the only other option is to make sure that selectable
config options have no dependencies (i.e. they select everything they
need).

James



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

* Re: how to handle indirect kconfig dependencies
  2006-11-17  4:07 how to handle indirect kconfig dependencies Randy Dunlap
  2006-11-17 13:55 ` Stefan Richter
  2006-11-20 22:09 ` James Bottomley
@ 2006-11-26  3:46 ` Randy Dunlap
  2 siblings, 0 replies; 6+ messages in thread
From: Randy Dunlap @ 2006-11-26  3:46 UTC (permalink / raw)
  To: lkml; +Cc: zippel, jejb

On Thu, 16 Nov 2006 20:07:41 -0800 Randy Dunlap wrote:

> Hi,
> 
> I have a (randconfig) build of 2.6.19-rc5-mm2 with:
> 
> CONFIG_DEBUG_READAHEAD=y
> 
> which selects DEBUG_FS, so DEBUG_FS=y, but DEBUG_FS depends on
> SYSFS, and SYSFS is not set in the randconfig.
> 
> This randconfig causes this build error:
> 
> fs/built-in.o: In function `debugfs_init':
> inode.c:(.init.text+0xdb2): undefined reference to `kernel_subsys'
> 
> so the question is:
> (How) can kconfig follow the dependency chain and either
> - prevent this odd config combination or
> - see that 'select DEBUG_FS' implies 'select SYSFS' and then enable SYSFS
> ?
> 
> I don't believe that the right answer is to add
> 	depends on SYSFS
> to DEBUG_READAHEAD.
> 
> 
> .config is at http://oss.oracle.com/~rdunlap/configs/config-readahead-debugfs

Roman,
Here's another one for your consideration.

USB_APPLEDISPLAY selects BACKLIGHT_LCD_SUPPORT & BACKLIGHT_CLASS_DEVICE;
drivers/backlight/Kconfig depends on SYSFS (but SYSFS=n)

http://oss.oracle.com/~rdunlap/configs/config-backlight-appledisplay

---
~Randy

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

end of thread, other threads:[~2006-11-26  3:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-17  4:07 how to handle indirect kconfig dependencies Randy Dunlap
2006-11-17 13:55 ` Stefan Richter
2006-11-20 18:13   ` Adrian Bunk
2006-11-20 18:56     ` Stefan Richter
2006-11-20 22:09 ` James Bottomley
2006-11-26  3:46 ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).