-
Notifications
You must be signed in to change notification settings - Fork 424
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
WIP - split platform-dependent code into per-platform subtrees #6
base: develop
Are you sure you want to change the base?
Conversation
b4dc35b
to
68ae174
Compare
Progress report:
|
I have started to look into this in more detail and would like to pull (most of) it into the development branch. There are some issues to be resolved before that will be possible:
Moreover, I am not convinced that |
How is the progress of merging this to the develop branch? I am looking to create a version for the new ESP32 module and it would far easier if it had been restructured. |
Having received no reaction on my last post that lists what needs to be done before this can be pulled into the develop branch, I consider this work dead. Meanwhile, I have started implementing my own ideas on platform abstraction which is currently part of the dtls branch. I think this is the way to go forward. (At the same time considering the cross-platform fixes of the iotivity folks, of course, see PR #47). |
I understand the issue you where facing but it seemed so much had already On 21 September 2016 at 18:35, obgm [email protected] wrote:
|
Fix for later versions of MBed TLS Fix a couple of ifdef which should be if
Fix for later versions of MBed TLS Fix a couple of ifdef which should be if
Fix for later versions of MBed TLS Fix a couple of ifdef which should be if
Fix for later versions of MBed TLS Fix a couple of ifdef which should be if
Fix for later versions of MBed TLS Fix a couple of ifdef which should be if
Fix for later versions of MBed TLS Fix a couple of ifdef which should be if
Fix for later versions of MBed TLS Fix a couple of ifdef which should be if
Fix for later versions of MBed TLS Fix a couple of ifdef which should be if
Handle ^J matches Jan
This is a work in progress, and I am only opening the pull request to solicit feedback and share my work before I get too far into it.
I am trying to port libcoap to a variety of platforms, some of which use a as-yet-unsupported IP stack.
The current #ifdef based approach seems unsustainable, I elected to split code into separate platform folders before I did any of the porting work.
I introduced a
platform
folder which containsplatform_[module]
files to match the generalcoap_[module]
ones. The file tree looks like this:The platform is selected using an autoconf variable. The ./configure invocation thus becomes (for example):
$ ./configure PLATFORM=contiki
New ports would only need to provide the
platform_[module]
files in order to get coap working.A few things worth noting:
TODO:
#ifdef WITH_LWIP
portions ofpdu.c