mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 07:11:35 +08:00
Added build specific sensor initialization.
This commit is contained in:
@@ -30,6 +30,15 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
set(SENSORS_SRCS sensors.cpp)
|
||||
if (${OS} STREQUAL "qurt")
|
||||
list(APPEND SENSORS_SRCS
|
||||
sensors_init_qurt.cpp)
|
||||
elseif(${OS} STREQUAL "nuttx")
|
||||
list(APPEND SENSORS_SRCS
|
||||
sensors_init_nuttx.cpp)
|
||||
endif()
|
||||
|
||||
px4_add_module(
|
||||
MODULE modules__sensors
|
||||
MAIN sensors
|
||||
@@ -39,7 +48,7 @@ px4_add_module(
|
||||
-Wno-type-limits
|
||||
-O3
|
||||
SRCS
|
||||
sensors.cpp
|
||||
${SENSORS_SRCS}
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user