mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 03:01:36 +08:00
cmake nuttx base .px4 file naming on elf binary
This commit is contained in:
@@ -57,7 +57,9 @@ if (config_romfs_root)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# create px4 file (combined firmware and metadata)
|
# create px4 file (combined firmware and metadata)
|
||||||
set(fw_file ${PX4_BINARY_DIR}/${BOARD}_${LABEL}.px4)
|
set(fw_file ${PX4_BINARY_DIR}/${FW_NAME})
|
||||||
|
string(REPLACE ".elf" ".px4" fw_file ${fw_file})
|
||||||
|
string(REPLACE "nuttx_" "" fw_file ${fw_file})
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${BOARD}.bin
|
add_custom_command(OUTPUT ${BOARD}.bin
|
||||||
COMMAND ${OBJCOPY} -O binary ${PX4_BINARY_DIR}/${FW_NAME} ${BOARD}.bin
|
COMMAND ${OBJCOPY} -O binary ${PX4_BINARY_DIR}/${FW_NAME} ${BOARD}.bin
|
||||||
|
|||||||
Reference in New Issue
Block a user