mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
CMake: Enable both sub-Kconfig and generated menu Kconfig
Currently, nuttx_generate_kconfig() allows a subdirectory to have either a handwritten sub-Kconfig or a generated menu Kconfig, but not both. This patch enables support for having both a sub-Kconfig and a generated menu Kconfig within the same subdirectory. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
parent
f641298d9e
commit
fd70e5f947
1 changed files with 2 additions and 1 deletions
|
|
@ -158,7 +158,8 @@ function(nuttx_generate_kconfig)
|
|||
if(EXISTS ${NUTTX_APPS_BINDIR}/${MENUCONFIG})
|
||||
file(APPEND ${KCONFIG_OUTPUT_FILE}
|
||||
"source \"${NUTTX_APPS_BINDIR}/${MENUCONFIG}\"\n")
|
||||
elseif(EXISTS ${SUB_KCONFIG})
|
||||
endif()
|
||||
if(EXISTS ${SUB_KCONFIG})
|
||||
file(APPEND ${KCONFIG_OUTPUT_FILE} "source \"${SUB_KCONFIG}\"\n")
|
||||
endif()
|
||||
endforeach()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue