-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
scripts: edtlib: Automatically include base.yaml in all bindings #19846
Conversation
4516195
to
a6e34ae
Compare
1619099
to
af2b2fb
Compare
All checks are passing now. Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
@ulfalizer, I understand the interest but I'm afraid this could confuse people. One advantage of current inclusion of base.yaml is that it makes script logic vs bindings quite transparent to users. |
1703632
to
ecf64d9
Compare
Yeah, it needs to be well-documented and discoverable at least. I've now documented it in for fname in fnames:
if fname == "base.yaml":
self._warn(
"'include: base.yaml' in {} is deprecated and redundant. "
"base.yaml is now automatically included in all bindings, "
"and can be found at scripts/dts/base.yaml."
.format(binding_path))
continue I wonder if it could be mentioned elsewhere too.
I wonder if the added documentation and warning might make it easy enough to figure out. Feels a bit spammy to add 2-3 lines to every binding, especially once you already know it. |
ecf64d9
to
64096e6
Compare
64096e6
to
2a86118
Compare
2a86118
to
303622d
Compare
One nice thing about it besides shortening bindings is that it forces consistency. If someone tries to add a property to a binding that clashes with something in Some other systems (e.g. It makes things slightly less transparent, but I think people will pick up on it pretty quickly. |
Should also speed up binding parsing a bit btw, because |
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.
LGTM, thanks.
Explain how 'include:' works in some more detail and mention base.yaml, along with an example of how it can be used. This was adapted from zephyrproject-rtos#19846. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
Explain how 'include:' works in some more detail and mention base.yaml, along with an example of how it can be used. This was adapted from #19846. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
@galak, should we keep this one ? |
Main commits:
Piggybacked nit: