-
Notifications
You must be signed in to change notification settings - Fork 8.2k
DTC warning suppression #20828
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
DTC warning suppression #20828
Conversation
|
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. |
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.
Wonder if there's some simpler way to fix it on the devicetree side, e.g. by leaving out the unit address, or refactoring in some other way.
|
What's wrong with the board.cmake hook? Is it placed too early / too late ? |
It's too late, my first goto was board.cmake but device tree is ready compiled before EXTRA_DTC_FLAGS is set. |
a9a0f74 to
078c047
Compare
|
@SebastianBoe @ulfalizer made the changes required, i still need to document pre_dt_board.cmake |
|
@agansari : This feedback has not been addressed:
|
078c047 to
6dca22b
Compare
|
@SebastianBoe @ulfalizer updated documentation and CLI based parameter passing |
6dca22b to
f507429
Compare
dbkinder
left a comment
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.
couple of grammar typos
f507429 to
01b4d33
Compare
dbkinder
left a comment
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.
+1 for doc changes, thanks!
01b4d33 to
676dfe4
Compare
galak
left a comment
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.
Can you look and see if we can move setting EXTRA_DTC_FLAGS in the SoC Cmake instead.
Also can you fixup the pylint error.
4164de5 to
38069e5
Compare
|
@galak fixed pylint, please review again |
This commit allows boards to have custom cmake parameters that are loaded before device tree is processed. Signed-off-by: Andrei Gansari <[email protected]>
LPC SoCs share the same register for all GPIO poarts. This leads us to a device tree configuration that missmatches GPIO register address and GPIO port identifier. Signed-off-by: Andrei Gansari <[email protected]>
Pass arguments as command line from cmake to python. Extra DTC flags are used later on to check errors in python. Signed-off-by: Andrei Gansari <[email protected]>
Single-bus warning in python parsing of device tree is suppressed if this is also suppresed in the device tree compiler. Signed-off-by: Andrei Gansari <[email protected]>
Document pre_dt_board.cmake file usage. Signed-off-by: Andrei Gansari <[email protected]>
Allows boards to have a extra.cmake that allows for custom cmake commands.
We use the extra.cmake file to set EXTRA_DTC_FLAGS to suppress warnings on LPC SoC that have a single register address for all gpio ports.
Fixes #20748