move __PX4_LINUX out of px4_impl_os.cmake

This commit is contained in:
SalimTerryLi 2020-03-17 15:40:16 +08:00 committed by Daniel Agar
parent fb1b6a0ab9
commit b70289c536
5 changed files with 14 additions and 16 deletions

View File

@ -1,3 +1,6 @@
add_definitions(
-D__PX4_LINUX
)
px4_add_board(
VENDOR aerotenna

View File

@ -1,3 +1,8 @@
add_definitions(
-D__PX4_LINUX
-DRC_AUTOPILOT_EXT # Enable extensions in Robotics Cape Library, TODO: remove
)
px4_add_board(
VENDOR beaglebone

View File

@ -1,3 +1,6 @@
add_definitions(
-D__PX4_LINUX
)
px4_add_board(
VENDOR emlid

View File

@ -1,3 +1,6 @@
add_definitions(
-D__PX4_LINUX
)
px4_add_board(
VENDOR px4

View File

@ -251,22 +251,6 @@ function(px4_os_add_flags)
add_definitions(-D__PX4_LINUX)
endif()
elseif (("${PX4_BOARD}" MATCHES "navio2") OR ("${PX4_BOARD}" MATCHES "raspberrypi"))
#TODO: move to board support
add_definitions(-D__PX4_LINUX)
elseif ("${PX4_BOARD}" MATCHES "aerotenna_ocpoc")
#TODO: move to board support
add_definitions(-D__PX4_LINUX)
elseif ("${PX4_BOARD}" MATCHES "beaglebone_blue")
#TODO: move to board support
add_definitions(
-D__PX4_LINUX
-DRC_AUTOPILOT_EXT # Enable extensions in Robotics Cape Library, TODO: remove
)
endif()
endfunction()