]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/mips/cpu/mips32/Makefile
mips: convert makefiles to Kbuild style
[people/ms/u-boot.git] / arch / mips / cpu / mips32 / Makefile
index 1974034dfbd7b24b5658465e9aa8bc3cf995a391..e0e6309c6f04e44c62825e02c9641c6adf51fb59 100644 (file)
@@ -5,28 +5,6 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(CPU).o
-
-START  = start.o
-SOBJS-y        = cache.o
-COBJS-y        = cpu.o interrupts.o time.o
-
-SRCS   := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
-START  := $(addprefix $(obj),$(START))
-
-all:   $(obj).depend $(START) $(LIB)
-
-$(LIB):        $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
+extra-y        = start.o
+obj-y  = cache.o
+obj-y  += cpu.o interrupts.o time.o