New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reduce required modules #8139
reduce required modules #8139
Conversation
61222dd
to
fcb6482
Compare
I noticed you removed the include_directories from the module CMakeLists.txt files. Are these include directories now somehow auto populated by dependencies? |
fcb6482
to
05a2b50
Compare
It's poorly named, but if you use target_link_libraries it adds the dependency, links, and can inherit things like include directories, compile options, etc if they're defined PUBLIC. Using that as much as possible could really help enforce modularity. |
) | ||
# vim: set noet ft=cmake fenc=utf-8 ff=unix : | ||
version | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs newline
) | ||
# vim: set noet ft=cmake fenc=utf-8 ff=unix : | ||
mixer | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs newline
df_driver_framework | ||
df_ak8963 | ||
) | ||
# vim: set noet ft=cmake fenc=utf-8 ff=unix : | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs newline
@@ -34,19 +34,19 @@ then | |||
echo "Continuing build with manually overridden submodule.." | |||
elif [ "$user_cmd" == "u" ] | |||
then | |||
git submodule sync --recursive | |||
git submodule update --init --recursive | |||
git submodule sync --recursive -- $1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does the "--" before $1 do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For specifying a single submodule.
px4_add_library(drivers_device ${SRCS}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need newlines at the end of a cmake file?
) | ||
# vim: set noet ft=cmake fenc=utf-8 ff=unix : | ||
add_dependencies(controllib prebuild_targets) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs newline
# vim: set noet ft=cmake fenc=utf-8 ff=unix : | ||
|
||
add_library(rotation EXCLUDE_FROM_ALL rotation.cpp) | ||
add_dependencies(rotation prebuild_targets) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And so do several other files below
SRCS | ||
GroundRoverPositionControl.cpp | ||
DEPENDS | ||
platforms__common | ||
external_lgpl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to aggregate the licenses of the files used in the final build so the user can comply with all the license requirements. In this case BSD + LGPL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes if it comes to that, but we should push to get rid of these 600 lines of LGPL code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Paul has done a clean version that is almost ready to go.
@@ -34,7 +34,6 @@ | |||
px4_add_module( | |||
MODULE modules__logger | |||
MAIN logger | |||
PRIORITY "SCHED_PRIORITY_MAX-30" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Task prio no longer needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That priority only applies to the main.
flashparams/flashparams.c | ||
flashparams/flashfs.c | ||
) | ||
elseif ("${CONFIG_SHMEM}" STREQUAL "1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure CONFIG_SHMEM check isn't needed? I think its used for muorb synchronization?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CONFIG_SHMEM is used within param, I'm not sure why it was left behind here.
05a2b50
to
5697a13
Compare
Continued in #8378 |
No description provided.