X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib_mips%2FMakefile;h=7967e5803a3be283c3093dd662a69a6e7e076d43;hb=2f103ee284e68934a648732db5e0b6ceb4a1ed8f;hp=3163f00e011cbb5561ea323bb63bd56a97bfa34c;hpb=dfc8a9ee0040e53ada125a3c52f241e37f09cf28;p=u-boot diff --git a/lib_mips/Makefile b/lib_mips/Makefile index 3163f00e01..7967e5803a 100644 --- a/lib_mips/Makefile +++ b/lib_mips/Makefile @@ -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)