Skip to content

boards/mips32r2-based: Model features in Kconfig#14475

Merged
aabadie merged 7 commits intoRIOT-OS:masterfrom
leandrolanzieri:pr/kconfig/mips32r2_boards_symbols
Jul 16, 2020
Merged

boards/mips32r2-based: Model features in Kconfig#14475
aabadie merged 7 commits intoRIOT-OS:masterfrom
leandrolanzieri:pr/kconfig/mips32r2_boards_symbols

Conversation

@leandrolanzieri
Copy link
Copy Markdown
Contributor

Contribution description

This models the features provided by the boards based on CPUs implementing the mips32r2 architecture:

  • 6lowpan-clicker
  • pic32-wifire

Testing procedure

  • Check symbol organization and naming
  • Green CI: tests/kconfig_features should pass for both boards

Issues/PRs references

Part of #14148

@leandrolanzieri leandrolanzieri added Type: new feature The issue requests / The PR implemements a new feature for RIOT Area: Kconfig Area: Kconfig integration labels Jul 9, 2020
@@ -1,7 +1,6 @@
CPU_ARCH = mips32
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not keep it here ? It doesn't seem to hurt and could maybe be renamed mips32r2 to be inline with the provided feature. All this could be factorized by the way (the same as for FEATURES_PROVIDED += cpu_$(CPU) and keep in-sync with Kconfig until we are done with Kconfig.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Why not keep it here ?

Well I think that moving this to the common place makes sense. We are already including mips32r2_common/Makefile.features so it made sense to me that all who include that inherit the CPU_ARCH value.

All this could be factorized by the way

Sorry, I did not get this. How would it look like?

Copy link
Copy Markdown
Contributor

@aabadie aabadie Jul 9, 2020

Choose a reason for hiding this comment

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

Here:

FEATURES_PROVIDED += cpu_$(CPU)

We could add:

FEATURES_PROVIDED += cpu_arch_$(CPU_ARCH)

And maybe add similar things for CPU_CORE, CPU_FAM. This way it becomes easy to filter features based on finer grained information because for the moment we only have ARCH (arch_32bit, arch_avr, etc) but no intermediate.

And that be in sync with what Kconfig is exposing: HAS_CPU_CORE_STM32, etc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I see. But Kconfig is not providing this information as features (i.e. HAS_ prefixed symbols). It only has the symbols CPU_ARCH_, CPU_CORE_... If we start adding this as features then we need to duplicate this information in Kconfig by adding symbols like HAS_CPU_ARCH_ for every level of the hierarchy

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok, I see. Thanks for the clarification. So then that's ok for the moment to remove it here I guess.

@aabadie
Copy link
Copy Markdown
Contributor

aabadie commented Jul 16, 2020

Please rebase!

@leandrolanzieri leandrolanzieri force-pushed the pr/kconfig/mips32r2_boards_symbols branch from 67c02ec to f4a37af Compare July 16, 2020 11:22
@leandrolanzieri
Copy link
Copy Markdown
Contributor Author

Rebased

Copy link
Copy Markdown
Contributor

@aabadie aabadie 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, let's trigger Murdock

ACK

@aabadie aabadie added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jul 16, 2020
@aabadie aabadie merged commit 15110af into RIOT-OS:master Jul 16, 2020
@leandrolanzieri
Copy link
Copy Markdown
Contributor Author

Thanks for the review!

@leandrolanzieri leandrolanzieri deleted the pr/kconfig/mips32r2_boards_symbols branch July 16, 2020 13:29
@leandrolanzieri leandrolanzieri added this to the Release 2020.10 milestone Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Kconfig Area: Kconfig integration CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: new feature The issue requests / The PR implemements a new feature for RIOT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants