"if CONFIG" versus "depends on CONFIG"
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
========================================================================
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
containdepends on FUBAR
as opposed to having that config option wrapped inside
if FUBAR
...
endif
No difference AFAICT.
Quoted 9 lines
i ask since the
Kconfigfiledrivers/usb/serial/Kconfigwraps almost the entire file inif
USB_SERIAL
...
endifand yet still defines the majority of config entries as depending on
USB_SERIAL, which seems redundant.
Yes, that's redundant.
---
~Randy