Skip to content
Snippets Groups Projects
Unverified Commit bc9a8e44 authored by Daniel Agar's avatar Daniel Agar Committed by GitHub
Browse files

cmake nuttx base .px4 file naming on elf binary

parent df4ab8b5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment