cpu/mips: make mips32r2_common only a common cpu and remove cpu/periph module duplicate names.#8032
Conversation
a3653de to
3c4d949
Compare
neiljay
left a comment
There was a problem hiding this comment.
All looks good to me, thanks for sorting this out. I've tested on all 3 board types.
|
@cladmi I'm happy to merge this now if you like ? |
|
I think @cladmi should squash this PR first down a little bit :-). |
|
Ah yes, LOL I forgot about the 'REVIEW ME' commit messages normally murdock fails when there is 'SQUASH' but clearly not on 'REVIEW' |
Prepare to make `mips32r2_common` only a common cpu and not a standalone one.
Use mips32r2_common 'Makefile.include' to simplify depending cpus: 'mips_pic32mx', 'mips_pic32mz' and 'mips32r2_generic'.
Add include path for 'eic_irq.h' file and fix c files relative include. Also remove wrong include to it in 'mips_pic32_common'.
This prevents clash between modules names cpu and periph with main cpus. Add dependency management in Makefile.include to keep things contained.
This prevents clash between modules names cpu and periph with main cpus. Add dependency management in Makefile.include to keep things contained.
USEMODULE in Makefile is not used by the build system and so does nothing.
3c4d949 to
f1d2895
Compare
|
Removed the "REVIEW ME" part of commits messages, how can we retrigger build ? |
|
@cladmi You have to remove then re-add the 'Ready for CI build' label, but you need to be a maintainer to do that. |
|
@cladmi, maybe squash the final 'BUG' commit. |
f1d2895 to
2375fcd
Compare
|
Just amended the last commit and pushed --force --force-with-lease. |
|
@ cladmi, its still not squashed though. |
|
The final "BUG" commit is a fix to a problem that was here before. The pic32 boards did not have this dependency which I think was required. |
|
Thank you for reviewing and merging. |
This fixes #8019
mips32r2_commonis both a standalone cpu and a common cpu used bymips_pic32mx/mz.This makes that
mips_pic32mxandmips_pic32mzcompile both thecpuandperiphmodule frommips_pic32mx/zandmips32r2_commonTo make
mips32r2_commona real common cpu with different cpu/periph module names, I addedmips32r2_genericto separate the standalone cpu part from the common part and namespaced the common one.Now
mips_pic32mxandmips_pic32mzcorrectly depends onmip32r2_commonnamespacedcpuandperiphmodule.Steps:
mips32r2_genericcpu usingmips32r2_commonmips32r2_commonmips32r2_commonandmips_pic32_commonto remove conflicting module names.Needs additional review for fixes of things that were here before.
I could do different PRs if needed.
periph_timeras a dependency ofmips32r2_common. This adds it tomips_pic32mx/mz.I am not sure, but if
mips32r2_common/periphneeds it, it may have been required before too.mips32r2_common/Makefile.featuresinmips_pic32mx/mz, as they are using the samesperiphit makes sense to me.Going further:
mips32r2_genericheaders but it may not be enough or wrong.mips32r2_commona dependency ofmips_pic32_common? Because right nowmips_pic32mx/mzdepend on twocommoncpus.