mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
nuttx/cmake: improve board specific Toolchain.cmake
remove limitation that only custom board can have
board specific Toolchain.cmake
Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
committed by
Xiang Xiao
parent
4a391c4e7f
commit
7f407476f9
+5
-7
@@ -447,13 +447,11 @@ endif()
|
|||||||
# Setup platform options (this needs to happen after project(), once the
|
# Setup platform options (this needs to happen after project(), once the
|
||||||
# toolchain file has been processed)
|
# toolchain file has been processed)
|
||||||
|
|
||||||
# Support custom Toolchain options by custom Boards
|
# Support board Toolchain options
|
||||||
if(CONFIG_ARCH_BOARD_CUSTOM)
|
if(EXISTS ${NUTTX_BOARD_ABS_DIR}/cmake
|
||||||
if(EXISTS ${NUTTX_BOARD_ABS_DIR}/cmake
|
AND EXISTS ${NUTTX_BOARD_ABS_DIR}/cmake/Toolchain.cmake)
|
||||||
AND EXISTS ${NUTTX_BOARD_ABS_DIR}/cmake/Toolchain.cmake)
|
# must be added AFTER ToolchainFile and BEFORE platform
|
||||||
# must be added AFTER ToolchainFile and BEFORE platform
|
include(${NUTTX_BOARD_ABS_DIR}/cmake/Toolchain.cmake)
|
||||||
include(${NUTTX_BOARD_ABS_DIR}/cmake/Toolchain.cmake)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(platform)
|
include(platform)
|
||||||
|
|||||||
Reference in New Issue
Block a user