X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=lib_mips%2FMakefile;h=7967e5803a3be283c3093dd662a69a6e7e076d43;hb=5f58f8d20f97deaf4dde7eb3886efa3e5a3715ee;hp=e2ac99914119214e0fb7d6b23dacc946505d9917;hpb=4bbd4537835f72b5c46ca6efb38143e431b3dbd5;p=oweals%2Fu-boot.git diff --git a/lib_mips/Makefile b/lib_mips/Makefile index e2ac999141..7967e5803a 100644 --- a/lib_mips/Makefile +++ b/lib_mips/Makefile @@ -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) #########################################################################