blob: 8f36dc0a6de37505ef8b449cd72a6524dfc2152f [file] [log] [blame]
Albert Aribaudac2ba9e2010-06-17 19:36:07 +05301#
Albert ARIBAUD340983d2011-04-22 19:41:02 +02002# Copyright (C) 2010 Albert ARIBAUD <albert.u.boot@aribaud.net>
Albert Aribaudac2ba9e2010-06-17 19:36:07 +05303#
4# Based on original Kirkwood support which is
5# (C) Copyright 2009
6# Marvell Semiconductor <www.marvell.com>
7# Written-by: Prafulla Wadaskar <prafulla@marvell.com>
8#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Albert Aribaudac2ba9e2010-06-17 19:36:07 +053010#
11
12include $(TOPDIR)/config.mk
13
Sebastien Carliera8d426f2010-11-05 15:48:07 +010014LIB = $(obj)lib$(SOC).o
Albert Aribaudac2ba9e2010-06-17 19:36:07 +053015
16COBJS-y = cpu.o
17COBJS-y += dram.o
18COBJS-y += timer.o
19
20ifndef CONFIG_SKIP_LOWLEVEL_INIT
21SOBJS := lowlevel_init.o
22endif
23
24SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
25OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
26
27all: $(obj).depend $(LIB)
28
29$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010030 $(call cmd_link_o_target, $(OBJS))
Albert Aribaudac2ba9e2010-06-17 19:36:07 +053031
32#########################################################################
33
34# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
36
37sinclude $(obj).depend
38
39#########################################################################