Makefile.dep: process cpu dependencies and fix stm32_common#9892
Closed
cladmi wants to merge 5 commits intoRIOT-OS:masterfrom
Closed
Makefile.dep: process cpu dependencies and fix stm32_common#9892cladmi wants to merge 5 commits intoRIOT-OS:masterfrom
cladmi wants to merge 5 commits intoRIOT-OS:masterfrom
Conversation
Allow handling full dependencies in cpu
Prepare to move some dependencies out of Makefile.include
Makefile.dep should never be included in a module Makefile. It is now directly included by the main Makefile.dep trough cpu/CPU/Makefile.dep.
It allows module (not in the application) which require the periph_flashpage feature to correctly also require periph_flash_common
10 tasks
Contributor
Author
|
The approach cannot work because in RIOT/makefiles/info-global.inc.mk Line 27 in 8d1d509 CPU is not known, so it should be done by the board Makefile.dep with hardcoded cpu.
I will do another PR in this direction. |
22 tasks
Contributor
Author
|
Hardwriting this would mean re-adding again some hardwriten duplication of the CPU variable, I will try something addressing 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
This adds processing cpu dependencies and fixes for periph_flashpage with
stm32_common.The Makefile.dep include from
periph/Makefile.dephas also been removed.I can split them in different PRs if wanted.
I added a test commit that should be removed to show the problem.
Testing procedure
Compiling the given test is fixed by the PR, it can be tested with the first commit alone:
Also, the
stm32_common/periph/i2c_Xhandling is still working:This works both in master and with this PR
Issues/PRs references
Found in #9342 main PR
Part of the main issue "dependencies declared in cpu/board Makefile.include" #8713