Kconfig: Expose gnrc/ipv6/whitelist configurations#12893
Merged
miri64 merged 5 commits intoRIOT-OS:masterfrom Dec 10, 2019
Merged
Kconfig: Expose gnrc/ipv6/whitelist configurations#12893miri64 merged 5 commits intoRIOT-OS:masterfrom
miri64 merged 5 commits intoRIOT-OS:masterfrom
Conversation
Macros that changed: GNRC_IPV6_WHITELIST_SIZE -> CONFIG_GNRC_IPV6_WHITELIST_SIZE
71 tasks
miri64
reviewed
Dec 6, 2019
| #ifndef GNRC_IPV6_WHITELIST_SIZE | ||
| #define GNRC_IPV6_WHITELIST_SIZE (8) | ||
| #ifndef CONFIG_GNRC_IPV6_WHITELIST_SIZE | ||
| #define CONFIG_GNRC_IPV6_WHITELIST_SIZE (8) |
Member
There was a problem hiding this comment.
Do we have to rename all config macros to be usable with kconfig?
Contributor
Author
There was a problem hiding this comment.
Yes, Kconfig generates the .config and .h files appending the CONFIG_ symbol. Regardless of that, I think it's good to have configuration macros under a single namespace.
Member
There was a problem hiding this comment.
Ok, were just wondering for future integrations.
Member
|
I set the whitelist size to 100 via menuconfig and applied the following patch: The output is So, it works as expected. |
Member
|
implementation of KConfig files looks also good. It should be easy to proceed. |
Member
Nope all good from my side. Murdock seems to have failed on an unrelated error though. |
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 moves the
gnrc_ipv6_whitelistmodule configuration macros to theCONFIG_namespace and exposes them to Kconfig.Testing procedure
Compile
gnrc_networkingexample application using this module (USEMODULE=gnrc_ipv6_whitelist make all term), the default configuration should still be the same.Call menuconfig using this module (
USEMODULE=gnrc_ipv6_whitelist make menuconfig), you should the list size as an option. The default list size should still be the same. If you change the value it should change in the app.Issues/PRs references
Part of #12888