]> git.sur5r.net Git - u-boot/blobdiff - lib_mips/Makefile
Prepare v2009.11.1
[u-boot] / lib_mips / Makefile
index 3163f00e011cbb5561ea323bb63bd56a97bfa34c..7967e5803a3be283c3093dd662a69a6e7e076d43 100644 (file)
@@ -25,12 +25,18 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(ARCH).a
 
-SOBJS  =
-
-COBJS  = board.o time.o mips_linux.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
+SOBJS-y        +=
+
+COBJS-y        += board.o
+ifeq ($(CONFIG_QEMU_MIPS),y)
+COBJS-y        += bootm_qemu_mips.o
+else
+COBJS-y        += bootm.o
+endif
+COBJS-y        += time.o
+
+SRCS   := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 
 $(LIB):        $(obj).depend $(OBJS)
        $(AR) $(ARFLAGS) $@ $(OBJS)