Skip to content

Commit

Permalink
DriverFramework/cmake_hexagon: use defines with DF
Browse files Browse the repository at this point in the history
This changes the following defines:

__QURT -> __DF_QURT
__RPI -> __DF_RPI
__EDISON -> __DF_EDISON
__BEBOP -> __DF_BEBOP
__LINUX -> __DF_LINUX
  • Loading branch information
julianoes authored and LorenzMeier committed Oct 18, 2016
1 parent e4398c7 commit f8a1631
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmake/cmake_hexagon
4 changes: 2 additions & 2 deletions cmake/configs/posix_bebop_default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ set(CMAKE_TOOLCHAIN_FILE ${PX4_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linux-

add_definitions(
-D__PX4_POSIX_BEBOP
-D__LINUX
-D__BEBOP
-D__DF_LINUX
-D__DF_BEBOP
)

set(CMAKE_PROGRAM_PATH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ foreach(tool echo grep rm mkdir nm cp touch make unzip)
endforeach()

add_definitions(
-D __RPI
-D __DF_RPI
)

# where is the target environment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ foreach(tool echo grep rm mkdir nm cp touch make unzip)
endforeach()

add_definitions(
-D __RPI
-D __DF_RPI
)

set(LINKER_FLAGS "-Wl,-gc-sections")
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/posix/px4_layer/drv_hrt.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ int px4_clock_settime(clockid_t clk_id, struct timespec *tp)
return 0;
}

#elif defined(__QURT)
#elif defined(__PX4_QURT)

#include "dspal_time.h"

Expand Down

0 comments on commit f8a1631

Please sign in to comment.