From 8845070d89644e61de8810f4aad6d17dda5555bc Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Fri, 20 May 2016 15:11:33 -0700 Subject: [PATCH] Revered changes by Daniel Agar that broke posix eagle build The following cflags must be set for the eagle builds that compile the generated IDL stubs: -Wno-missing-prototypes -Wno-missing-declarations Signed-off-by: Mark Charlebois --- src/firmware/posix/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/firmware/posix/CMakeLists.txt b/src/firmware/posix/CMakeLists.txt index 8d0232a017..7a28919ed8 100644 --- a/src/firmware/posix/CMakeLists.txt +++ b/src/firmware/posix/CMakeLists.txt @@ -11,7 +11,7 @@ if ("${BOARD}" STREQUAL "eagle" OR ("${BOARD}" STREQUAL "excelsior")) FASTRPC_STUB_GEN(../qurt/px4muorb.idl) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-missing-prototypes -Wno-missing-declarations") LINUX_APP( APP_NAME mainapp IDL_NAME px4muorb @@ -36,14 +36,14 @@ if ("${BOARD}" STREQUAL "eagle" OR ("${BOARD}" STREQUAL "excelsior")) ${CMAKE_SOURCE_DIR}/posix-configs/eagle/flight/mainapp.config DEPENDS mainapp DEST /home/linaro) - + elseif ("${BOARD}" STREQUAL "rpi2") add_executable(mainapp ${CMAKE_SOURCE_DIR}/src/platforms/posix/main.cpp apps.h ) - + target_link_libraries(mainapp -Wl,--start-group ${module_libraries}