param gen reorganize and fix DISABLE_PARAMS_MODULE_SCOPING

This commit is contained in:
Daniel Agar
2017-06-12 12:18:53 -04:00
parent 9b5de23553
commit f26cd01d16
51 changed files with 184 additions and 259 deletions
+4 -2
View File
@@ -81,17 +81,19 @@ function(px4_nuttx_add_firmware)
ARGN ${ARGN})
set(extra_args)
set(dependencies)
if (PARAM_XML)
list(APPEND extra_args
--parameter_xml ${PARAM_XML}
)
list(APPEND dependencies parameters_xml)
endif()
if (AIRFRAMES_XML)
list(APPEND extra_args
--airframe_xml ${AIRFRAMES_XML}
)
list(APPEND dependencies airframes_xml)
endif()
add_custom_command(OUTPUT ${OUT} ${EXE}.bin
@@ -101,7 +103,7 @@ function(px4_nuttx_add_firmware)
--git_identity ${PX4_SOURCE_DIR}
${extra_args}
--image ${EXE}.bin > ${OUT}
DEPENDS ${EXE}
DEPENDS ${EXE} ${dependencies}
)
add_custom_target(build_firmware_${BOARD} ALL DEPENDS ${OUT})
endfunction()