raiden00pl opened a new pull request, #15975: URL: https://github.com/apache/nuttx/pull/15975
## Summary When we use upstream board as a target in out-of-tree board configurations we should not link dummy/Kconfig with a board Kconfig otherwise this file is included twice which cause cmake warnings. For example, when out-of-tree configuration is like this: CONFIG_ARCH_BOARD_CUSTOM=y CONFIG_ARCH_BOARD_CUSTOM_DIR="boards/arm/stm32/b-g431b-esc1/" CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y CONFIG_ARCH_BOARD_CUSTOM_NAME="b-g431b-esc1" this results with many warnings during configuration stage: ``` CMake Warning at cmake/nuttx_kconfig.cmake:171 (message): Kconfig Configuration Error: warning: the default selection BOARD_STM32_BG431BESC1_USE_HSI (defined at boards/arm/stm32/b-g431b-esc1/Kconfig:12, /home/raiden00/git/railab/dawn/build_esc1/boards/dummy/Kconfig:12) of <choice> (defined at boards/arm/stm32/b-g431b-esc1/Kconfig:8) is not contained in the choice warning: the choice symbol BOARD_STM32_BG431BESC1_USE_HSI (defined at boards/arm/stm32/b-g431b-esc1/Kconfig:12, /home/raiden00/git/railab/dawn/build_esc1/boards/dummy/Kconfig:12) is defined with a prompt outside the choice warning: the choice symbol BOARD_STM32_BG431BESC1_USE_HSE (defined at boards/arm/stm32/b-g431b-esc1/Kconfig:15, /home/raiden00/git/railab/dawn/build_esc1/boards/dummy/Kconfig:15) is defined with a prompt outside the choice warning: the choice symbol BOARD_STM32_BG431BESC1_USE_HSI (defined at boards/arm/stm32/b-g431b-esc1/Kconfig:12, /home/raiden00/git/railab/dawn/build_esc1/boards/dummy/Kconfig:12) is defined with a prompt outside the choice warning: the choice symbol BOARD_STM32_BG431BESC1_USE_HSE (defined at boards/arm/stm32/b-g431b-esc1/Kconfig:15, /home/raiden00/git/railab/dawn/build_esc1/boards/dummy/Kconfig:15) is defined with a prompt outside the choice ``` ## Impact fix out-of-tree configurations that use upstream boards ## Testing out-of-tree configs that use boards/b-g431b-esc1 upstream directory with cmake works as expected -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org