Set flags for building the proper DriverFramework target

The DF_TARGET cmake variable needs to be set to (linux, darwin, qurt, nuttx)
The define __DF_LINUX or __DF_QURT needs to be set.
The __DF_DARWIN target is untested

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-11-16 23:24:59 -08:00
parent 62eba58fb4
commit 1bcb93180b
5 changed files with 19 additions and 2 deletions

View File

@@ -429,6 +429,7 @@ function(px4_os_add_flags)
)
set(added_definitions
-D__PX4_NUTTX
-D__DF_NUTTX
)
set(added_c_flags
-nodefaultlibs