-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Sanitycheck: Support filtering based on DTS configuration data #11800
Conversation
6f76cf0
to
5a6f806
Compare
All checks are passing now. Review history of this comment for details about previous failed status. |
Codecov Report
@@ Coverage Diff @@
## master #11800 +/- ##
==========================================
+ Coverage 48.05% 48.3% +0.24%
==========================================
Files 281 280 -1
Lines 43413 43326 -87
Branches 10404 10373 -31
==========================================
+ Hits 20864 20929 +65
+ Misses 18400 18245 -155
- Partials 4149 4152 +3
Continue to review full report at Codecov.
|
5a6f806
to
85c9abe
Compare
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, would like @galak blessing
I want to think about this a little before approving/merging, not sure what the implications are we remove dt fixup, move to codegen, etc. |
we can always change to whatever method later and when such changes come, right now we are just checking for variables that are being used in samples anyways and those would need to be changed in any case depending on how we move forward. |
@@ -13,8 +13,12 @@ GPIO outputs of the MCU/board. | |||
Wiring | |||
****** | |||
|
|||
The code may need some work before running on another board: set PORT, | |||
LED1 and LED2 according to the board's GPIO configuration. | |||
This sample should work on board with multiple built-in LEDs without any |
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.
This is contradictory, so let's simplify and say:
This sample may need some code changes to run on specific
boards by setting the PORT, LED0, and LED1 according to
the board's GPIO configuration. As examples, see the instructions
below for some of our supported boards.
In addition to Kconfig values from generated .config, also parse and filter based on configs generated by device-tree. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
85c9abe
to
ca45180
Compare
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.
Is there some way we can convey these filters are coming from DT data? Would be helpful when we replace this with eDTS info that we know that. Not sure if adding a 'dt_filter' in addition to 'filter'.
no, there is no way I can think of, the filter also supports environment variables, some variables from cmake, Kconfig etc. So DT is not special here. We should not block this because of EDTS, unless we have a clear idea and a plan about when EDTS is landing. |
also, Kconfig is always prefix with CONFIG_, DT stuff will hopefully all move to DT_, there will be some aliases that will have neither, those will be assumed to be either from DTS or env. The only problematic ones will be CONFIG_ variables that come from DT, but those are going away slowly. |
ca45180
to
5581bcc
Compare
Do not limit to whitelisted boards, instead make it build/run for any board that defines required DTS macros. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Do not limit to whitelisted boards, instead make it build/run for any board that defines required DTS macros. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Do not limit to whitelisted boards, instead make it build/run for any board that defines required DTS macros. Remove QMSI kconfigs and depend on DTS only. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Do not limit to whitelisted boards, instead make it build/run for any board that defines required DTS macros. Simplified documentation and made it more generic. Remove HW setup and made sample work with built-in LEDs and buttons. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This sample does not belong under basic/, it should have its own category. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
5581bcc
to
f3f741b
Compare
Cleanup some hardcoded samples and depend on DTS data instead making the sample
more generic.