board: powerpc: convert makefiles to Kbuild style
[oweals/u-boot.git] / board / esd / ocrtc / Makefile
index b8452582be5d651968884863d3f20317b851af1f..0d9a6fdc437fed686d799ef076b2c66effe449c4 100644 (file)
@@ -5,27 +5,8 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
 ifneq ($(OBJTREE),$(SRCTREE))
 $(shell mkdir -p $(obj)../common)
 endif
 
-LIB    = $(obj)lib$(BOARD).o
-
-COBJS  = $(BOARD).o flash.o ../common/misc.o cmd_ocrtc.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS))
-SOBJS  := $(addprefix $(obj),$(SOBJS))
-
-$(LIB):        $(OBJS) $(SOBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
+obj-y  = ocrtc.o flash.o ../common/misc.o cmd_ocrtc.o