-
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 pkg/tinydtls configurations #12992
Kconfig: Expose pkg/tinydtls configurations #12992
Conversation
e589a24
to
49aed1d
Compare
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.
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. |
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.
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. |
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.
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-sock
with tinydtls should work as usualmake menuconfig
. Test e.g. changing cipher suites, enable debug log.Test each configuration option, e.g. set
CONFIG_DTLS_DEBUG
through:make menuconfig
and enable/disable debug logCFLAGS=CONFIG_DTLS_DEBUG
tomake
when 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