mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
cmake: NUTTX_COMMON_DIR must be set after .config definitions are included
otherwise NUTTX_COMMON_DIR is empty if CONFIG_ARCH_BOARD_COMMON is set from menuconfig Co-authored-by: hartmannathan <59230071+hartmannathan@users.noreply.github.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
7bcbaa5dc7
commit
267d039295
+9
-9
@@ -262,15 +262,6 @@ else()
|
|||||||
file(TOUCH ${CMAKE_BINARY_DIR}/drivers/platform/Kconfig)
|
file(TOUCH ${CMAKE_BINARY_DIR}/drivers/platform/Kconfig)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# board common directory
|
|
||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
|
||||||
file(
|
|
||||||
GLOB NUTTX_COMMON_DIR
|
|
||||||
LIST_DIRECTORIES true
|
|
||||||
"${NUTTX_DIR}/boards/${CONFIG_ARCH}/${CONFIG_ARCH_CHIP}/common")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Custom chip ###################################################
|
# Custom chip ###################################################
|
||||||
|
|
||||||
if(CONFIG_ARCH_CHIP_CUSTOM)
|
if(CONFIG_ARCH_CHIP_CUSTOM)
|
||||||
@@ -388,6 +379,15 @@ include(FetchContent)
|
|||||||
|
|
||||||
set(FETCHCONTENT_QUIET OFF)
|
set(FETCHCONTENT_QUIET OFF)
|
||||||
|
|
||||||
|
# Board common directory #####################################################
|
||||||
|
|
||||||
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
|
file(
|
||||||
|
GLOB NUTTX_COMMON_DIR
|
||||||
|
LIST_DIRECTORIES true
|
||||||
|
"${NUTTX_DIR}/boards/${CONFIG_ARCH}/${CONFIG_ARCH_CHIP}/common")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Setup toolchain ############################################################
|
# Setup toolchain ############################################################
|
||||||
|
|
||||||
# This needs to happen before project() when binaries are searched for
|
# This needs to happen before project() when binaries are searched for
|
||||||
|
|||||||
Reference in New Issue
Block a user