nds32: Support AE3XX platform.
[platform/kernel/u-boot.git] / arch / nds32 / cpu / n1213 / ag101 / Makefile
index fb388f0..07fa942 100644 (file)
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(SOC).o
-
-COBJS-y        := cpu.o timer.o
-
-ifndef CONFIG_SKIP_LOWLEVEL_INIT
-SOBJS  := lowlevel_init.o
-endif
+obj-y  := cpu.o timer.o
+obj-y  += lowlevel_init.o
 
 ifndef CONFIG_SKIP_TRUNOFF_WATCHDOG
-SOBJS  += watchdog.o
+obj-y  += watchdog.o
 endif
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
-
-all:   $(obj).depend $(LIB)
-
-$(LIB):        $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################