forked from Archive/PX4-Autopilot
src/platforms/posix: move to platforms/posix/src/px4/common and src/drivers/driver_framework_wrapper
This commit is contained in:
parent
fa8165a1c3
commit
5d0e72040c
|
@ -264,8 +264,8 @@ function(px4_add_board)
|
|||
foreach(driver ${DF_DRIVERS})
|
||||
list(APPEND config_df_driver_list ${driver})
|
||||
|
||||
if(EXISTS "${PX4_SOURCE_DIR}/src/platforms/posix/drivers/df_${driver}_wrapper")
|
||||
list(APPEND config_module_list platforms/posix/drivers/df_${driver}_wrapper)
|
||||
if(EXISTS "${PX4_SOURCE_DIR}/src/drivers/driver_framework_wrapper/df_${driver}_wrapper")
|
||||
list(APPEND config_module_list drivers/driver_framework_wrapper/df_${driver}_wrapper)
|
||||
endif()
|
||||
endforeach()
|
||||
set(config_df_driver_list ${config_df_driver_list} PARENT_SCOPE)
|
||||
|
|
|
@ -70,3 +70,10 @@ endif()
|
|||
if (EXTRA_DEPENDS)
|
||||
add_dependencies(px4_layer ${EXTRA_DEPENDS})
|
||||
endif()
|
||||
|
||||
|
||||
if (BUILD_TESTING)
|
||||
add_subdirectory(test_stubs)
|
||||
add_subdirectory(gtest_runner)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(../../../../lib/DriverFramework/drivers)
|
||||
include_directories(../../../lib/DriverFramework/drivers)
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__posix__drivers__df_ak8963_wrapper
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(../../../../lib/DriverFramework/drivers)
|
||||
include_directories(../../../lib/DriverFramework/drivers)
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__posix__drivers__df_bebop_bus_wrapper
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(../../../../lib/DriverFramework/drivers)
|
||||
include_directories(../../../lib/DriverFramework/drivers)
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__posix__drivers__df_bebop_rangefinder_wrapper
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(../../../../lib/DriverFramework/drivers)
|
||||
include_directories(../../../lib/DriverFramework/drivers)
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__posix__drivers__df_bmp280_wrapper
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(../../../../lib/DriverFramework/drivers)
|
||||
include_directories(../../../lib/DriverFramework/drivers)
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__posix__drivers__df_hmc5883_wrapper
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(../../../../lib/DriverFramework/drivers)
|
||||
include_directories(../../../lib/DriverFramework/drivers)
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__posix__drivers__df_isl29501_wrapper
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(../../../../lib/DriverFramework/drivers)
|
||||
include_directories(../../../lib/DriverFramework/drivers)
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__posix__drivers__df_lsm9ds1_wrapper
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(../../../../lib/DriverFramework/drivers)
|
||||
include_directories(../../../lib/DriverFramework/drivers)
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__posix__drivers__df_ltc2946_wrapper
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(../../../../lib/DriverFramework/drivers)
|
||||
include_directories(../../../lib/DriverFramework/drivers)
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__posix__drivers__df_mpu6050_wrapper
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(../../../../lib/DriverFramework/drivers)
|
||||
include_directories(../../../lib/DriverFramework/drivers)
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__posix__drivers__df_mpu9250_wrapper
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(../../../../lib/DriverFramework/drivers)
|
||||
include_directories(../../../lib/DriverFramework/drivers)
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__posix__drivers__df_ms5607_wrapper
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(../../../../lib/DriverFramework/drivers)
|
||||
include_directories(../../../lib/DriverFramework/drivers)
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__posix__drivers__df_ms5611_wrapper
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(../../../../lib/DriverFramework/drivers)
|
||||
include_directories(../../../lib/DriverFramework/drivers)
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__posix__drivers__df_trone_wrapper
|
|
@ -33,7 +33,3 @@
|
|||
|
||||
add_subdirectory(common)
|
||||
|
||||
if (${PX4_PLATFORM} STREQUAL "posix" AND BUILD_TESTING)
|
||||
add_subdirectory(posix/test_stubs)
|
||||
add_subdirectory(posix/gtest_runner)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue