boards/slwstk6000b: move CPU definiton to Makefile.features#12334
Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom Sep 30, 2019
Merged
boards/slwstk6000b: move CPU definiton to Makefile.features#12334benpicco merged 1 commit intoRIOT-OS:masterfrom
benpicco merged 1 commit intoRIOT-OS:masterfrom
Conversation
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.
This was referenced Sep 30, 2019
benpicco
approved these changes
Sep 30, 2019
Contributor
benpicco
left a comment
There was a problem hiding this comment.
Moves CPU to the right place and removes redundant includes.
Contributor
Author
|
Thank you for the review, I will rebase the PRs that depended on it. |
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
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
CPUMakefiles 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}/||"gAnd compared to
masterthe output difference isIssues/PRs references
Tracking: move CPU/CPU_MODEL to Makefile.features #11477