diff options
Diffstat (limited to 'fs/fat/Makefile')
-rw-r--r-- | fs/fat/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/fat/Makefile b/fs/fat/Makefile index bc459662ea..93b6f07389 100644 --- a/fs/fat/Makefile +++ b/fs/fat/Makefile @@ -24,7 +24,11 @@ include $(TOPDIR)/config.mk LIB = $(obj)libfat.o AOBJS = -COBJS-$(CONFIG_CMD_FAT) := fat.o file.o +COBJS-$(CONFIG_CMD_FAT) := fat.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)) |