kconfig: soc and shield cleanup
Always source the Zephyr base soc and shield (board root) Kconfigs directly from Kconfig instead of generated Kconfig files. This has the benefit that it is no longer necessary to generate Kconfig files to source SoC root and shield (board root) when no custom roots are provided. Also this cleans up the doc/CMakeLists.txt and ensures that the doc/CMakeLists.txt is not getting out of sync with the Kconfig.cmake. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
d109805cb2
commit
6be1b2af9b
5 changed files with 31 additions and 27 deletions
12
soc/Kconfig
12
soc/Kconfig
|
@ -3,13 +3,19 @@
|
|||
choice
|
||||
prompt "SoC/CPU/Configuration Selection"
|
||||
|
||||
source "$(KCONFIG_BINARY_DIR)/Kconfig.soc"
|
||||
# This loads custom SoC root Kconfig (only available if custom SoC root are defined)
|
||||
osource "$(KCONFIG_BINARY_DIR)/Kconfig.soc"
|
||||
# This loads Zephyr base SoC root Kconfig
|
||||
osource "soc/$(ARCH)/*/Kconfig.soc"
|
||||
|
||||
endchoice
|
||||
|
||||
menu "Hardware Configuration"
|
||||
source "$(KCONFIG_BINARY_DIR)/Kconfig.soc.arch"
|
||||
|
||||
# This loads custom SoC root Kconfig (only available if custom SoC root are defined)
|
||||
osource "$(KCONFIG_BINARY_DIR)/Kconfig.soc.arch"
|
||||
# This loads Zephyr base SoC Kconfigs
|
||||
osource "soc/$(ARCH)/Kconfig"
|
||||
osource "soc/$(ARCH)/*/Kconfig"
|
||||
|
||||
module = SOC
|
||||
module-str = SOC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue