mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
cmake nuttx base .px4 file naming on elf binary
This commit is contained in:
parent
df4ab8b59e
commit
bc9a8e4432
@ -57,7 +57,9 @@ if (config_romfs_root)
|
||||
endif()
|
||||
|
||||
# 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
|
||||
COMMAND ${OBJCOPY} -O binary ${PX4_BINARY_DIR}/${FW_NAME} ${BOARD}.bin
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user