]> git.sur5r.net Git - u-boot/blobdiff - arch/mips/lib/Makefile
Merge branch 'master' of git://git.denx.de/u-boot-i2c
[u-boot] / arch / mips / lib / Makefile
index f91406c06002cd31e064fc3d3ea5cc67132dafcd..659c6ad187cdfd025caaa75e4fc000ae6d50a63b 100644 (file)
@@ -5,46 +5,12 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
+obj-y  += cache.o
+obj-y  += cache_init.o
+obj-y  += genex.o
+obj-y  += stack.o
+obj-y  += traps.o
 
-LIB    = $(obj)lib$(ARCH).o
+obj-$(CONFIG_CMD_BOOTM) += bootm.o
 
-## Build a couple of necessary functions into a private libgcc
-LIBGCC = $(obj)libgcc.o
-GLSOBJS        += ashldi3.o
-GLSOBJS        += ashrdi3.o
-GLSOBJS        += lshrdi3.o
-LGOBJS := $(addprefix $(obj),$(GLSOBJS))
-
-SOBJS-y        +=
-
-COBJS-y        += board.o
-COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
-
-SRCS   := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
-
-# Always build libmips.o
-TARGETS        := $(LIB)
-
-# Build private libgcc only when asked for
-ifdef USE_PRIVATE_LIBGCC
-TARGETS        += $(LIBGCC)
-endif
-
-all:   $(TARGETS)
-
-$(LIB):        $(obj).depend $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-$(LIBGCC): $(obj).depend $(LGOBJS)
-       $(call cmd_link_o_target, $(LGOBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
+lib-$(CONFIG_USE_PRIVATE_LIBGCC) += ashldi3.o ashrdi3.o lshrdi3.o