From 75657dc2eb49f326e5a9a0ed9fd33a85aad60cb4 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 4 Oct 2016 17:53:09 +0200 Subject: [PATCH] cmake: add __DF_ defines with comments --- cmake/configs/posix_bebop_default.cmake | 6 +++--- cmake/configs/posix_rpi_common.cmake | 2 +- cmake/nuttx/px4_impl_nuttx.cmake | 2 +- cmake/qurt/px4_impl_qurt.cmake | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cmake/configs/posix_bebop_default.cmake b/cmake/configs/posix_bebop_default.cmake index 206fd9d53a..96113a8456 100644 --- a/cmake/configs/posix_bebop_default.cmake +++ b/cmake/configs/posix_bebop_default.cmake @@ -3,9 +3,9 @@ include(posix/px4_impl_posix) set(CMAKE_TOOLCHAIN_FILE ${PX4_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linux-gnueabihf-raspbian.cmake) add_definitions( - -D__PX4_POSIX_BEBOP - -D__DF_LINUX - -D__DF_BEBOP + -D__PX4_POSIX_BEBOP + -D__DF_LINUX # Define needed DriverFramework + -D__DF_BEBOP # Define needed DriverFramework ) set(CMAKE_PROGRAM_PATH diff --git a/cmake/configs/posix_rpi_common.cmake b/cmake/configs/posix_rpi_common.cmake index dac386836e..b4f20c88c4 100644 --- a/cmake/configs/posix_rpi_common.cmake +++ b/cmake/configs/posix_rpi_common.cmake @@ -7,7 +7,7 @@ include(posix/px4_impl_posix) # or if it is for the RPi. add_definitions( -D__PX4_POSIX_RPI - -D__LINUX + -D__DF_LINUX # For DriverFramework ) diff --git a/cmake/nuttx/px4_impl_nuttx.cmake b/cmake/nuttx/px4_impl_nuttx.cmake index 617d937ca0..562d97f982 100644 --- a/cmake/nuttx/px4_impl_nuttx.cmake +++ b/cmake/nuttx/px4_impl_nuttx.cmake @@ -434,7 +434,7 @@ function(px4_os_add_flags) ) set(added_definitions -D__PX4_NUTTX - -D__DF_NUTTX + -D__DF_NUTTX # Define for DriverFramework ) set(added_c_flags -nodefaultlibs diff --git a/cmake/qurt/px4_impl_qurt.cmake b/cmake/qurt/px4_impl_qurt.cmake index f6bfe01e6a..731ecca53f 100644 --- a/cmake/qurt/px4_impl_qurt.cmake +++ b/cmake/qurt/px4_impl_qurt.cmake @@ -171,7 +171,8 @@ function(px4_os_add_flags) ) set(added_definitions - -D__PX4_QURT + -D__PX4_QURT + -D__DF_QURT # For DriverFramework -D__PX4_POSIX -D__QAIC_SKEL_EXPORT=__EXPORT -include ${PX4_INCLUDE_DIR}visibility.h