]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/spear/common/Makefile
Merge branch 'master' of git://git.denx.de/u-boot-microblaze
[karo-tx-uboot.git] / board / spear / common / Makefile
index e0df6c1fe677c4da4d786a122db42437246f2697..5c66c3f09294397ad775e5cab401534011de848b 100644 (file)
@@ -29,8 +29,10 @@ endif
 
 LIB    = $(obj)lib$(VENDOR).o
 
+ifndef CONFIG_SPL_BUILD
 COBJS  := spr_misc.o
 SOBJS  := spr_lowlevel_init.o
+endif
 
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
@@ -39,12 +41,6 @@ SOBJS        := $(addprefix $(obj),$(SOBJS))
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
        $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-       rm -f $(SOBJS) $(OBJS)
-
-distclean:     clean
-       rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk