blob: c00681f31bcdaae9635c2080e483bd7a2a70a918 [file] [log] [blame]
wdenk7a428cc2003-06-15 22:40:42 +00001#
2#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02003# SPDX-License-Identifier: GPL-2.0+
wdenk7a428cc2003-06-15 22:40:42 +00004#
5
wdenk7a428cc2003-06-15 22:40:42 +00006include $(TOPDIR)/config.mk
7
Sebastien Carliera8d426f2010-11-05 15:48:07 +01008LIB = $(obj)libfat.o
wdenk7a428cc2003-06-15 22:40:42 +00009
10AOBJS =
Stephen Warren4f8662d2012-10-22 06:43:50 +000011COBJS-$(CONFIG_FS_FAT) := fat.o
Donggeun Kim8f814002011-10-24 21:15:28 +000012COBJS-$(CONFIG_FAT_WRITE):= fat_write.o
Aneesh V55fc5b62011-07-13 05:11:06 +000013
14ifndef CONFIG_SPL_BUILD
Stephen Warren4f8662d2012-10-22 06:43:50 +000015COBJS-$(CONFIG_FS_FAT) += file.o
Aneesh V55fc5b62011-07-13 05:11:06 +000016endif
wdenk7a428cc2003-06-15 22:40:42 +000017
Jean-Christophe PLAGNIOL-VILLARD39b9fc92008-08-31 04:24:56 +020018SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
19OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
wdenk7a428cc2003-06-15 22:40:42 +000020
21all: $(LIB) $(AOBJS)
22
Marian Balakowiczd62379d2006-09-01 19:49:50 +020023$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
wdenk7a428cc2003-06-15 22:40:42 +000025
Albert ARIBAUDd6d4ec82012-10-09 09:28:15 +000026# SEE README.arm-unaligned-accesses
27$(obj)file.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
wdenk7a428cc2003-06-15 22:40:42 +000028
29#########################################################################
30
Marian Balakowiczd62379d2006-09-01 19:49:50 +020031# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
wdenk7a428cc2003-06-15 22:40:42 +000033
Marian Balakowiczd62379d2006-09-01 19:49:50 +020034sinclude $(obj).depend
wdenk7a428cc2003-06-15 22:40:42 +000035
36#########################################################################