]> git.sur5r.net Git - u-boot/blobdiff - lib_mips/Makefile
ZOOM2 detect the version of the zoom2 board at runtime.
[u-boot] / lib_mips / Makefile
index e2ac99914119214e0fb7d6b23dacc946505d9917..7967e5803a3be283c3093dd662a69a6e7e076d43 100644 (file)
@@ -25,15 +25,21 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(ARCH).a
 
-SOBJS  =
+SOBJS-y        +=
 
-COBJS  = board.o time.o mips_linux.o
+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:.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) crv $@ $(OBJS)
+       $(AR) $(ARFLAGS) $@ $(OBJS)
 
 #########################################################################