diff --git a/components/app_trace/CMakeLists.txt b/components/app_trace/CMakeLists.txt index 2757ca224e9..5e360703596 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 3653938e807..96806d30f87 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 063af86e222..3c62ae818ba 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 24ced5ff444..3c1957473dc 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 2d487cbe9ae..67ca86cd157 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 839adc9b4c3..5904ac5ada5 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 864c4386b02..a4075b34b52 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 c3d8a35c4e2..9d43f985511 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 fdfe6ecaa17..123ea9f09e2 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 0c602f92c1c..bef8434a40d 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 9e93c2aa498..05d7c9ce3c8 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 e0b8873cdbd..4afb08a3634 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 55c482ced6d..14b91cf4eea 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 bb42bb13958..55f0fc09373 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 9267fbc12e8..5da1e65c659 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 36841a99572..a2edf17a166 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 6dfe5f9ac42..e54d01ebb70 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 733cfdd727b..9e1c10b1374 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 9c8574eb287..92df4d4db98 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 50c086159a0..9878840babc 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 5df4d8193f8..c4117e0e6e7 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 0721fcce580..c894b0c23fa 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 5614468f2ee..f690d246e2c 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 72203370773..72c97423711 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 6af0d5b9dcd..41068ce78d4 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 4c4b114af93..04ed12a0fb9 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 d81776311b2..0129826de1f 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 bcd442eeb80..14d5d423a81 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 577e39a11f2..3b1e88fce32 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 1497be79f51..37f4de423ab 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 70c610b7fee..9c216570e49 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 fc7c6174f38..e3e98bac2b0 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 42c5194ab13..9f30c6db68f 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 3275f832fee..7fdcc9e81f7 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 46128a3f269..e0030687ab4 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 590ac8bed01..75afff4fc14 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 d98541d8f12..e74a13cf305 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 5de0232b673..da638db5771 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 21a54d5aad8..21c0e7f1715 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 5805ae2a09a..42b55d7b43b 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 5ff63af4d7d..aef5ea50ac7 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 6915429e95f..8ac55d67c1d 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 00000000000..e69de29bb2d diff --git a/components/wifi_provisioning/CMakeLists.txt b/components/wifi_provisioning/CMakeLists.txt index df306ad264d..6efea564550 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 a5c31d8a73d..20a67dc2271 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 2a39be3e102..d99a95a1439 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_partition + * - esp_netif - Yes + - Yes + * - esp_netif_stack - No + - Yes + * - esp_partition + - Yes + - 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 9bed06a0791..910296f3b37 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 00000000000..e69de29bb2d diff --git a/examples/protocols/sockets/udp_client/sdkconfig.defaults.linux b/examples/protocols/sockets/udp_client/sdkconfig.defaults.linux index 242f3ccd8c5..b18cb4587ce 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 827441ca4c7..9e0d431d4ce 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 00000000000..e69de29bb2d