[esp32] Document advanced VFS options for flash optimization #5507
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Description:
Documents the new advanced ESP-IDF framework configuration options for disabling unused VFS (Virtual File System) features, saving approximately 5 KB of flash memory by default.
This documentation PR adds details for three new options under
esp32.framework.advanced:disable_vfs_support_termios(default:true) - Disables VFS support for termios functions, saving ~1.8 KBdisable_vfs_support_select(default:true) - Disables VFS support for select() with file descriptors, saving ~2.7 KBdisable_vfs_support_dir(default:true) - Disables VFS support for directory functions, saving ~0.5 KBThese optimizations are safe because:
lwip_select()for socket operations, which works independently of VFS selectrequire_vfs_select()orrequire_vfs_dir()helpersRelated issue (if applicable): N/A
Pull request in esphome with YAML changes (if applicable):
Checklist:
I am merging into
nextbecause this is new documentation that has a matching pull-request in esphome as linked above.or
I am merging into
currentbecause this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.Link added in
/components/index.rstwhen creating new documents for new components or cookbook.