kconfig: drivers: rtc: Remove redundant RTC deps.
These symbols appear within an 'if RTC' (in drivers/rtc/Kconfig). 'if FOO' is just shorthand for adding 'depends on FOO' to each item within the 'if'. Dependencies on menus work similarly. There are no "conditional includes" in Kconfig, so 'if FOO' has no special meaning around a source. Conditional includes wouldn't be possible, because an if condition could include (directly or indirectly) forward references to symbols not defined yet. Tip: When adding a symbol, check its dependencies in the menuconfig ('ninja menuconfig', then / to jump to the symbol). The menuconfig also shows how the file with the symbol got included, so if you see duplicated dependencies, it's easy to hunt down where they come from. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
parent
569e64557f
commit
a51a7817cf
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ source "subsys/logging/Kconfig.template.log_config"
|
|||
config RTC_0_NAME
|
||||
string "Driver instance name"
|
||||
default "RTC_0"
|
||||
depends on RTC && !HAS_DTS
|
||||
depends on !HAS_DTS
|
||||
help
|
||||
RTC driver instance name
|
||||
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
|
||||
menuconfig RTC_MCUX
|
||||
bool "MCUX RTC driver"
|
||||
depends on RTC && HAS_MCUX_RTC
|
||||
depends on HAS_MCUX_RTC
|
||||
help
|
||||
Enable support for mcux rtc driver.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue