]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - fs/fat/Makefile
FAT: Fix file contents listed as directory
[karo-tx-uboot.git] / fs / fat / Makefile
index bc459662ea3268b2d0d599a0fb7cccefa61e74d6..9635d36fcf9caa4f2023c94b9a48bd08ec13517b 100644 (file)
@@ -24,7 +24,12 @@ include $(TOPDIR)/config.mk
 LIB    = $(obj)libfat.o
 
 AOBJS  =
-COBJS-$(CONFIG_CMD_FAT)        := fat.o file.o
+COBJS-$(CONFIG_CMD_FAT)        := fat.o
+COBJS-$(CONFIG_FAT_WRITE):= fat_write.o
+
+ifndef CONFIG_SPL_BUILD
+COBJS-$(CONFIG_CMD_FAT)        += file.o
+endif
 
 SRCS   := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(AOBJS) $(COBJS-y))