feat(radio): add conditional exFAT support (#7352)
This commit is contained in:
@@ -59,6 +59,7 @@ else()
|
||||
option(USBJ_EX "Enable USB Joystick Extension" ON)
|
||||
endif()
|
||||
option(AUDIO "Enable audio" ON)
|
||||
option(EXFAT "Enable exFAT filesystem support in FatFs" OFF)
|
||||
|
||||
if(NATIVE_BUILD)
|
||||
option(ALL_LANGUAGES "Enable runtime language selection" ON)
|
||||
|
||||
@@ -27,6 +27,10 @@ endif()
|
||||
|
||||
include_directories(${FATFS_DIR} ${FATFS_DIR}/option)
|
||||
|
||||
if(EXFAT)
|
||||
add_definitions(-DFF_FS_EXFAT=1)
|
||||
endif()
|
||||
|
||||
set(BOOTLOADER_SRC ${BOOTLOADER_SRC}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/hal/key_driver.cpp
|
||||
)
|
||||
|
||||
Vendored
+2
@@ -238,7 +238,9 @@
|
||||
/ buffer in the filesystem object (FATFS) is used for the file data transfer. */
|
||||
|
||||
|
||||
#ifndef FF_FS_EXFAT
|
||||
#define FF_FS_EXFAT 0
|
||||
#endif
|
||||
/* This option switches support for exFAT filesystem. (0:Disable or 1:Enable)
|
||||
/ To enable exFAT, also LFN needs to be enabled. (FF_USE_LFN >= 1)
|
||||
/ Note that enabling exFAT discards ANSI C (C89) compatibility. */
|
||||
|
||||
Reference in New Issue
Block a user