Skip to content

Commit

Permalink
lwip/linux: Add lwip support for networking component under linux
Browse files Browse the repository at this point in the history
linux/lwip: Wrap some IO posix functions
* to workaourd the FreeRTOS EINTR issue (when building without lwip)
* to correctly choose the sub-system based on fd (when building with
lwip) -- passing control to either linux/system or to lwip
This commit also addapts tapio-if to provide DHCP client by default and
configurable settings for static IP
  • Loading branch information
david-cermak committed May 5, 2023
1 parent 4354901 commit a977324
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
set(priv_req mbedtls)
set(priv_inc_dir "src/util")
set(requires http_parser)
set(requires http_parser esp_event)
if(NOT ${IDF_TARGET} STREQUAL "linux")
list(APPEND priv_req lwip esp_timer)
list(APPEND priv_inc_dir "src/port/esp32")
list(APPEND requires esp_event)
else()
list(APPEND priv_inc_dir "src/port/linux")
list(APPEND priv_req pthread)
list(APPEND requires linux)
endif()

idf_component_register(SRCS "src/httpd_main.c"
Expand Down

0 comments on commit a977324

Please sign in to comment.