software/liblitesdcard: create fat directory for FatFs files.

This commit is contained in:
Florent Kermarrec 2020-06-09 13:44:26 +02:00
parent f1aba7e45c
commit a9e8860e49
8 changed files with 6 additions and 3 deletions

View File

@ -30,7 +30,7 @@
#include <liblitesdcard/spisdcard.h> #include <liblitesdcard/spisdcard.h>
#include <liblitesdcard/sdcard.h> #include <liblitesdcard/sdcard.h>
#include <liblitesdcard/ff.h> #include <liblitesdcard/fat/ff.h>
extern void boot_helper(unsigned long r1, unsigned long r2, unsigned long r3, unsigned long addr); extern void boot_helper(unsigned long r1, unsigned long r2, unsigned long r3, unsigned long addr);

View File

@ -14,6 +14,9 @@ liblitesdcard.a: $(OBJECTS)
%.o: $(LIBLITESDCARD_DIRECTORY)/%.c %.o: $(LIBLITESDCARD_DIRECTORY)/%.c
$(compile) $(compile)
%.o: $(LIBLITESDCARD_DIRECTORY)/fat/%.c
$(compile)
%.o: %.S %.o: %.S
$(assemble) $(assemble)

View File

@ -12,8 +12,8 @@
#include <generated/mem.h> #include <generated/mem.h>
#include <system.h> #include <system.h>
#include "ff.h" #include "fat/ff.h"
#include "diskio.h" #include "fat/diskio.h"
#include "spisdcard.h" #include "spisdcard.h"
#ifdef CSR_SPISDCARD_BASE #ifdef CSR_SPISDCARD_BASE