mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-30 19:14:08 +08:00
Fix strip target and bebop upload
Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com>
This commit is contained in:
parent
5e57594fba
commit
0dc4f1f96d
@ -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 $<TARGET_FILE:px4>.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 $<TARGET_FILE:px4>
|
||||
add_custom_command(OUTPUT "${APP_NAME}.stripped"
|
||||
COMMAND ${STRIP_TOOL} -R .comment -R .gnu.version -o $<TARGET_FILE:px4>.stripped $<TARGET_FILE:px4>
|
||||
DEPENDS px4)
|
||||
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user