Skip to content

Commit

Permalink
Merge branch 'fix/mbedtls_fs_io_dependency_on_vfs_v5.3' into 'release…
Browse files Browse the repository at this point in the history
…/v5.3'

fix(mbedtls): Fix the MBEDTLS_FS_IO dependency on vfs (v5.3)

See merge request espressif/esp-idf!34269
  • Loading branch information
mahavirj committed Oct 20, 2024
2 parents 4235a07 + 20ab1e8 commit 2d61ea1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/mbedtls/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1175,4 +1175,14 @@ menu "mbedTLS"
the flash footprint and hence care must be taken to keep some reserved space
for the application binary in flash layout.

config MBEDTLS_FS_IO
bool "Enable functions that use the filesystem"
default y
depends on (VFS_SUPPORT_IO && VFS_SUPPORT_DIR) || IDF_TARGET_LINUX
help
This option enables functions in mbedTLS that use the filesystem.
It uses the default filesystem support for the target,
which is added through vfs component for ESP32 based targets or by
the host system when the target is Linux.

endmenu # mbedTLS
6 changes: 6 additions & 0 deletions components/mbedtls/port/include/mbedtls/esp_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,13 @@
*
* Enable functions that use the filesystem.
*/
#if CONFIG_MBEDTLS_FS_IO
#define MBEDTLS_FS_IO
#else
#undef MBEDTLS_FS_IO
#undef MBEDTLS_PSA_ITS_FILE_C
#undef MBEDTLS_PSA_CRYPTO_STORAGE_C
#endif

#ifndef CONFIG_IDF_TARGET_LINUX
/**
Expand Down

0 comments on commit 2d61ea1

Please sign in to comment.