boards/slwstk6000b: move CPU definiton to Makefile.features #12334
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
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included
Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
I did not move CPU_MODEL in that one as it requires other refactoring
first.
Limitations
I did not move CPU_MODEL in this PR as it needs bigger changes.
However, moving CPU already in this one, allows going forward with the automatic inclusion of the
CPU
Makefiles and adding static tests to ensure this pattern.Testing procedure
The files parsed during a build stayed the same.
Only Makefile.dep is now included once instead of twice:
BOARD=slwstk6000b make --no-print-directory -C examples/hello-world/ info-build | sed "s|${PWD}/||"g
And compared to
master
the output difference isIssues/PRs references
Tracking: move CPU/CPU_MODEL to Makefile.features #11477