From c30a15e590c7e5bfd27e4704c81648071f11d51f Mon Sep 17 00:00:00 2001 From: Donggeun Kim Date: Mon, 24 Oct 2011 21:15:28 +0000 Subject: FAT: Add FAT write feature In some cases, saving data in RAM as a file with FAT format is required. This patch allows the file to be written in FAT formatted partition. The usage is similar with reading a file. First, fat_register_device function is called before file_fat_write function in order to set target partition. Then, file_fat_write function is invoked with desired file name, start ram address for writing data, and file size. Signed-off-by: Donggeun Kim Signed-off-by: Kyungmin Park --- fs/fat/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'fs/fat/Makefile') diff --git a/fs/fat/Makefile b/fs/fat/Makefile index 93b6f07389..9635d36fcf 100644 --- a/fs/fat/Makefile +++ b/fs/fat/Makefile @@ -25,6 +25,7 @@ LIB = $(obj)libfat.o AOBJS = COBJS-$(CONFIG_CMD_FAT) := fat.o +COBJS-$(CONFIG_FAT_WRITE):= fat_write.o ifndef CONFIG_SPL_BUILD COBJS-$(CONFIG_CMD_FAT) += file.o -- cgit v1.2.1