mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 04:41:36 +08:00
cmake nuttx .px4 package fix dependency location
This commit is contained in:
@@ -124,9 +124,10 @@ add_custom_command(OUTPUT ${PX4_BINARY_DIR_REL}/${PX4_BOARD}.bin
|
|||||||
# create .px4 with parameter and airframe metadata
|
# create .px4 with parameter and airframe metadata
|
||||||
if (TARGET parameters_xml AND TARGET airframes_xml)
|
if (TARGET parameters_xml AND TARGET airframes_xml)
|
||||||
|
|
||||||
string(REPLACE ".elf" ".px4" fw_package ${FW_NAME})
|
string(REPLACE ".elf" ".px4" fw_package ${PX4_BINARY_DIR}/${FW_NAME})
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${fw_package}
|
add_custom_command(
|
||||||
|
OUTPUT ${fw_package}
|
||||||
COMMAND
|
COMMAND
|
||||||
${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/px_mkfw.py
|
${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/px_mkfw.py
|
||||||
--prototype ${PX4_SOURCE_DIR}/boards/${PX4_BOARD_VENDOR}/${PX4_BOARD_MODEL}/firmware.prototype
|
--prototype ${PX4_SOURCE_DIR}/boards/${PX4_BOARD_VENDOR}/${PX4_BOARD_MODEL}/firmware.prototype
|
||||||
|
|||||||
Reference in New Issue
Block a user