mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 04:43:34 +08:00
boards organization
This commit is contained in:
committed by
David Sidrane
parent
c1f851a600
commit
f692ad04d0
@@ -32,7 +32,7 @@
|
||||
############################################################################
|
||||
|
||||
set(SRCS_PLATFORM)
|
||||
if (${OS} STREQUAL "nuttx")
|
||||
if (${PX4_PLATFORM} STREQUAL "nuttx")
|
||||
if ("${CONFIG_I2C}" STREQUAL "y")
|
||||
list(APPEND SRCS_PLATFORM nuttx/I2C.cpp)
|
||||
endif()
|
||||
@@ -53,7 +53,7 @@ px4_add_library(drivers__device
|
||||
${SRCS_PLATFORM}
|
||||
)
|
||||
|
||||
if (${OS} STREQUAL "nuttx")
|
||||
if (${PX4_PLATFORM} STREQUAL "nuttx")
|
||||
target_link_libraries(drivers__device PRIVATE nuttx_arch)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user