Add Parrot Bebop as build target (#4698)

* Add parrot bebop build structure

* Add upload functionality to bebop build

* Add modules and commands to bebop build
This commit is contained in:
Michael Schäuble
2016-05-31 13:04:22 +02:00
committed by Lorenz Meier
parent 292b35d06d
commit d9422e0296
8 changed files with 212 additions and 2 deletions
+11 -2
View File
@@ -166,6 +166,15 @@ function(px4_os_add_flags)
mavlink/include/mavlink
)
# Use the pthread instead of lpthread if the firmware is build for the parrot
# bebop. This resolves some linker errors in DriverFramework, when building a
# static target.
if ("${BOARD}" STREQUAL "bebop")
set(PX4_PTHREAD_BUILD "-pthread")
else()
set(PX4_PTHREAD_BUILD "-lpthread")
endif()
if(UNIX AND APPLE)
set(added_definitions
-D__PX4_POSIX
@@ -177,7 +186,7 @@ if(UNIX AND APPLE)
)
set(added_exe_linker_flags
-lpthread
${PX4_PTHREAD_BUILD}
)
else()
@@ -192,7 +201,7 @@ else()
)
set(added_exe_linker_flags
-lpthread -lrt
${PX4_PTHREAD_BUILD} -lrt
)
endif()