]> git.sur5r.net Git - u-boot/blobdiff - board/ti/sdp4430/Makefile
Merge branch 'for-v2013.04'
[u-boot] / board / ti / sdp4430 / Makefile
index f1ee5448eda2ed54c18d1fc2474dee244fc189a4..72ad3eb07fef6a08c09b34760708a449b991f69f 100644 (file)
@@ -25,7 +25,11 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(BOARD).o
 
-COBJS  := sdp.o cmd_bat.o
+COBJS  := sdp.o
+
+ifndef CONFIG_SPL_BUILD
+COBJS  += cmd_bat.o
+endif
 
 SRCS   := $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
@@ -33,12 +37,6 @@ OBJS := $(addprefix $(obj),$(COBJS))
 $(LIB):        $(obj).depend $(OBJS)
        $(call cmd_link_o_target, $(OBJS))
 
-clean:
-       rm -f $(OBJS)
-
-distclean:     clean
-       rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target