]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/sh/cpu/sh2/Makefile
sh: convert makefiles to Kbuild style
[karo-tx-uboot.git] / arch / sh / cpu / sh2 / Makefile
index 686bb7910aa35e044f7b9e2311bb2c3aa20224b9..a19ed5ecf59a56c1ce93de3d5ce2944cb64e9a6e 100644 (file)
@@ -8,27 +8,5 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(CPU).o
-
-START  = start.o
-COBJS  = cpu.o interrupts.o watchdog.o
-
-SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS    := $(addprefix $(obj),$(COBJS))
-SOBJS   := $(addprefix $(obj),$(SOBJS))
-
-all:    $(START) $(LIB)
-
-$(LIB):        $(OBJS) $(SOBJS)
-       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
+extra-y        = start.o
+obj-y  = cpu.o interrupts.o watchdog.o