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

parameters also include all module configs when scoping disabled (#10992)

 * fixes parameters on Snapdragon
parent 0c60fff6
No related branches found
No related tags found
No related merge requests found
......@@ -39,24 +39,34 @@ endif()
# get full path for each module
get_property(module_list GLOBAL PROPERTY PX4_MODULE_PATHS)
get_property(module_config_files GLOBAL PROPERTY PX4_MODULE_CONFIG_FILES)
if (DISABLE_PARAMS_MODULE_SCOPING)
if(DISABLE_PARAMS_MODULE_SCOPING)
# search all directories with .c files (potentially containing parameters)
file(GLOB_RECURSE new_list
file(GLOB_RECURSE c_files
${PX4_SOURCE_DIR}/src/*.c
${external_module_paths}
)
foreach(file_path ${new_list})
foreach(file_path ${c_files})
get_filename_component(dir_path ${file_path} PATH)
list(APPEND module_list "${dir_path}")
endforeach()
# search for all module configs as well
file(GLOB_RECURSE yaml_files
${PX4_SOURCE_DIR}/src/*.yaml
)
foreach(file_path ${yaml_files})
list(APPEND module_config_files "${file_path}")
endforeach()
list(REMOVE_DUPLICATES module_config_files)
else()
list(APPEND module_list ${external_module_paths})
endif()
list(REMOVE_DUPLICATES module_list)
get_property(module_config_files GLOBAL PROPERTY PX4_MODULE_CONFIG_FILES)
set(generated_params_dir ${PX4_BINARY_DIR}/generated_params)
set(generated_serial_params_file ${generated_params_dir}/serial_params.c)
file(GLOB jinja_templates ${PX4_SOURCE_DIR}/Tools/serial/*.jinja)
......
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