]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib_sh/Makefile
[Makefile] Sort COBJS in lib_<arch> Makefiles
[karo-tx-uboot.git] / lib_sh / Makefile
index edb03d008294b39a1ca237f4294d46e9f6de27b8..a5772a013d94ad4276d076d4bab02de99ed1fff7 100644 (file)
@@ -22,12 +22,14 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(ARCH).a
 
-SOBJS  =
+SOBJS-y        +=
 
-COBJS  = board.o bootm.o # time.o
+COBJS-y        += board.o
+COBJS-y        += bootm.o
+#COBJS-y       += time.o
 
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
+SRCS   := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 
 $(LIB):        $(obj).depend $(OBJS)
        $(AR) $(ARFLAGS) $@ $(OBJS)