Browse Source

move __PX4_LINUX out of px4_impl_os.cmake

sbg
SalimTerryLi 5 years ago committed by Daniel Agar
parent
commit
b70289c536
  1. 3
      boards/aerotenna/ocpoc/default.cmake
  2. 5
      boards/beaglebone/blue/default.cmake
  3. 3
      boards/emlid/navio2/default.cmake
  4. 3
      boards/px4/raspberrypi/default.cmake
  5. 16
      platforms/posix/cmake/px4_impl_os.cmake

3
boards/aerotenna/ocpoc/default.cmake

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

5
boards/beaglebone/blue/default.cmake

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

3
boards/emlid/navio2/default.cmake

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

3
boards/px4/raspberrypi/default.cmake

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

16
platforms/posix/cmake/px4_impl_os.cmake

@ -251,22 +251,6 @@ function(px4_os_add_flags)
add_definitions(-D__PX4_LINUX) add_definitions(-D__PX4_LINUX)
endif() 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() endif()
endfunction() endfunction()

Loading…
Cancel
Save