X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib_mips%2FMakefile;h=7967e5803a3be283c3093dd662a69a6e7e076d43;hb=bcc121a01608042066a19ab5bff5bcfb805bf406;hp=93cca7a2395b2b40e620a930ef57af8361362eb2;hpb=4a995edec1ac163d9326d143ffe2b47e7543407f;p=u-boot diff --git a/lib_mips/Makefile b/lib_mips/Makefile index 93cca7a239..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 bootm.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)