diff --git a/components/app_trace/CMakeLists.txt b/components/app_trace/CMakeLists.txt index 2757ca224e..5e36070359 100644 --- a/components/app_trace/CMakeLists.txt +++ b/components/app_trace/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(srcs "app_trace.c" "app_trace_util.c" diff --git a/components/app_update/CMakeLists.txt b/components/app_update/CMakeLists.txt index 3653938e80..96806d30f8 100644 --- a/components/app_update/CMakeLists.txt +++ b/components/app_update/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + idf_component_register(SRCS "esp_ota_ops.c" "esp_ota_app_desc.c" INCLUDE_DIRS "include" REQUIRES partition_table bootloader_support esp_app_format esp_bootloader_format esp_partition diff --git a/components/bootloader/CMakeLists.txt b/components/bootloader/CMakeLists.txt index 063af86e22..3c62ae818b 100644 --- a/components/bootloader/CMakeLists.txt +++ b/components/bootloader/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + idf_component_register(PRIV_REQUIRES partition_table esptool_py) # Do not generate flash file when building bootloader or is in early expansion of the build diff --git a/components/bootloader_support/CMakeLists.txt b/components/bootloader_support/CMakeLists.txt index 24ced5ff44..3c1957473d 100644 --- a/components/bootloader_support/CMakeLists.txt +++ b/components/bootloader_support/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(srcs "src/bootloader_common.c" "src/bootloader_common_loader.c" diff --git a/components/bt/CMakeLists.txt b/components/bt/CMakeLists.txt index 2d487cbe9a..67ca86cd15 100644 --- a/components/bt/CMakeLists.txt +++ b/components/bt/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + # API headers that are used in the docs are also compiled # even if CONFIG_BT_ENABLED=n as long as CONFIG_IDF_DOC_BUILD=y diff --git a/components/console/CMakeLists.txt b/components/console/CMakeLists.txt index 839adc9b4c..5904ac5ada 100644 --- a/components/console/CMakeLists.txt +++ b/components/console/CMakeLists.txt @@ -1,3 +1,10 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is currently not supported by the POSIX/Linux simulator, but we may support it in the + # future (TODO: IDF-8103) +endif() + set(argtable_srcs argtable3/arg_cmd.c argtable3/arg_date.c argtable3/arg_dbl.c diff --git a/components/cxx/CMakeLists.txt b/components/cxx/CMakeLists.txt index 864c4386b0..a4075b34b5 100644 --- a/components/cxx/CMakeLists.txt +++ b/components/cxx/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not necessary on the POSIX/Linux simulator +endif() + idf_component_register(SRCS "cxx_exception_stubs.cpp" "cxx_guards.cpp" # Make sure that pthread is in component list diff --git a/components/driver/CMakeLists.txt b/components/driver/CMakeLists.txt index c3d8a35c4e..9d43f98551 100644 --- a/components/driver/CMakeLists.txt +++ b/components/driver/CMakeLists.txt @@ -1,5 +1,9 @@ idf_build_get_property(target IDF_TARGET) +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + # Always compiled source files set(srcs "gpio/gpio.c" diff --git a/components/efuse/CMakeLists.txt b/components/efuse/CMakeLists.txt index fdfe6ecaa1..123ea9f09e 100644 --- a/components/efuse/CMakeLists.txt +++ b/components/efuse/CMakeLists.txt @@ -1,5 +1,9 @@ idf_build_get_property(target IDF_TARGET) +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + if(CONFIG_EFUSE_VIRTUAL) message(STATUS "Efuse virtual mode is enabled. If Secure boot or Flash encryption is on" " it does not provide any security. FOR TESTING ONLY!") diff --git a/components/esp_adc/CMakeLists.txt b/components/esp_adc/CMakeLists.txt index 0c602f92c1..bef8434a40 100644 --- a/components/esp_adc/CMakeLists.txt +++ b/components/esp_adc/CMakeLists.txt @@ -1,5 +1,9 @@ idf_build_get_property(target IDF_TARGET) +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(includes "include" "interface" "${target}/include" "deprecated/include") set(srcs "adc_cali.c" diff --git a/components/esp_app_format/CMakeLists.txt b/components/esp_app_format/CMakeLists.txt index 9e93c2aa49..05d7c9ce3c 100644 --- a/components/esp_app_format/CMakeLists.txt +++ b/components/esp_app_format/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + if(NOT BOOTLOADER_BUILD) set(src "esp_app_desc.c") else() diff --git a/components/esp_bootloader_format/CMakeLists.txt b/components/esp_bootloader_format/CMakeLists.txt index e0b8873cdb..4afb08a363 100644 --- a/components/esp_bootloader_format/CMakeLists.txt +++ b/components/esp_bootloader_format/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + idf_component_register(SRCS "esp_bootloader_desc.c" INCLUDE_DIRS "include") diff --git a/components/esp_coex/CMakeLists.txt b/components/esp_coex/CMakeLists.txt index 55c482ced6..14b91cf4ee 100644 --- a/components/esp_coex/CMakeLists.txt +++ b/components/esp_coex/CMakeLists.txt @@ -1,5 +1,9 @@ idf_build_get_property(idf_target IDF_TARGET) +if(${idf_target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + if(CONFIG_ESP_COEX_SW_COEXIST_ENABLE OR CONFIG_ESP_COEX_EXTERNAL_COEXIST_ENABLE) if(CONFIG_APP_NO_BLOBS) set(link_binary_libs 0) diff --git a/components/esp_eth/CMakeLists.txt b/components/esp_eth/CMakeLists.txt index bb42bb1395..55f0fc0937 100644 --- a/components/esp_eth/CMakeLists.txt +++ b/components/esp_eth/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + idf_build_get_property(components_to_build BUILD_COMPONENTS) set(srcs) diff --git a/components/esp_gdbstub/CMakeLists.txt b/components/esp_gdbstub/CMakeLists.txt index 9267fbc12e..5da1e65c65 100644 --- a/components/esp_gdbstub/CMakeLists.txt +++ b/components/esp_gdbstub/CMakeLists.txt @@ -1,4 +1,10 @@ -set(srcs "src/gdbstub.c" +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + +set(srcs "src/gdbstub.c" "src/gdbstub_transport.c" "src/packet.c") diff --git a/components/esp_hid/CMakeLists.txt b/components/esp_hid/CMakeLists.txt index 36841a9957..a2edf17a16 100644 --- a/components/esp_hid/CMakeLists.txt +++ b/components/esp_hid/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(srcs "src/esp_hidd.c" "src/esp_hidh.c" "src/esp_hid_common.c") diff --git a/components/esp_https_ota/CMakeLists.txt b/components/esp_https_ota/CMakeLists.txt index 6dfe5f9ac4..e54d01ebb7 100644 --- a/components/esp_https_ota/CMakeLists.txt +++ b/components/esp_https_ota/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + idf_component_register(SRCS "src/esp_https_ota.c" INCLUDE_DIRS "include" REQUIRES esp_http_client bootloader_support esp_app_format esp_event diff --git a/components/esp_lcd/CMakeLists.txt b/components/esp_lcd/CMakeLists.txt index 733cfdd727..9e1c10b137 100644 --- a/components/esp_lcd/CMakeLists.txt +++ b/components/esp_lcd/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(srcs "src/esp_lcd_common.c" "src/esp_lcd_panel_io.c" "src/esp_lcd_panel_io_i2c_v1.c" diff --git a/components/esp_local_ctrl/CMakeLists.txt b/components/esp_local_ctrl/CMakeLists.txt index 9c8574eb28..92df4d4db9 100644 --- a/components/esp_local_ctrl/CMakeLists.txt +++ b/components/esp_local_ctrl/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(include_dirs include) set(priv_include_dirs proto-c src ../protocomm/proto-c) set(srcs "src/esp_local_ctrl.c" diff --git a/components/esp_mm/CMakeLists.txt b/components/esp_mm/CMakeLists.txt index 50c086159a..9878840bab 100644 --- a/components/esp_mm/CMakeLists.txt +++ b/components/esp_mm/CMakeLists.txt @@ -1,5 +1,9 @@ idf_build_get_property(target IDF_TARGET) +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(includes "include") # Note: requires spi_flash for cache_utils, will be refactored diff --git a/components/esp_netif/Kconfig b/components/esp_netif/Kconfig index 5df4d8193f..c4117e0e6e 100644 --- a/components/esp_netif/Kconfig +++ b/components/esp_netif/Kconfig @@ -21,6 +21,7 @@ menu "ESP NETIF Adapter" config ESP_NETIF_TCPIP_LWIP bool "LwIP" select ESP_NETIF_USES_TCPIP_WITH_BSD_API + depends on LWIP_ENABLE help lwIP is a small independent implementation of the TCP/IP protocol suite. diff --git a/components/esp_netif/loopback/esp_netif_loopback.c b/components/esp_netif/loopback/esp_netif_loopback.c index e3fbb71921..5771ca2b7e 100644 --- a/components/esp_netif/loopback/esp_netif_loopback.c +++ b/components/esp_netif/loopback/esp_netif_loopback.c @@ -270,13 +270,13 @@ void esp_netif_free_rx_buffer(void *h, void* buffer) esp_err_t esp_netif_transmit(esp_netif_t *esp_netif, void* data, size_t len) { - ESP_LOGV(TAG, "Transmitting data: ptr:%p, size:%d", data, len); + ESP_LOGV(TAG, "Transmitting data: ptr:%p, size:%lu", data, (long unsigned int) len); return (esp_netif->driver_transmit)(esp_netif->driver_handle, data, len); } esp_err_t esp_netif_receive(esp_netif_t *esp_netif, void *buffer, size_t len, void *eb) { - ESP_LOGV(TAG, "Received data: ptr:%p, size:%d", buffer, len); + ESP_LOGV(TAG, "Received data: ptr:%p, size:%lu", buffer, (long unsigned int) len); esp_netif_transmit(esp_netif, buffer, len); if (eb) { esp_netif_free_rx_buffer(esp_netif, eb); diff --git a/components/esp_phy/CMakeLists.txt b/components/esp_phy/CMakeLists.txt index 5614468f2e..f690d246e2 100644 --- a/components/esp_phy/CMakeLists.txt +++ b/components/esp_phy/CMakeLists.txt @@ -1,5 +1,9 @@ idf_build_get_property(idf_target IDF_TARGET) +if(${idf_target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + if(IDF_TARGET STREQUAL "esp32p4") # TODO: IDF-7460 return() diff --git a/components/esp_pm/CMakeLists.txt b/components/esp_pm/CMakeLists.txt index 7220337077..72c9742371 100644 --- a/components/esp_pm/CMakeLists.txt +++ b/components/esp_pm/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + idf_component_register(SRCS "pm_locks.c" "pm_trace.c" "pm_impl.c" INCLUDE_DIRS include PRIV_REQUIRES esp_system driver esp_timer diff --git a/components/esp_psram/CMakeLists.txt b/components/esp_psram/CMakeLists.txt index 6af0d5b9dc..41068ce78d 100644 --- a/components/esp_psram/CMakeLists.txt +++ b/components/esp_psram/CMakeLists.txt @@ -1,5 +1,9 @@ idf_build_get_property(target IDF_TARGET) +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(includes "include") set(priv_requires heap spi_flash esp_mm) diff --git a/components/esp_ringbuf/CMakeLists.txt b/components/esp_ringbuf/CMakeLists.txt index 4c4b114af9..04ed12a0fb 100644 --- a/components/esp_ringbuf/CMakeLists.txt +++ b/components/esp_ringbuf/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + idf_component_register(SRCS "ringbuf.c" INCLUDE_DIRS "include" LDFRAGMENTS linker.lf) diff --git a/components/esp_timer/CMakeLists.txt b/components/esp_timer/CMakeLists.txt index d81776311b..0129826de1 100644 --- a/components/esp_timer/CMakeLists.txt +++ b/components/esp_timer/CMakeLists.txt @@ -1,5 +1,9 @@ idf_build_get_property(target IDF_TARGET) +if(${target} STREQUAL "linux") +idf_component_register(INCLUDE_DIRS include) +else() + set(srcs "src/esp_timer.c" "src/ets_timer_legacy.c" "src/system_time.c" @@ -20,3 +24,5 @@ idf_component_register(SRCS "${srcs}" PRIV_INCLUDE_DIRS private_include REQUIRES esp_common PRIV_REQUIRES soc driver) + +endif() diff --git a/components/esp_wifi/CMakeLists.txt b/components/esp_wifi/CMakeLists.txt index bcd442eeb8..14d5d423a8 100644 --- a/components/esp_wifi/CMakeLists.txt +++ b/components/esp_wifi/CMakeLists.txt @@ -1,5 +1,10 @@ +idf_build_get_property(idf_target IDF_TARGET) + +if(${idf_target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + if(CONFIG_ESP_WIFI_ENABLED) - idf_build_get_property(idf_target IDF_TARGET) if(CONFIG_APP_NO_BLOBS) set(link_binary_libs 0) diff --git a/components/espcoredump/CMakeLists.txt b/components/espcoredump/CMakeLists.txt index 577e39a11f..3b1e88fce3 100644 --- a/components/espcoredump/CMakeLists.txt +++ b/components/espcoredump/CMakeLists.txt @@ -1,4 +1,10 @@ -set(srcs "src/core_dump_common.c" +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + +set(srcs "src/core_dump_common.c" "src/core_dump_checksum.c" "src/core_dump_flash.c" "src/core_dump_uart.c" diff --git a/components/esptool_py/CMakeLists.txt b/components/esptool_py/CMakeLists.txt index 1497be79f5..37f4de423a 100644 --- a/components/esptool_py/CMakeLists.txt +++ b/components/esptool_py/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + idf_component_register(REQUIRES bootloader PRIV_REQUIRES partition_table) if(NOT BOOTLOADER_BUILD) diff --git a/components/idf_test/CMakeLists.txt b/components/idf_test/CMakeLists.txt index 70c610b7fe..9c216570e4 100644 --- a/components/idf_test/CMakeLists.txt +++ b/components/idf_test/CMakeLists.txt @@ -1,3 +1,7 @@ idf_build_get_property(target IDF_TARGET) +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + idf_component_register(INCLUDE_DIRS "include" "include/${target}") diff --git a/components/ieee802154/CMakeLists.txt b/components/ieee802154/CMakeLists.txt index fc7c6174f3..e3e98bac2b 100644 --- a/components/ieee802154/CMakeLists.txt +++ b/components/ieee802154/CMakeLists.txt @@ -1,4 +1,8 @@ -idf_build_get_property(idf_target IDF_TARGET) +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() set(srcs "") set(include "include") diff --git a/components/newlib/CMakeLists.txt b/components/newlib/CMakeLists.txt index 42c5194ab1..9f30c6db68 100644 --- a/components/newlib/CMakeLists.txt +++ b/components/newlib/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + if(BOOTLOADER_BUILD) # Bootloader builds need the platform_include directory (for assert.h), but nothing else idf_component_register(INCLUDE_DIRS platform_include) diff --git a/components/nvs_sec_provider/CMakeLists.txt b/components/nvs_sec_provider/CMakeLists.txt index 3275f832fe..7fdcc9e81f 100644 --- a/components/nvs_sec_provider/CMakeLists.txt +++ b/components/nvs_sec_provider/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + idf_component_register(SRCS "nvs_sec_provider.c" INCLUDE_DIRS include PRIV_REQUIRES bootloader_support efuse esp_partition nvs_flash) diff --git a/components/openthread/CMakeLists.txt b/components/openthread/CMakeLists.txt index 46128a3f26..e0030687ab 100644 --- a/components/openthread/CMakeLists.txt +++ b/components/openthread/CMakeLists.txt @@ -1,11 +1,17 @@ +idf_build_get_property(idf_target IDF_TARGET) + +if(${idf_target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + if(CONFIG_OPENTHREAD_ENABLED OR CONFIG_IDF_DOC_BUILD) + set(public_include_dirs "include" "openthread/include") endif() if(CONFIG_OPENTHREAD_ENABLED) - idf_build_get_property(idf_target IDF_TARGET) set(private_include_dirs "openthread/examples/platforms" diff --git a/components/perfmon/CMakeLists.txt b/components/perfmon/CMakeLists.txt index 590ac8bed0..75afff4fc1 100644 --- a/components/perfmon/CMakeLists.txt +++ b/components/perfmon/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + idf_build_get_property(arch IDF_TARGET_ARCH) if(NOT "${arch}" STREQUAL "xtensa") diff --git a/components/protocomm/CMakeLists.txt b/components/protocomm/CMakeLists.txt index d98541d8f1..e74a13cf30 100644 --- a/components/protocomm/CMakeLists.txt +++ b/components/protocomm/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(include_dirs include/common include/security include/transports) diff --git a/components/sdmmc/CMakeLists.txt b/components/sdmmc/CMakeLists.txt index 5de0232b67..da638db577 100644 --- a/components/sdmmc/CMakeLists.txt +++ b/components/sdmmc/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + idf_component_register(SRCS "sdmmc_cmd.c" "sdmmc_common.c" "sdmmc_init.c" diff --git a/components/touch_element/CMakeLists.txt b/components/touch_element/CMakeLists.txt index 21a54d5aad..21c0e7f171 100644 --- a/components/touch_element/CMakeLists.txt +++ b/components/touch_element/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(TOUCH_ELEMENT_COMPATIBLE_TARGETS "esp32s2" "esp32s3") if(IDF_TARGET IN_LIST TOUCH_ELEMENT_COMPATIBLE_TARGETS) diff --git a/components/ulp/CMakeLists.txt b/components/ulp/CMakeLists.txt index 5805ae2a09..42b55d7b43 100644 --- a/components/ulp/CMakeLists.txt +++ b/components/ulp/CMakeLists.txt @@ -1,5 +1,9 @@ idf_build_get_property(target IDF_TARGET) +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(srcs "") set(includes "") diff --git a/components/usb/CMakeLists.txt b/components/usb/CMakeLists.txt index 5ff63af4d7..aef5ea50ac 100644 --- a/components/usb/CMakeLists.txt +++ b/components/usb/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(srcs) set(include) set(priv_include) diff --git a/components/vfs/CMakeLists.txt b/components/vfs/CMakeLists.txt index 6915429e95..8ac55d67c1 100644 --- a/components/vfs/CMakeLists.txt +++ b/components/vfs/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + list(APPEND sources "vfs.c" "vfs_eventfd.c" "vfs_uart.c" diff --git a/components/wear_levelling/out.txt b/components/wear_levelling/out.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/components/wifi_provisioning/CMakeLists.txt b/components/wifi_provisioning/CMakeLists.txt index df306ad264..6efea56455 100644 --- a/components/wifi_provisioning/CMakeLists.txt +++ b/components/wifi_provisioning/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(srcs "src/wifi_config.c" "src/wifi_scan.c" "src/wifi_ctrl.c" diff --git a/components/wpa_supplicant/CMakeLists.txt b/components/wpa_supplicant/CMakeLists.txt index a5c31d8a73..20a67dc227 100644 --- a/components/wpa_supplicant/CMakeLists.txt +++ b/components/wpa_supplicant/CMakeLists.txt @@ -1,3 +1,9 @@ +idf_build_get_property(target IDF_TARGET) + +if(${target} STREQUAL "linux") + return() # This component is not supported by the POSIX/Linux simulator +endif() + set(srcs "port/os_xtensa.c" "port/eloop.c" "src/ap/ap_config.c" diff --git a/docs/en/api-guides/host-apps.rst b/docs/en/api-guides/host-apps.rst index 2a39be3e10..d99a95a143 100644 --- a/docs/en/api-guides/host-apps.rst +++ b/docs/en/api-guides/host-apps.rst @@ -82,6 +82,9 @@ Note that any "Yes" here does not necessarily mean a full implementation or mock * - Component - Mock - Simulation + * - cmock + - No + - Yes * - driver - Yes - No @@ -91,12 +94,27 @@ Note that any "Yes" here does not necessarily mean a full implementation or mock * - esp_event - Yes - Yes + * - esp_http_client + - No + - Yes + * - esp_http_server + - No + - Yes + * - esp_https_server + - No + - Yes * - esp_hw_support - Yes - Yes + * - esp_netif + - Yes + - Yes + * - esp_netif_stack + - No + - Yes * - esp_partition - Yes - - No + - Yes * - esp_rom - No - Yes @@ -108,7 +126,10 @@ Note that any "Yes" here does not necessarily mean a full implementation or mock - No * - esp_tls - Yes + - Yes + * - fatfs - No + - Yes * - freertos - Yes - Yes @@ -120,19 +141,49 @@ Note that any "Yes" here does not necessarily mean a full implementation or mock - Yes * - http_parser - Yes + - Yes + * - json - No + - Yes + * - linux + - No + - Yes * - log - No - Yes * - lwip - Yes + - Yes + * - mbedtls - No + - Yes + * - mqtt + - No + - Yes + * - nvs_flash + - No + - Yes + * - partition_table + - No + - Yes + * - protobuf-c + - No + - Yes + * - pthread + - No + - Yes * - soc - No - Yes + * - spiffs + - No + - Yes * - spi_flash - Yes - No * - tcp_transport - Yes - No + * - unity + - No + - Yes diff --git a/examples/protocols/http_server/simple/CMakeLists.txt b/examples/protocols/http_server/simple/CMakeLists.txt index 9bed06a079..910296f3b3 100644 --- a/examples/protocols/http_server/simple/CMakeLists.txt +++ b/examples/protocols/http_server/simple/CMakeLists.txt @@ -1,10 +1,5 @@ # The following lines of boilerplate have to be in your project's CMakeLists # in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.16) - -if("${IDF_TARGET}" STREQUAL "linux") - set(COMPONENTS main) -endif() - include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(simple) diff --git a/examples/protocols/http_server/simple/sdkconfig.defaults b/examples/protocols/http_server/simple/sdkconfig.defaults new file mode 100644 index 0000000000..e69de29bb2 diff --git a/examples/protocols/sockets/udp_client/sdkconfig.defaults.linux b/examples/protocols/sockets/udp_client/sdkconfig.defaults.linux index 242f3ccd8c..b18cb4587c 100644 --- a/examples/protocols/sockets/udp_client/sdkconfig.defaults.linux +++ b/examples/protocols/sockets/udp_client/sdkconfig.defaults.linux @@ -1 +1,3 @@ CONFIG_LWIP_ENABLE=y +CONFIG_EXAMPLE_IPV4_ADDR="127.0.0.1" +CONFIG_EXAMPLE_CONNECT_LWIP_TAPIF=n diff --git a/tools/test_apps/linux_compatible/hello_world_linux_compatible/CMakeLists.txt b/tools/test_apps/linux_compatible/hello_world_linux_compatible/CMakeLists.txt index 827441ca4c..9e0d431d4c 100644 --- a/tools/test_apps/linux_compatible/hello_world_linux_compatible/CMakeLists.txt +++ b/tools/test_apps/linux_compatible/hello_world_linux_compatible/CMakeLists.txt @@ -3,5 +3,5 @@ cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) -set(COMPONENTS main) + project(hello_world) diff --git a/tools/test_apps/linux_compatible/hello_world_linux_compatible/sdkconfig.defaults b/tools/test_apps/linux_compatible/hello_world_linux_compatible/sdkconfig.defaults new file mode 100644 index 0000000000..e69de29bb2