3 # Marvell Semiconductor <www.marvell.com>
4 # Written-by: Prafulla Wadaskar <prafulla@marvell.com>
6 # Copyright (C) 2011 Andes Technology Corporation
7 # Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
8 # Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
10 # SPDX-License-Identifier: GPL-2.0+
13 include $(TOPDIR)/config.mk
15 LIB = $(obj)lib$(SOC).o
17 COBJS-y := cpu.o timer.o
19 ifndef CONFIG_SKIP_LOWLEVEL_INIT
20 SOBJS := lowlevel_init.o
23 ifndef CONFIG_SKIP_TRUNOFF_WATCHDOG
27 SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
28 OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
30 all: $(obj).depend $(LIB)
33 $(call cmd_link_o_target, $(OBJS))
35 #########################################################################
37 # defines $(obj).depend target
38 include $(SRCTREE)/rules.mk
40 sinclude $(obj).depend
42 #########################################################################