From a9773241d039b63a144751be7f5173feb0690e61 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Mon, 3 Apr 2023 20:31:51 +0200 Subject: [PATCH] lwip/linux: Add lwip support for networking component under linux 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 --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 418f210..af0a5ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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"