From a9e8860e49b4af2f26b6d23e94193666e85f50f5 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 9 Jun 2020 13:44:26 +0200 Subject: [PATCH] software/liblitesdcard: create fat directory for FatFs files. --- litex/soc/software/bios/boot.c | 2 +- litex/soc/software/liblitesdcard/Makefile | 3 +++ litex/soc/software/liblitesdcard/{ => fat}/diskio.h | 0 litex/soc/software/liblitesdcard/{ => fat}/ff.c | 0 litex/soc/software/liblitesdcard/{ => fat}/ff.h | 0 litex/soc/software/liblitesdcard/{ => fat}/ffconf.h | 0 litex/soc/software/liblitesdcard/{ => fat}/ffunicode.c | 0 litex/soc/software/liblitesdcard/spisdcard.c | 4 ++-- 8 files changed, 6 insertions(+), 3 deletions(-) rename litex/soc/software/liblitesdcard/{ => fat}/diskio.h (100%) rename litex/soc/software/liblitesdcard/{ => fat}/ff.c (100%) rename litex/soc/software/liblitesdcard/{ => fat}/ff.h (100%) rename litex/soc/software/liblitesdcard/{ => fat}/ffconf.h (100%) rename litex/soc/software/liblitesdcard/{ => fat}/ffunicode.c (100%) diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index 19d1284c..3ea1d953 100644 --- a/litex/soc/software/bios/boot.c +++ b/litex/soc/software/bios/boot.c @@ -30,7 +30,7 @@ #include #include -#include +#include extern void boot_helper(unsigned long r1, unsigned long r2, unsigned long r3, unsigned long addr); diff --git a/litex/soc/software/liblitesdcard/Makefile b/litex/soc/software/liblitesdcard/Makefile index 6c0488de..8c409f40 100644 --- a/litex/soc/software/liblitesdcard/Makefile +++ b/litex/soc/software/liblitesdcard/Makefile @@ -14,6 +14,9 @@ liblitesdcard.a: $(OBJECTS) %.o: $(LIBLITESDCARD_DIRECTORY)/%.c $(compile) +%.o: $(LIBLITESDCARD_DIRECTORY)/fat/%.c + $(compile) + %.o: %.S $(assemble) diff --git a/litex/soc/software/liblitesdcard/diskio.h b/litex/soc/software/liblitesdcard/fat/diskio.h similarity index 100% rename from litex/soc/software/liblitesdcard/diskio.h rename to litex/soc/software/liblitesdcard/fat/diskio.h diff --git a/litex/soc/software/liblitesdcard/ff.c b/litex/soc/software/liblitesdcard/fat/ff.c similarity index 100% rename from litex/soc/software/liblitesdcard/ff.c rename to litex/soc/software/liblitesdcard/fat/ff.c diff --git a/litex/soc/software/liblitesdcard/ff.h b/litex/soc/software/liblitesdcard/fat/ff.h similarity index 100% rename from litex/soc/software/liblitesdcard/ff.h rename to litex/soc/software/liblitesdcard/fat/ff.h diff --git a/litex/soc/software/liblitesdcard/ffconf.h b/litex/soc/software/liblitesdcard/fat/ffconf.h similarity index 100% rename from litex/soc/software/liblitesdcard/ffconf.h rename to litex/soc/software/liblitesdcard/fat/ffconf.h diff --git a/litex/soc/software/liblitesdcard/ffunicode.c b/litex/soc/software/liblitesdcard/fat/ffunicode.c similarity index 100% rename from litex/soc/software/liblitesdcard/ffunicode.c rename to litex/soc/software/liblitesdcard/fat/ffunicode.c diff --git a/litex/soc/software/liblitesdcard/spisdcard.c b/litex/soc/software/liblitesdcard/spisdcard.c index 6b10ff16..9b66f702 100644 --- a/litex/soc/software/liblitesdcard/spisdcard.c +++ b/litex/soc/software/liblitesdcard/spisdcard.c @@ -12,8 +12,8 @@ #include #include -#include "ff.h" -#include "diskio.h" +#include "fat/ff.h" +#include "fat/diskio.h" #include "spisdcard.h" #ifdef CSR_SPISDCARD_BASE -- 2.30.2