]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib_sh/Makefile
galaxy5200: change cs1 configuration
[karo-tx-uboot.git] / lib_sh / Makefile
index cf127a826c0c616ed8e6a9fec68a24980b10540b..f7c6479426d74458108d442baa55a01e313c3adf 100644 (file)
@@ -22,12 +22,18 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(ARCH).a
 
-SOBJS  =
-
-COBJS  = board.o sh_linux.o # time.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
+SOBJS-y        +=
+
+COBJS-y        += board.o
+COBJS-y        += bootm.o
+ifeq ($(CONFIG_SH2),y)
+COBJS-y        += time_sh2.o
+else
+COBJS-y        += time.o
+endif
+
+SRCS   := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 
 $(LIB):        $(obj).depend $(OBJS)
        $(AR) $(ARFLAGS) $@ $(OBJS)