From 0dc4f1f96ddbb262fdc53996d9934cae32649124 Mon Sep 17 00:00:00 2001 From: Nicolae Rosia Date: Wed, 7 Jun 2017 21:27:38 +0300 Subject: [PATCH] Fix strip target and bebop upload Signed-off-by: Nicolae Rosia --- src/firmware/posix/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/firmware/posix/CMakeLists.txt b/src/firmware/posix/CMakeLists.txt index 6bff6c1ea1..3287548e0d 100644 --- a/src/firmware/posix/CMakeLists.txt +++ b/src/firmware/posix/CMakeLists.txt @@ -99,8 +99,8 @@ elseif ("${BOARD}" STREQUAL "bebop") px4_add_adb_push_to_bebop(OUT ${UPLOAD_NAME} OS ${OS} BOARD ${BOARD} - FILES ${CMAKE_CURRENT_BINARY_DIR}/${APP_NAME} - DEPENDS ${APP_NAME} + FILES $.stripped + DEPENDS ${APP_NAME}.stripped DEST /usr/bin) elseif ("${BOARD}" STREQUAL "sitl") @@ -141,11 +141,11 @@ install(DIRECTORY ${PROJECT_SOURCE_DIR}/ROMFS DESTINATION ${CMAKE_INSTALL_DATADI install(DIRECTORY ${PROJECT_SOURCE_DIR}/posix-configs DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}) add_custom_target(strip - DEPENDS px4.stripped + DEPENDS "${APP_NAME}.stripped" ) -add_custom_command(OUTPUT px4.stripped - COMMAND ${STRIP_TOOL} -R .comment -R .gnu.version $ +add_custom_command(OUTPUT "${APP_NAME}.stripped" + COMMAND ${STRIP_TOOL} -R .comment -R .gnu.version -o $.stripped $ DEPENDS px4) # vim: set noet ft=cmake fenc=utf-8 ff=unix :