Skip to content

mips: Correct usage of USEMODULE#8360

Merged
smlng merged 1 commit intoRIOT-OS:masterfrom
neiljay:pr/correct_usage_of_features_on_mips
Jan 15, 2018
Merged

mips: Correct usage of USEMODULE#8360
smlng merged 1 commit intoRIOT-OS:masterfrom
neiljay:pr/correct_usage_of_features_on_mips

Conversation

@neiljay
Copy link
Copy Markdown
Contributor

@neiljay neiljay commented Jan 15, 2018

In CPU definitions we should not be explicitly naming peripheral modules to use
via USEMODULE (one should use FEATURES_PROVIDED instead).
Plus add missing cpu_init() and periph_init() methods.

This addresses some issues in #8052

@neiljay neiljay requested review from cladmi and jnohlgard January 15, 2018 11:08
@neiljay neiljay added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: MIPS Platform: This PR/issue effects MIPS-based platforms labels Jan 15, 2018
Copy link
Copy Markdown
Member

@smlng smlng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, just a very minor thing my IDE and GitHub complained about. Otherwise this looks good to merge.


USEMODULE += periph_common
USEMODULE += periph_hwrng
USEMODULE += periph_common No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add missing new line here

@cladmi
Copy link
Copy Markdown
Contributor

cladmi commented Jan 15, 2018

Looks good to me too. I did not tested has I have no boards, just reviewed the changes.

I would just like an addition in the commit message to mention that before mips_pic32_common was wrongly declaring using periph_hwrng when its only mips_pic32mz that has hwrng support.

I added a temporary PR to run murdock and verify it makes #8227 build correctly (Build passed https://ci.riot-os.org/RIOT-OS/RIOT/8361/7a510c9a6f68b2b0b743da4f0f588637ccd17499/output.html).

In CPU definitions we should not be explicilty naming peripheral modules to use
via USEMODULE (one should use FEATURES_PROVIDED instead).
Plus add missing cpu_init() and periph_init() methods.
This commit removes periph_hwrng support from the pic32mx cpu builds as
pic32mx does not have hwrng only pic32mz does.
@neiljay neiljay force-pushed the pr/correct_usage_of_features_on_mips branch from 794dba2 to e297a71 Compare January 15, 2018 14:03
@neiljay
Copy link
Copy Markdown
Contributor Author

neiljay commented Jan 15, 2018

@sming @cladmi I've fixed those requested minor issues, @sming please approve so we can get this merged ASAP, cheers.

@smlng smlng merged commit 469a1bb into RIOT-OS:master Jan 15, 2018
@smlng smlng added this to the Release 2018.01 milestone Jan 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: MIPS Platform: This PR/issue effects MIPS-based platforms

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants