Kconfig: Add CPU and Board common symbols#13715
Merged
aabadie merged 5 commits intoRIOT-OS:masterfrom Apr 8, 2020
Merged
Conversation
Contributor
|
@leandrolanzieri, this one needs a rebase :) |
9e451b2 to
f43eeb4
Compare
Contributor
Author
|
@aabadie rebased! |
Contributor
Author
|
I edited the description mentioning that |
Contributor
Contributor
Author
Yes, symbols should not have values assigned yet. This is just declaring them. Then each Board/CPU assigns the proper value (like in #13404). |
Contributor
|
I also ran Details |
Contributor
Author
|
The usb_minimal example is failing. I will investigate |
Contributor
Author
|
@aabadie I was missing a |
'merged.config' may not always be present (e.g. when no files to merge are present). In order to always have an up-to-date configuration file 'out.config' will be generated mirroring the content of 'autoconf.h'. This is the file that the build system will include to read the current configuration symbols.
The symbols used to define a CPU are: - CPU - CPU_MODEL - CPU_FAMILY - CPU_ARCH
24bfaa3 to
89bea02
Compare
Contributor
Author
|
Thanks @aabadie for reviewing and testing! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Contribution description
This adds the definitions of common symbols to Kconfig which should be defined for every board/cpu combination, which would somehow mirror the variables we are currently defining in
Makefile.featuresfiles:BOARDCPUCPU_MODELCPU_SERIESCPU_FAMILYCPU_ARCHNow the main
Kconfigfile will also search for symbols on the currently selectedBOARDandCPU.Also, this changes the file which is included in the build system to one that is generated every time (
out.config).This was originally part of #13404, @jia200x suggested to split it.
Testing procedure
With any board selected, run
make menuconfig. Using the search function (/) you should be able to find these hidden symbols. Check that they are displayed correctly.Edit: As this also changes the Makefile to use
out.config, make sure thattests/kconfigstill works as expected.Issues/PRs references
#13404