Upgrade fatfs component version
This commit is contained in:
+30
-12
@@ -1,16 +1,34 @@
|
||||
idf_build_get_property(target IDF_TARGET)
|
||||
|
||||
set(srcs "diskio/diskio.c"
|
||||
"diskio/diskio_rawflash.c"
|
||||
"diskio/diskio_sdmmc.c"
|
||||
"diskio/diskio_wl.c"
|
||||
"src/ff.c"
|
||||
"port/freertos/ffsystem.c"
|
||||
"src/ffunicode.c"
|
||||
"vfs/vfs_fat.c"
|
||||
"vfs/vfs_fat_sdmmc.c"
|
||||
"vfs/vfs_fat_spiflash.c")
|
||||
"diskio/diskio_rawflash.c"
|
||||
"diskio/diskio_wl.c"
|
||||
"src/ff.c"
|
||||
"src/ffunicode.c")
|
||||
|
||||
set(include_dirs "diskio" "src")
|
||||
|
||||
set(requires "wear_levelling")
|
||||
|
||||
# for linux, we do not have support for vfs and sdmmc, for real targets, add respective sources
|
||||
if(${target} STREQUAL "linux")
|
||||
list(APPEND srcs "port/linux/ffsystem.c")
|
||||
else()
|
||||
list(APPEND srcs "port/freertos/ffsystem.c"
|
||||
"diskio/diskio_sdmmc.c"
|
||||
"vfs/vfs_fat.c"
|
||||
"vfs/vfs_fat_sdmmc.c"
|
||||
"vfs/vfs_fat_spiflash.c")
|
||||
|
||||
list(APPEND include_dirs "vfs")
|
||||
|
||||
list(APPEND requires "sdmmc")
|
||||
|
||||
list(APPEND priv_requires "vfs")
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS ${srcs}
|
||||
INCLUDE_DIRS diskio vfs src
|
||||
REQUIRES wear_levelling sdmmc
|
||||
PRIV_REQUIRES vfs
|
||||
INCLUDE_DIRS ${include_dirs}
|
||||
REQUIRES ${requires}
|
||||
PRIV_REQUIRES ${priv_requires}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user