mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 12:33:34 +08:00
cmake fix posix upload targets
This commit is contained in:
committed by
David Sidrane
parent
87a1b15509
commit
123a0b584a
@@ -40,7 +40,7 @@ if ("${BOARD}" STREQUAL "eagle" OR ("${BOARD}" STREQUAL "excelsior"))
|
||||
px4_add_adb_push(OUT ${UPLOAD_NAME}
|
||||
OS ${OS}
|
||||
BOARD ${BOARD}
|
||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/${APP_NAME}
|
||||
FILES $<TARGET_FILE:${APP_NAME}>
|
||||
${PX4_SOURCE_DIR}/posix-configs/eagle/flight/mainapp.config
|
||||
DEPENDS ${APP_NAME}
|
||||
DEST /home/linaro)
|
||||
@@ -65,7 +65,7 @@ elseif ("${BOARD}" STREQUAL "rpi")
|
||||
px4_add_scp_push(OUT ${UPLOAD_NAME}
|
||||
OS ${OS}
|
||||
BOARD ${BOARD}
|
||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/${APP_NAME}
|
||||
FILES $<TARGET_FILE:${APP_NAME}>
|
||||
${RPI_CONFIG_FILES}
|
||||
${PX4_SOURCE_DIR}/ROMFS
|
||||
DEPENDS ${APP_NAME}
|
||||
@@ -101,7 +101,7 @@ elseif ("${BOARD}" STREQUAL "bebop")
|
||||
OS ${OS}
|
||||
BOARD ${BOARD}
|
||||
FILES $<TARGET_FILE:px4>.stripped
|
||||
DEPENDS ${APP_NAME}.stripped
|
||||
DEPENDS px4
|
||||
DEST /usr/bin)
|
||||
|
||||
elseif ("${BOARD}" STREQUAL "sitl")
|
||||
@@ -141,9 +141,8 @@ install(TARGETS px4 DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ROMFS DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME})
|
||||
install(DIRECTORY ${PROJECT_SOURCE_DIR}/posix-configs DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME})
|
||||
|
||||
add_custom_target(strip DEPENDS "${APP_NAME}.stripped")
|
||||
|
||||
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
|
||||
)
|
||||
add_custom_target(strip DEPENDS "${APP_NAME}.stripped")
|
||||
|
||||
@@ -56,6 +56,7 @@ add_custom_command(OUTPUT ${px4_git_ver_header}
|
||||
DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/px_update_git_header.py
|
||||
${git_dir_path}/HEAD
|
||||
${git_dir_path}/index
|
||||
WORKING_DIRECTORY ${PX4_SOURCE_DIR}
|
||||
COMMENT "Generating git hash header"
|
||||
)
|
||||
|
||||
@@ -39,7 +39,7 @@ px4_add_module(
|
||||
-Wno-deprecated-declarations
|
||||
-O3
|
||||
SRCS
|
||||
esc_cfg.cpp
|
||||
esc_cfg.cpp
|
||||
|
||||
DEPENDS
|
||||
platforms__common
|
||||
|
||||
@@ -33,17 +33,15 @@
|
||||
|
||||
px4_add_module(
|
||||
MODULE modules__uavcanesc__commands__stat
|
||||
MAIN cfg
|
||||
MAIN stat
|
||||
STACK_MAIN 1024
|
||||
COMPILE_FLAGS
|
||||
-Wno-deprecated-declarations
|
||||
-O3
|
||||
SRCS
|
||||
esc_stat.cpp
|
||||
|
||||
esc_stat.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
|
||||
)
|
||||
|
||||
## vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
Reference in New Issue
Block a user