summaryrefslogtreecommitdiff
path: root/fs/fat/Makefile
diff options
context:
space:
mode:
authorDonggeun Kim <dg77.kim@samsung.com>2011-10-24 21:15:28 +0000
committerWolfgang Denk <wd@denx.de>2011-10-26 21:40:44 +0200
commitc30a15e590c7e5bfd27e4704c81648071f11d51f (patch)
tree3dfb06047dccb50fbf1555ff48a5396ea5317488 /fs/fat/Makefile
parenteea63e05d0b7f54e7aa39725015483972c71cb3c (diff)
downloadu-boot-imx-c30a15e590c7e5bfd27e4704c81648071f11d51f.zip
u-boot-imx-c30a15e590c7e5bfd27e4704c81648071f11d51f.tar.gz
u-boot-imx-c30a15e590c7e5bfd27e4704c81648071f11d51f.tar.bz2
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 <dg77.kim@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'fs/fat/Makefile')
-rw-r--r--fs/fat/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fat/Makefile b/fs/fat/Makefile
index 93b6f07..9635d36 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