]> git.sur5r.net Git - u-boot/blobdiff - fs/ext2/Makefile
arm: Make jadecpu board use relocation
[u-boot] / fs / ext2 / Makefile
index 8313cdc17c2d7d9b8418038d375b2c0e5e678b73..712e348395bed3108fbc75cdff78e04b169b842b 100644 (file)
@@ -30,10 +30,10 @@ include $(TOPDIR)/config.mk
 LIB    = $(obj)libext2fs.a
 
 AOBJS  =
-COBJS  = ext2fs.o dev.o
+COBJS-$(CONFIG_CMD_EXT2) := ext2fs.o dev.o
 
-SRCS   := $(AOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(AOBJS) $(COBJS))
+SRCS   := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
+OBJS   := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
 
 #CPPFLAGS +=