cmake: move NUTTX_CHIP_ABS_DIR before common src

Some APIs are implemented both in common code and CHIP-specific code,
and the link needs to be based on the implementation in CHIP, so move
NUTTX_CHIP_ABS_DIR before common src.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2023-10-31 17:50:41 +08:00 committed by Mateusz Szafoni
parent 234dd95e0b
commit fbd0b3d1d7
2 changed files with 2 additions and 2 deletions

View File

@ -18,9 +18,9 @@
#
# ##############################################################################
add_subdirectory(common)
add_subdirectory(${ARCH_SUBDIR})
add_subdirectory(${NUTTX_CHIP_ABS_DIR} EXCLUDE_FROM_ALL exclude_chip)
add_subdirectory(common)
# Include directories (before system ones) as PUBLIC so that it can be exposed
# to libboard

View File

@ -18,8 +18,8 @@
#
# ##############################################################################
add_subdirectory(common)
add_subdirectory(${NUTTX_CHIP_ABS_DIR} EXCLUDE_FROM_ALL exclude_chip)
add_subdirectory(common)
# Include directories (before system ones) as PUBLIC so that it can be exposed
# to libboard