cmake: define NUTTX_COMMON_DIR

This commit is contained in:
raiden00pl 2023-07-10 10:57:09 +02:00 committed by Xiang Xiao
parent 409cb61d49
commit 88e01fd335
1 changed files with 5 additions and 0 deletions

View File

@ -115,6 +115,11 @@ else()
LIST_DIRECTORIES true
"${NUTTX_DIR}/boards/*/*/${NUTTX_BOARD}")
file(
GLOB NUTTX_COMMON_DIR
LIST_DIRECTORIES true
"${NUTTX_DIR}/boards/*/*/common")
if(EXISTS ${NUTTX_BOARD_DIR}/configs/${NUTTX_CONFIG}/defconfig)
set(NUTTX_DEFCONFIG ${NUTTX_BOARD_DIR}/configs/${NUTTX_CONFIG}/defconfig)
endif()