Skip to content

Commit

Permalink
Add option to configure FATFS_USE_LABEL in menuconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Burnett committed Nov 11, 2023
1 parent c824346 commit 0a79d13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions components/fatfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,10 @@ menu "FAT Filesystem support"
vfs_fat_pwrite(), vfs_fat_link(), vfs_fat_truncate() and vfs_fat_ftruncate() functions.
This feature improves file-consistency and size reporting accuracy for the FatFS,
at a price on decreased performance due to frequent disk operations

config FATFS_USE_LABEL
bool "Use FATFS volume label"
default n
help
Allows FATFS volume label to be specified using f_setlabel
endmenu
2 changes: 1 addition & 1 deletion components/fatfs/src/ffconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
/ (0:Disable or 1:Enable) Also FF_FS_READONLY needs to be 0 to enable this option. */


#define FF_USE_LABEL 0
#define FF_USE_LABEL CONFIG_FATFS_USE_LABEL
/* This option switches volume label functions, f_getlabel() and f_setlabel().
/ (0:Disable or 1:Enable) */

Expand Down

0 comments on commit 0a79d13

Please sign in to comment.