boards/xtensa: Avoid multiple inclusion of the common Kconfig

Also added a condition (!ARCH_BOARD_CUSTOM) for preventing that
out-of-tree ESP32-based custom boards carry out the in-tree common
directory.
This commit is contained in:
Gustavo Henrique Nihei 2021-04-09 10:39:40 -03:00 committed by Xiang Xiao
parent 8218d5ea76
commit 6c05b2479e
4 changed files with 3 additions and 6 deletions

View File

@ -3116,6 +3116,9 @@ endif
if ARCH_BOARD_RX65N_GRROSE if ARCH_BOARD_RX65N_GRROSE
source "boards/renesas/rx65n/rx65n-grrose/Kconfig" source "boards/renesas/rx65n/rx65n-grrose/Kconfig"
endif endif
if ARCH_CHIP_ESP32 && !ARCH_BOARD_CUSTOM
source "boards/xtensa/esp32/common/Kconfig"
endif
if ARCH_BOARD_ESP32_DEVKITC if ARCH_BOARD_ESP32_DEVKITC
source "boards/xtensa/esp32/esp32-devkitc/Kconfig" source "boards/xtensa/esp32/esp32-devkitc/Kconfig"
endif endif

View File

@ -5,8 +5,6 @@
if ARCH_BOARD_ESP32_DEVKITC if ARCH_BOARD_ESP32_DEVKITC
source boards/xtensa/esp32/common/Kconfig
if PM if PM
config PM_ALARM_SEC config PM_ALARM_SEC

View File

@ -5,6 +5,4 @@
if ARCH_BOARD_ESP32_ETHERNETKIT if ARCH_BOARD_ESP32_ETHERNETKIT
source boards/xtensa/esp32/common/Kconfig
endif # ARCH_BOARD_ESP32_ETHERNETKIT endif # ARCH_BOARD_ESP32_ETHERNETKIT

View File

@ -5,6 +5,4 @@
if ARCH_BOARD_ESP32_WROVERKIT if ARCH_BOARD_ESP32_WROVERKIT
source boards/xtensa/esp32/common/Kconfig
endif # ARCH_BOARD_ESP32_WROVERKIT endif # ARCH_BOARD_ESP32_WROVERKIT