Skip to content

Commit d8ab303

Browse files
committed
FATFS is now fetched dynamically.
1 parent fdfdd79 commit d8ab303

File tree

19 files changed

+353
-24270
lines changed

19 files changed

+353
-24270
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,6 @@ library, written by Maxim Semanarev (and others). It is licensed under the
237237
terms of the 3-clause BSD license. Please see the contents of the directory for
238238
the full text. It's been lightly modified by me.
239239

240-
As an exception, `dep/fatfs` contains the fatfs library, taken from
241-
http://elm-chan.org/fsw/ff/00index_e.html. It is single-clause BSD licensed.
242-
Please see the contents of the directory for the full text.
243-
244240
As an exception, `dep/adflib` contains the adflib library, written by Laurent
245241
Clevy et al, taken from https://github.com/lclevy/ADFlib. It is GPL 2.0
246242
licensed. Please see the contents of the directory for the full text.

dep/build.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,30 @@
920920
],
921921
)
922922

923+
clibrary(
924+
name="fatfs_lib",
925+
srcs=[
926+
"dep/r/fatfs/source/ff.c",
927+
"dep/r/fatfs/source/ffsystem.c",
928+
"dep/r/fatfs/source/ffunicode.c",
929+
"dep/r/fatfs/source/ff.h",
930+
],
931+
hdrs={
932+
"ff.h": "dep/r/fatfs/source/ff.h",
933+
"ffconf.h": "dep/ffconf.h",
934+
"diskio.h": "dep/r/fatfs/source/diskio.h",
935+
},
936+
cflags=["-Wno-pointer-sign"],
937+
deps=[
938+
git_repository(
939+
name="fatfs_repo",
940+
url="https://github.com/davidgiven/fatfs",
941+
branch="R0.14b-fluxengine",
942+
path="dep/r/fatfs",
943+
)
944+
],
945+
)
946+
923947
git_repository(
924948
name="imhex_repo",
925949
url="https://github.com/davidgiven/ImHex",

dep/fatfs/LICENSE.txt

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

dep/fatfs/UPSTREAM.md

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

dep/fatfs/build.py

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

0 commit comments

Comments
 (0)