Skip to contentSkip to conversation

"if CONFIG" versus "depends on CONFIG"

DISCUSSION Robert P. J. Day 2 participants 2 messages Apr 5, 2008 – Apr 6, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

is there any inherent difference between having a config entry
contain

depends on FUBAR

as opposed to having that config option wrapped inside

if FUBAR
...
endif

i ask since the Kconfig file drivers/usb/serial/Kconfig wraps almost the entire file in

if USB_SERIAL
...
endif

and yet still defines the majority of config entries as depending on USB_SERIAL, which seems redundant.

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================

#1 lore raw
Quoted 11 lines · On Sat, 5 Apr 2008 19:59:31 -0400 (EDT) Robert P. J. Day wrote:

is there any inherent difference between having a config entry
contain

depends on FUBAR

as opposed to having that config option wrapped inside

if FUBAR
...
endif

No difference AFAICT.

Quoted 9 lines

i ask since the Kconfig file drivers/usb/serial/Kconfig wraps almost the entire file in

if USB_SERIAL
...
endif

and yet still defines the majority of config entries as depending on USB_SERIAL, which seems redundant.

Yes, that's redundant.

---
~Randy