Skip to content
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

pkg/tinydtls: Only include contrib folder if using tinydtls_sock_dtls #13132

Merged

Conversation

leandrolanzieri
Copy link
Contributor

Contribution description

As described in #13121, the contrib folder in tinydtls package is always included, which needs definitions for sock (sock_types.h).

This PR modifies the Makefile to only add this directory to the build if the module tinydtls_sock_dtls is used, which is the only case when the folder is needed.

Testing procedure

Issues/PRs references

Fixes #13121

@leandrolanzieri leandrolanzieri added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Area: pkg Area: External package ports labels Jan 15, 2020
Copy link
Member

@chrysn chrysn left a comment

Choose a reason for hiding this comment

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

This solves my problem, both in the minimal case of #13121 and the practical code of libOSCORE. The DTLS echo example still works as well. I did not test this in combination with #12104, but as they pull in tinydtls_sock_dtls as well, I don't see why it shouldn't work.

Looks like just the right solution. Thank you!

@cgundogan cgundogan added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jan 15, 2020
Copy link
Member

@cgundogan cgundogan left a comment

Choose a reason for hiding this comment

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

Tested together with @leandrolanzieri

USEPKG=tinydtls make for gnrc_networking should fail without this PR and it compiles with this PR.

@aabadie aabadie merged commit 18d15b6 into RIOT-OS:master Jan 15, 2020
@leandrolanzieri leandrolanzieri deleted the pr/pkg/tinydtls_fix_contrib_include branch January 15, 2020 19:44
@fjmolinas fjmolinas added this to the Release 2020.01 milestone Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tinydtls package has undeclared dependencies
5 participants