mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-29 05:38:42 +00:00

Static task creation on Linux target had issues with insufficient stack memory allocation. Type of `StackType_t` is `unsigned long` and hence it must be considered during stack memory allocation. Fix ensures proper working of simple HTTP server example.
13 lines
373 B
CMake
13 lines
373 B
CMake
set(requires esp-tls nvs_flash esp_netif esp_http_server)
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
if(${target} STREQUAL "linux")
|
|
list(APPEND requires esp_stubs protocol_examples_common)
|
|
else()
|
|
list(APPEND requires esp_wifi esp_eth)
|
|
endif()
|
|
|
|
idf_component_register(SRCS "main.c"
|
|
INCLUDE_DIRS "."
|
|
PRIV_REQUIRES ${requires})
|