mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 04:01:37 +08:00
Port PX4 to BeagleBone Blue Board using library librobotcontrol instead of a submodule
This commit is contained in:
@@ -283,6 +283,20 @@ function(px4_os_add_flags)
|
||||
elseif ("${BOARD}" STREQUAL "bebop")
|
||||
# TODO: Wmissing-field-initializers ignored on older toolchain, can be removed eventually
|
||||
list(APPEND added_cxx_flags -Wno-missing-field-initializers)
|
||||
|
||||
elseif ("${BOARD}" STREQUAL "bbblue")
|
||||
set(BBBLUE_COMPILE_FLAGS -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=hard -mtune=cortex-a8)
|
||||
list(APPEND added_c_flags ${BBBLUE_COMPILE_FLAGS})
|
||||
list(APPEND added_cxx_flags ${BBBLUE_COMPILE_FLAGS})
|
||||
|
||||
# TODO: Wmissing-field-initializers ignored on older toolchain, can be removed eventually
|
||||
# On cross compile host system and native build system:
|
||||
# a) install robotcontrol.h and rc/* into /usr/local/include
|
||||
# b) install pre-built native (ARM) version of librobotcontrol.* into /usr/local/lib
|
||||
list(APPEND added_cxx_flags -I/usr/local/include -Wno-missing-field-initializers)
|
||||
list(APPEND added_c_flags -I/usr/local/include)
|
||||
|
||||
list(APPEND added_exe_linker_flags -L/usr/local/lib)
|
||||
endif()
|
||||
|
||||
# output
|
||||
|
||||
Reference in New Issue
Block a user