-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kconfig: Expose gnrc/ipv6/ext/frag configurations #12958
Kconfig: Expose gnrc/ipv6/ext/frag configurations #12958
Conversation
e8da247
to
f22d1d2
Compare
Rebased to master, this has no dependencies now. |
@leandrolanzieri this one needs rebase. |
f22d1d2
to
aeffa05
Compare
@fjmolinas Thanks, rebased |
@miri64 @leandrolanzieri do we get last issues resolved? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When setting CONFIG_GNRC_IPV6_EXT_FRAG_LIMIT_POOL_SIZE
to 2
I can't compile anymore tests/gnrc_ipv6_ext_frag
:
$ make menuconfig
Using default symbol values (no '/home/mlenders/Repositories/RIOT-OS/RIOT/tests/gnrc_ipv6_ext_frag/bin/native/generated/merged.config')
No changes to save (for '/home/mlenders/Repositories/RIOT-OS/RIOT/tests/gnrc_ipv6_ext_frag/bin/native/generated/merged.config')
$ make
Building application "tests_gnrc_ipv6_ext_frag" for "native" with MCU "native".
In file included from <command-line>:
/home/mlenders/Repositories/RIOT-OS/RIOT/tests/gnrc_ipv6_ext_frag/bin/native/generated/autoconf.h:72: error: "CONFIG_GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE" redefined [-Werror]
72 | #define CONFIG_GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE 2
|
<command-line>: note: this is the location of the previous definition
In file included from <command-line>:
/home/mlenders/Repositories/RIOT-OS/RIOT/tests/gnrc_ipv6_ext_frag/bin/native/riotbuild/riotbuild.h:4: error: "CONFIG_GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE" redefined [-Werror]
4 | #define CONFIG_GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE 3
|
In file included from <command-line>:
/home/mlenders/Repositories/RIOT-OS/RIOT/tests/gnrc_ipv6_ext_frag/bin/native/generated/autoconf.h:72: note: this is the location of the previous definition
72 | #define CONFIG_GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE 2
|
cc1: all warnings being treated as errors
make[1]: *** [/home/mlenders/Repositories/RIOT-OS/RIOT/Makefile.base:103: /home/mlenders/Repositories/RIOT-OS/RIOT/tests/gnrc_ipv6_ext_frag/bin/native/application_tests_gnrc_ipv6_ext_frag/main.o] Error 1
make: *** [/home/mlenders/Repositories/RIOT-OS/RIOT/tests/gnrc_ipv6_ext_frag/../../Makefile.include:540: /home/mlenders/Repositories/RIOT-OS/RIOT/tests/gnrc_ipv6_ext_frag/bin/native/application_tests_gnrc_ipv6_ext_frag.a] Error 2
Regarding the wording, I know that you mostly just copied what I wrote, but I have the feeling in isolation this has to be more precise.
I placed the Kconfig symbol check wrongly in the Makefile, now this should be fixed. |
b868cc7
to
2a7b9a9
Compare
Rebased to current master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comments were addressed. I tested this PR using tests/gnrc_ipv6_ext_frag
on native
and samr21-xpro
, the tests still succeed.
Please squash! |
Macros that changed: GNRC_IPV6_EXT_FRAG_SEND_SIZE -> CONFIG_GNRC_IPV6_EXT_FRAG_SEND_SIZE GNRC_IPV6_EXT_FRAG_RBUF_SIZE -> CONFIG_GNRC_IPV6_EXT_FRAG_RBUF_SIZE GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE -> CONFIG_GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE GNRC_IPV6_EXT_FRAG_RBUF_TIMEOUT_US -> CONFIG_GNRC_IPV6_EXT_FRAG_RBUF_TIMEOUT_US
This test needs the pool size for limit objects set to 3 by default so it does not fail. As this is done with the 'app.config' file, we explicitly disable Kconfig by default.
2a7b9a9
to
6481076
Compare
Murdock shows green light! GO |
Contribution description
This PR moves the configuration macros of
gnrc_ipv6_ext_frag
to theCONFIG_
namespace, and exposes them to Kconfig.In the test application a check was added, so the parameters are not changed via CFLAGS when Kconfig is being used,
that's why this depends on #12913.Testing procedure
tests/gnrc_ipv6_ext_frag
should still work as usual.make menuconfig
in the test application.Issues/PRs references
Part of #12888
Depends on #12913