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))
$(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