Fixes for parameters.xml dependencies

Moved definitions of parameters into *params.c in each module.
This is used by the cmake file as a pattern for dependencies when
generating the parameters.xml file.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-10-10 01:15:22 -07:00
parent 67087c6428
commit c28ae649a3
16 changed files with 286 additions and 204 deletions
+3 -1
View File
@@ -731,7 +731,9 @@ function(px4_generate_parameters_xml)
REQUIRED OUT BOARD
ARGN ${ARGN})
set(path ${CMAKE_SOURCE_DIR}/src)
file(GLOB_RECURSE param_src_files ${path}/*.h* ${path}/*.c*)
file(GLOB_RECURSE param_src_files
${CMAKE_SOURCE_DIR}/src/*params.c
)
add_custom_command(OUTPUT ${OUT}
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/Tools/px_process_params.py
-s ${path} --board CONFIG_ARCH_${BOARD} --xml