Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
d42fe182
Unverified
Commit
d42fe182
authored
6 years ago
by
Daniel Agar
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
parameters also include all module configs when scoping disabled (#10992)
* fixes parameters on Snapdragon
parent
0c60fff6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/parameters/CMakeLists.txt
+14
-4
14 additions, 4 deletions
src/lib/parameters/CMakeLists.txt
with
14 additions
and
4 deletions
src/lib/parameters/CMakeLists.txt
+
14
−
4
View file @
d42fe182
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment