Skip to content

[lws]: Generic support for ESP-IDF upstream (IDFGH-16828) #952

@david-cermak

Description

@david-cermak

Answers checklist.

  • I have read the documentation for esp-protocols components and the issue is not addressed there.
  • I have updated my esp-protocols branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Upstream lws does support ESP_PLATFORM, but in a very strange way:

https://github.com/warmcat/libwebsockets/blob/a74362ffdd17b7f6293f675edef6d602096a1e29/CMakeLists.txt#L86-L117

Makefile and sources use direct links to specific

  • IDF header and config files
  • IDF components

This supports typically breaks in every major IDF release.
It is desirable to split the makefile and misc layers to generic LWS part (1) which could be a extended by a custom port layer (2).
Then keep (1) upstream and leave (2) in esp-protocols/lws layers

Created when removed IDFv6.0 support in #950

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions