Skip to content

Commit 77f22ea

Browse files
committed
Remove bundled ff14b; use lib-fatfs
Switch to the external lib-fatfs package and remove the bundled FatFs sources. Updated Includes.mk to reference ../lib-fatfs for USB_HOST_MSC, and simplified lib-hal/Rules.mk by removing the FATFS detection block that added ff14b and posix to EXTRA_SRCDIR (and the extra posix include). Deleted the ff14b tree (license, readme, history and source files) and lib-hal/posix/file.cpp to avoid shipping a duplicate/embedded FatFs implementation and rely on the shared lib-fatfs instead.
1 parent 1307c4a commit 77f22ea

12 files changed

Lines changed: 1 addition & 24466 deletions

File tree

common/make/gd32/Includes.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ ifeq ($(findstring gd32h7xx,$(FAMILY)), gd32h7xx)
9595
endif
9696

9797
ifdef USB_HOST_MSC
98-
INCLUDES+=-I../lib-hal/ff14b/source
98+
INCLUDES+=-I../lib-fatfs
9999
endif
100100

101101
INCLUDES:= $(strip -I../${PROJECT}/include $(sort $(INCLUDES)))

lib-hal/Rules.mk

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,6 @@ ifneq ($(MAKE_FLAGS),)
1818
endif
1919
endif
2020

21-
FATFS=
22-
ifeq ($(findstring CONFIG_USB_HOST_MSC,$(MAKE_FLAGS)), CONFIG_USB_HOST_MSC)
23-
FATFS=1
24-
endif
25-
26-
ifeq (,$(findstring DISABLE_FS,$(MAKE_FLAGS)))
27-
FATFS=1
28-
endif
29-
30-
ifdef FATFS
31-
EXTRA_SRCDIR+=ff14b/source
32-
EXTRA_SRCDIR+=posix
33-
endif
34-
3521
ifeq (,$(findstring DISABLE_RTC,$(MAKE_FLAGS)))
3622
EXTRA_SRCDIR+=rtc
3723
ifneq (,$(findstring DISABLE_INTERNAL_RTC,$(MAKE_FLAGS)))
@@ -56,8 +42,6 @@ else
5642
DEFINES+=DEBUG_I2C DEBUG_STACK DEBUG_POSIX
5743
EXTRA_INCLUDES+=debug/i2c debug/stack
5844
EXTRA_SRCDIR+=console/i2c console/null console/uart0
59-
EXTRA_SRCDIR+=posix
6045
EXTRA_SRCDIR+=rtc rtc/i2c
6146
EXTRA_SRCDIR+=superloop
62-
EXTRA_INCLUDES+=
6347
endif

lib-hal/ff14b/LICENSE.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)