Kconfig: Expose pkg/tinydtls configurations#12992
Kconfig: Expose pkg/tinydtls configurations#12992leandrolanzieri merged 3 commits intoRIOT-OS:masterfrom
Conversation
e589a24 to
49aed1d
Compare
leandrolanzieri
left a comment
There was a problem hiding this comment.
Here are some comments. We need to come up with a solution for CFLAGS being used in the application's Makefile.include. As it is right now e.g. dtls-sock will always set CONFIG_DTLS_PSK even when Kconfig is being used.
|
ping @pokgak! |
|
Added backwards compability for using |
|
Sorry for the late response. I addresed your comments in the latest commits. |
|
Are your comments resolved @leandrolanzieri? If its okay, I'm gonna squash and rebase to master to pull in #13290 changes to fix the reported branch conflict. |
leandrolanzieri
left a comment
There was a problem hiding this comment.
Sorry for the delay. Yes, please address this one comment, rebase and squash. I will begin testing when you do.
465ad17 to
0c6a98c
Compare
|
Squashed and rebased. |
leandrolanzieri
left a comment
There was a problem hiding this comment.
Tested and everything still works as usual. Configurations via Kconfig are applied correctly. ACK.
|
@pokgak please rebase |
Macros that changed: DTLS_PSK -> CONFIG_DTLS_PSK DTLS_ECC -> CONFIG_DTLS_ECC (except in release-notes.txt) DTLS_CONTEXT_MAX -> CONFIG_DTLS_CONTEXT_MAX DTLS_PEER_MAX -> CONFIG_DTLS_PEER_MAX DTLS_HANDSHAKE_MAX -> CONFIG_DTLS_HANDSHAKE_MAX DTLS_SECURITY_MAX -> CONFIG_DTLS_SECURITY_MAX DTLS_HASH_MAX -> CONFIG_DTLS_HASH_MAX
0c6a98c to
817a7c5
Compare
|
Rebased to current master. |
817a7c5 to
05d8341
Compare
05d8341 to
a6432cf
Compare
|
And GO! |
Contribution description
This PR moves the tinydtls configuration macros to the CONFIG_ namespace and exposes them to Kconfig.
Testing procedure
dtls-echo,dtls-sockwith tinydtls should work as usualmake menuconfig. Test e.g. changing cipher suites, enable debug log.Test each configuration option, e.g. set
CONFIG_DTLS_DEBUGthrough:make menuconfigand enable/disable debug logCFLAGS=CONFIG_DTLS_DEBUGtomakewhen building the applicationThe example applications should build as usual and use the configured option values.
Issues/PRs references
Part of #12888
Depends on
#12913, #12974