NuttX: Allow different board prototype names from main build config

This commit is contained in:
Lorenz Meier
2018-01-01 14:58:00 +01:00
committed by Daniel Agar
parent 1aebc69fed
commit 40702b36ee
+5 -1
View File
@@ -66,10 +66,14 @@ add_custom_command(OUTPUT ${BOARD}.bin
DEPENDS ${FW_NAME}
)
if (NOT FW_PROTOTYPE)
set(FW_PROTOTYPE ${BOARD})
endif()
if (TARGET parameters_xml AND TARGET airframes_xml)
add_custom_command(OUTPUT ${fw_file}
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/px_mkfw.py
--prototype ${PX4_SOURCE_DIR}/Images/${BOARD}.prototype
--prototype ${PX4_SOURCE_DIR}/Images/${FW_PROTOTYPE}.prototype
--git_identity ${PX4_SOURCE_DIR}
--parameter_xml ${PX4_BINARY_DIR}/parameters.xml
--airframe_xml ${PX4_BINARY_DIR}/airframes.xml