]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/microblaze/cpu/Makefile
microblaze: convert makefiles to Kbuild style
[karo-tx-uboot.git] / arch / microblaze / cpu / Makefile
index d0931f8495397136d4ffa40b0805e1ee39e754a2..6e201f2d5404be5b382647d71fa5fbf55894024a 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  = irq.o
-COBJS  = cpu.o interrupts.o cache.o exception.o timer.o
-
-SRCS   := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
-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  = irq.o
+obj-y  += cpu.o interrupts.o cache.o exception.o timer.o