Commit Graph
34356 Commits
Author SHA1 Message Date
Frantisek Hrbata e14d50b79b fix(ulp): add sdkconfig directory to ULP target include directories
The ULP sources include sdkconfig.h for compile-time configuration
values. The sdkconfig directory was previously available to the ULP
target indirectly through the COMPONENT_INCLUDES variable, which is
populated from the parent component's INTERFACE_INCLUDE_DIRECTORIES.
In cmake v1, idf_component_register() adds the config_dir as PUBLIC
include directory to every component (component.cmake:498), so it
ends up in INTERFACE_INCLUDE_DIRECTORIES and gets passed to the ULP
subproject via COMPONENT_INCLUDES.

In cmakev2, the config_dir is added as a build-level property and
applied to components as PRIVATE (component.cmake:1053), so it no
longer appears in INTERFACE_INCLUDE_DIRECTORIES. As a result, the
sdkconfig directory is missing from the ULP target's include paths.

Add the sdkconfig directory explicitly to the ULP target's include
directories. Note that SDKCONFIG_HEADER is already passed to the ULP
subproject and its directory is already extracted into sdkconfig_dir
for linker script preprocessing (IDFULPProject.cmake:40).

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-03-20 08:16:52 +01:00
Marius Vikhammer ea84e9118d fix(esp_coex): move coex init from esp_system to esp_coex component
CMakev2's DEFERRED mode for idf_component_optional_requires only links
optional components already present in the dependency graph. This caused
esp_coex headers to be unavailable when building minimal examples on
targets with both WiFi and IEEE802154 (e.g. esp32c5, esp32c6).

Moving init_coexist to esp_coex removes the cross-component dependency
and ensures the init function is only compiled when esp_coex itself is
part of the build. A linker hook is added to guarantee the object file
is not silently discarded by the linker.

Made-with: Cursor
2026-03-20 08:16:46 +01:00
Sudeep Mohanty bb54da7a10 fix(esp_wifi): Update esp_wifi dependencies on non-WiFi targets for cmakev2
This commit updates the dependencies list for the esp_wifi component
when compiled for non-WiFi targets. The reason for this change is
because cmakev2 explicitly includes the esp_wifi component even on
non-WiFi targets leading to compilation errors due to missing
dependencies.
2026-03-20 08:13:27 +01:00
Frantisek Hrbata a06f85a79f fix(esp_phy/cmake): initialize embed_files variable
In cmakev2, a component can be evaluated within the context of another
component, so it's important to properly initialize each variable used
by the component.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-03-20 08:13:26 +01:00
Sudeep Mohanty 512dacab6a fix(partition_table): Fixed linux build for Build System v2
Build System v2 does not have the internal __idf_build_target, so use
ALL target instead for unconditional partition table generation on linux.
2026-03-20 08:13:26 +01:00
Sudeep Mohanty 55205d22c8 fix(tcp_transport): Fixed linux build for Build System v2
For Build System v2 on linux target, esp_timer dependency must be
conditional on CONFIG_LWIP_IPV4 rather than checking BUILD_COMPONENTS.
v2 uses configuration-driven dependencies.
2026-03-20 08:13:26 +01:00
Sudeep Mohanty f91c08b183 fix(esp-tls): Fixed linux build for Build System v2
For Build System v2 on linux target, lwip dependency and ESP_TLS_WITH_LWIP
definition must be conditional on CONFIG_LWIP_ENABLE rather than checking
BUILD_COMPONENTS. v2 uses configuration-driven dependencies.
2026-03-20 08:13:26 +01:00
Sudeep Mohanty 801ae3c205 fix(bootloader_support): Require micro-ecc only for BOOTLOADER_BUILD
When CONFIG_APP_BUILD_TYPE_RAM is set (loadable ELF app build),
bootloader_support was adding micro-ecc to priv_requires. The micro-ecc
component lives in the bootloader subproject and is not available in
normal app builds with cmakev2, causing component resolution to fail
when built for a build system v2 project.

micro-ecc is only needed for secure boot sources built under
BOOTLOADER_BUILD (secure_boot_signatures_bootloader.c). For app builds
with CONFIG_APP_BUILD_TYPE_RAM we do not build those sources, so
only add micro-ecc to priv_requires when BOOTLOADER_BUILD is set.
2026-03-20 08:13:26 +01:00
Frantisek Hrbata 33680597c7 fix(freertos): set app_main as undefined even for linux target
In cmakev1, the initial order of components linked to the executable is
determined by the `__build_expand_requirements` function and stored as a
list in the `BUILD_COMPONENT_ALIASES` build property. Later, the
components from `BUILD_COMPONENT_ALIASES` are linked to the executable
using `target_link_libraries`. The issue is that
`BUILD_COMPONENT_ALIASES` contains components in a "reversed" order
compared to how they would typically appear on the link command line. In
other words, components (archives) deeper in the dependency chain are
placed first. As a result, cmake has to repeat the archives in the link
command more times than is actually necessary. This has the beneficial
side effect of placing libfreertos.a before libmain.a, allowing the
`app_main` symbol to be resolved.

In cmakev2, there is no predefined order because it does not perform
early evaluation. Instead, the entire link command is created based on
actual component dependencies using `target_link_libraries`.
Consequently, freertos must set the `app_main` symbols as undefined.
This is already done for non-Linux targets, but it must also be done for
the Linux target.

Another issue arises with macOS, which mangles C symbols by prepending
an underscore. We cannot use the same method as in
`components/linux/assert_func.c` for `__assert_func`, so for macOS,
`_app_main` is used. In the future, if more undefined symbols need to be
added for the Linux target, we should consider introducing a helper.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-03-20 08:13:26 +01:00
Frantisek Hrbata f90f706e6e fix(bt/config): use osource for target controller configuration
In cmakev2, the configuration for all components is included because the
complete configuration is generated very early, before any component is
actually evaluated. This poses a problem for the Linux target, which
does not have a controller Kconfig.in file, causing kconfgen to fail due
to the missing include. To address this, let's use the osource command,
which does not include the referenced Kconfig file if it does not exist.

Closes https://github.com/espressif/esp-idf/issues/18142

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-03-20 08:13:26 +01:00
Frantisek Hrbata 15f885bbf0 fix(soc/cmake): fix the usage of the uninitialized variable
The `srcs` list variable is used without initialization when building
for linux target. Initialize it explicitly.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-03-20 08:13:26 +01:00
Frantisek Hrbata f83ec13a2f fix(linux/cmake): fix the usage of the uninitialized variable
The `srcs` list variable is used without initialization when building
for linux target. Initialize it explicitly.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-03-20 08:13:26 +01:00
Jiang Jiang Jian cdcb4cbce8 Merge branch 'ci/esp_tee_fixes_v6.0' into 'release/v6.0'
feat(esp_tee): Miscellaneous fixes and improvements (v6.0)

See merge request espressif/esp-idf!46800
2026-03-20 14:47:23 +08:00
morris 23e199d646 Merge branch 'feature/esp32c61_flash_psram_timing_tuning_v6.0' into 'release/v6.0'
feat(mspi): support 120MHz flash and psram for esp32c61 (v6.0)

See merge request espressif/esp-idf!45886
2026-03-20 13:55:06 +08:00
morris 308feafe23 Merge branch 'docs/fixed_bitscrambler_typo_v6.0' into 'release/v6.0'
docs(pms): fixed bitscrambler typo in pmu module (v6.0)

See merge request espressif/esp-idf!46792
2026-03-20 13:43:25 +08:00
Laukik Hase 83e2777a3b feat(esp_tee): Miscellaneous fixes and improvements
- Fix intermittent TEE stack underflow test failures
- Fix out-of-bounds access Coverity report from the attestation
  component
- Add appropriate checks and asserts for TEE flash memory regions'
  sizes
2026-03-20 10:54:14 +05:30
morris 2c0e86512d Merge branch 'contrib/github_pr_18283_v6.0' into 'release/v6.0'
Kampi/feature 18282 (GitHub PR) (v6.0)

See merge request espressif/esp-idf!46473
2026-03-20 13:17:52 +08:00
morris ef747beca2 Merge branch 'fix/disable_cam_spi_build_error_v6.0' into 'release/v6.0'
test(esp_cam_sensor): fixed cam_spi_slave build errors (v6.0)

See merge request espressif/esp-idf!46791
2026-03-20 13:14:44 +08:00
Jiang Jiang Jian f99faef51d Merge branch 'feat/support_bleqabr25_1521_v6.0' into 'release/v6.0'
feat(ble/bluedroid): Add an API to resolve RPA (v6.0)

See merge request espressif/esp-idf!46500
2026-03-20 11:22:55 +08:00
Jiang Jiang Jian 93c374f011 Merge branch 'bugfix/ws-transport-buffer-timeout-v6.0' into 'release/v6.0'
fix(ws_transport): fix WebSocket buffer overflow and timeout handling

See merge request espressif/esp-idf!46568
2026-03-20 11:21:48 +08:00
Jiang Jiang Jian 4f5a2b9e34 Merge branch 'bugfix/wps_deauth_during_scan_v6.0' into 'release/v6.0'
fix(wifi): ignore disconnect events outside WPS handshake phase in wps (Backport v6.0)

See merge request espressif/esp-idf!46769
2026-03-20 11:04:02 +08:00
wanckl f784342fd2 test(esp_cam_sensor): fixed cam_spi_slave build errors 2026-03-20 11:00:57 +08:00
wanckl ee45f289f4 test(esp_cam_sensor): fixed cam_spi_slave build errors 2026-03-20 10:58:04 +08:00
laokaiyao 114417d067 docs(pms): fixed bitscrambler typo in pmu module 2026-03-20 10:58:04 +08:00
Jiang Jiang Jian b556757c94 Merge branch 'refactor/fatfs_vfs_change_esp_vfs_fat_register_prototype_v6.0' into 'release/v6.0'
refactor(fatfs): Update esp_vfs_fat_register function prototype (v6.0)

See merge request espressif/esp-idf!45980
2026-03-20 10:55:02 +08:00
Jiang Jiang Jian 9bf6972f2b Merge branch 'fix/sdmmc_sdspi_retry_crc_check_v6.0' into 'release/v6.0'
fix(sdspi): 0x106 error during SD card init via SPI related fixes (v6.0)

See merge request espressif/esp-idf!45691
2026-03-20 10:51:38 +08:00
Jiang Jiang Jian 8b4c344ddd Merge branch 'fix/vfs_missing_va_end_v6.0' into 'release/v6.0'
fix(storage/vfs): Remove va_end leak in ioctl caused by early return in macro (v6.0)

See merge request espressif/esp-idf!45521
2026-03-20 10:50:03 +08:00
Jiang Jiang Jian fcd9cd1bb9 Merge branch 'feat/delete_content_length_header_with_transfer_encoding_v6.0' into 'release/v6.0'
fix(esp_http_client): delete Content-Length header when using Transfer-Encoding (v6.0)

See merge request espressif/esp-idf!46683
2026-03-20 10:47:57 +08:00
Jiang Jiang Jian 83c3c25a45 Merge branch 'bugfix/fix_call_spp_start_discovert_twice_crash_v6.0' into 'release/v6.0'
fix(bt): fix crash when calling esp_spp_start_discovery twice in succession(v6.0)

See merge request espressif/esp-idf!46664
2026-03-20 10:47:42 +08:00
Jiang Jiang Jian 5d0b18edb9 Merge branch 'fix/picolibc-specs-drop-gc-sections_v6.0' into 'release/v6.0'
fix(esp_libc): remove --gc-sections from picolibc.specs for CMake checks (v6.0)

See merge request espressif/esp-idf!46574
2026-03-20 10:46:55 +08:00
Jiang Jiang Jian b32f2828aa Merge branch 'fix/remove_unused_psa_migration_code_http_server_v6.0' into 'release/v6.0'
Fix/remove unused psa migration code http server (v6.0)

See merge request espressif/esp-idf!46558
2026-03-20 10:46:35 +08:00
Jiang Jiang Jian 1aba789643 Merge branch 'fix/flaky_test_with_memory_leak_v6.0' into 'release/v6.0'
fix(esp_system): Fix flaky tests with memory leak in sleep test (v6.0)

See merge request espressif/esp-idf!46415
2026-03-20 10:40:05 +08:00
Jiang Jiang Jian d6000ccecd Merge branch 'feat/use_common_config_to_sel_crypt_lib_v6.0' into 'release/v6.0'
Feat/use common config to sel crypt lib (v6.0)

See merge request espressif/esp-idf!46408
2026-03-20 10:39:59 +08:00
Jiang Jiang Jian bea959e55f Merge branch 'bugfix/fix_kconfig_for_ble_cte_depends_v6.0' into 'release/v6.0'
bugfix(ble): remove BT_LE_SECURITY_ENABLE dependency for CTE on ESP32-C5 (v6.0)

See merge request espressif/esp-idf!46342
2026-03-20 10:39:26 +08:00
Jiang Jiang Jian edf0bf67de Merge branch 'fix/use_apb_max_state_for_ble_events_v6.0' into 'release/v6.0'
fix(ble): use apb max state for bt and enable should skip (v6.0)

See merge request espressif/esp-idf!46334
2026-03-20 10:39:19 +08:00
Jiang Jiang Jian 77d11e6381 Merge branch 'fix/ble_hci_log_direction_v6.0' into 'release/v6.0'
feat(ble_log): encode HCI direction in ble_log pipeline (v6.0)

See merge request espressif/esp-idf!46303
2026-03-20 10:38:49 +08:00
Jiang Jiang Jian 7908812022 Merge branch 'bugfix/fix_blufi_nimble_gatt_pkt_v6.0' into 'release/v6.0'
fix(blufi): Handle flattened ATT write payloads correctly in NimBLE BLUFI host (v6.0)

See merge request espressif/esp-idf!46260
2026-03-20 10:38:43 +08:00
Jiang Jiang Jian ea5e61dba8 Merge branch 'bugfix/support_for_alt_snounce_v6.0' into 'release/v6.0'
fix(esp_wifi): Add alt snonce verification in softAP (v6.0)

See merge request espressif/esp-idf!46249
2026-03-20 10:38:26 +08:00
Jiang Jiang Jian c9daea6b54 Merge branch 'feat/improve_ws_server_handshake_handling_v6.0' into 'release/v6.0'
feat(http_server): improve websocket server handling (v6.0)

See merge request espressif/esp-idf!46247
2026-03-20 10:38:23 +08:00
Jiang Jiang Jian 4922d627cd Merge branch 'feat/ble_bluedroid_log_full_compression_enable_v6.0' into 'release/v6.0'
feat(ble_mesh): enable log full compression function for bluedroid host (v6.0)

See merge request espressif/esp-idf!46156
2026-03-20 10:37:19 +08:00
Jiang Jiang Jian e4caa65b0b Merge branch 'fix/ble_mesh_nimble_connection_failed_v6.0' into 'release/v6.0'
fix(ble_mesh):fixed nimble connection failed (v6.0)

See merge request espressif/esp-idf!46118
2026-03-20 10:37:10 +08:00
Jiang Jiang Jian 00fca66b48 Merge branch 'fix/apptrace_rb_init_v6.0' into 'release/v6.0'
fix(app_trace): Fix warning in ring buffer initialization (v6.0)

See merge request espressif/esp-idf!46063
2026-03-20 10:36:21 +08:00
Jiang Jiang Jian 37580eaf5d Merge branch 'fix/c61_wp_bp_nums_v6.0' into 'release/v6.0'
Fix number of available BPs/WPs for esp32c61 (v6.0)

See merge request espressif/esp-idf!46032
2026-03-20 10:35:51 +08:00
morris a7650a3260 Merge branch 'feat/add_jpeg_pixel_reverse_enc_etc_v6.0' into 'release/v6.0'
feat(jpeg): Add config for reversing input pixel format in jpeg encoder (backport v6.0)

See merge request espressif/esp-idf!46381
2026-03-20 10:35:35 +08:00
Jiang Jiang Jian 780907b01e Merge branch 'fix/p4_120_suspened_v6.0' into 'release/v6.0'
fix(spi_flash): Fix esp32p4 120m flash suspend failed (backport v6.0)

See merge request espressif/esp-idf!46045
2026-03-20 10:35:05 +08:00
Jiang Jiang Jian 88e7db86d5 Merge branch 'contrib/github_pr_18241_v6.0' into 'release/v6.0'
fix(esp_https_server): SSL context leak when HTTPS server fails to start (GitHub PR) (v6.0)

See merge request espressif/esp-idf!45988
2026-03-20 10:33:57 +08:00
Jiang Jiang Jian 45f2afa1cd Merge branch 'update/spiffs_sync_upstream_6.0' into 'release/v6.0'
change(spiffs): upgrade spiffs module to 0.2-265-gad902ca version (v6.0)

See merge request espressif/esp-idf!45968
2026-03-20 10:33:25 +08:00
Jiang Jiang Jian 2676490557 Merge branch 'feat/fix_esp32c2_rom_rewrite_issue_rebase_v6.0' into 'release/v6.0'
Feat/fix esp32c2 rom rewrite issue rebase (v6.0)

See merge request espressif/esp-idf!45769
2026-03-20 10:30:46 +08:00
Jiang Jiang Jian 95d8c4f9b3 Merge branch 'fix/ble_mesh_blob_issue_fix_v6.0' into 'release/v6.0'
fix(ble_mesh): Miscellaneous fixes for blob (v6.0)

See merge request espressif/esp-idf!45761
2026-03-20 10:30:39 +08:00
Jiang Jiang Jian 9b9dc79038 Merge branch 'change/ble_update_lib_20260127_v6.0' into 'release/v6.0'
change(ble): [AUTO_MR] 20260127 - Update ESP BLE Controller Lib (v6.0)

See merge request espressif/esp-idf!45678
2026-03-20 10:26:31 +08:00