src/platforms/posix: move to platforms/posix/src/px4/common and src/drivers/driver_framework_wrapper

This commit is contained in:
Beat Küng 2019-08-27 10:27:50 +02:00
parent fa8165a1c3
commit 5d0e72040c
38 changed files with 22 additions and 19 deletions

View File

@ -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)

View File

@ -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()

View File

@ -31,7 +31,7 @@
#
############################################################################
include_directories(../../../../lib/DriverFramework/drivers)
include_directories(../../../lib/DriverFramework/drivers)
px4_add_module(
MODULE platforms__posix__drivers__df_ak8963_wrapper

View File

@ -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

View File

@ -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

View File

@ -31,7 +31,7 @@
#
############################################################################
include_directories(../../../../lib/DriverFramework/drivers)
include_directories(../../../lib/DriverFramework/drivers)
px4_add_module(
MODULE platforms__posix__drivers__df_bmp280_wrapper

View File

@ -31,7 +31,7 @@
#
############################################################################
include_directories(../../../../lib/DriverFramework/drivers)
include_directories(../../../lib/DriverFramework/drivers)
px4_add_module(
MODULE platforms__posix__drivers__df_hmc5883_wrapper

View File

@ -31,7 +31,7 @@
#
############################################################################
include_directories(../../../../lib/DriverFramework/drivers)
include_directories(../../../lib/DriverFramework/drivers)
px4_add_module(
MODULE platforms__posix__drivers__df_isl29501_wrapper

View File

@ -31,7 +31,7 @@
#
############################################################################
include_directories(../../../../lib/DriverFramework/drivers)
include_directories(../../../lib/DriverFramework/drivers)
px4_add_module(
MODULE platforms__posix__drivers__df_lsm9ds1_wrapper

View File

@ -31,7 +31,7 @@
#
############################################################################
include_directories(../../../../lib/DriverFramework/drivers)
include_directories(../../../lib/DriverFramework/drivers)
px4_add_module(
MODULE platforms__posix__drivers__df_ltc2946_wrapper

View File

@ -31,7 +31,7 @@
#
############################################################################
include_directories(../../../../lib/DriverFramework/drivers)
include_directories(../../../lib/DriverFramework/drivers)
px4_add_module(
MODULE platforms__posix__drivers__df_mpu6050_wrapper

View File

@ -31,7 +31,7 @@
#
############################################################################
include_directories(../../../../lib/DriverFramework/drivers)
include_directories(../../../lib/DriverFramework/drivers)
px4_add_module(
MODULE platforms__posix__drivers__df_mpu9250_wrapper

View File

@ -31,7 +31,7 @@
#
############################################################################
include_directories(../../../../lib/DriverFramework/drivers)
include_directories(../../../lib/DriverFramework/drivers)
px4_add_module(
MODULE platforms__posix__drivers__df_ms5607_wrapper

View File

@ -31,7 +31,7 @@
#
############################################################################
include_directories(../../../../lib/DriverFramework/drivers)
include_directories(../../../lib/DriverFramework/drivers)
px4_add_module(
MODULE platforms__posix__drivers__df_ms5611_wrapper

View File

@ -31,7 +31,7 @@
#
############################################################################
include_directories(../../../../lib/DriverFramework/drivers)
include_directories(../../../lib/DriverFramework/drivers)
px4_add_module(
MODULE platforms__posix__drivers__df_trone_wrapper

View File

@ -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()