Albert Aribaud | ac2ba9e | 2010-06-17 19:36:07 +0530 | [diff] [blame] | 1 | # |
Albert ARIBAUD | 340983d | 2011-04-22 19:41:02 +0200 | [diff] [blame] | 2 | # Copyright (C) 2010 Albert ARIBAUD <albert.u.boot@aribaud.net> |
Albert Aribaud | ac2ba9e | 2010-06-17 19:36:07 +0530 | [diff] [blame] | 3 | # |
| 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 Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | # SPDX-License-Identifier: GPL-2.0+ |
Albert Aribaud | ac2ba9e | 2010-06-17 19:36:07 +0530 | [diff] [blame] | 10 | # |
| 11 | |
| 12 | include $(TOPDIR)/config.mk |
| 13 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 14 | LIB = $(obj)lib$(SOC).o |
Albert Aribaud | ac2ba9e | 2010-06-17 19:36:07 +0530 | [diff] [blame] | 15 | |
| 16 | COBJS-y = cpu.o |
| 17 | COBJS-y += dram.o |
| 18 | COBJS-y += timer.o |
| 19 | |
| 20 | ifndef CONFIG_SKIP_LOWLEVEL_INIT |
| 21 | SOBJS := lowlevel_init.o |
| 22 | endif |
| 23 | |
| 24 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 25 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y)) |
| 26 | |
| 27 | all: $(obj).depend $(LIB) |
| 28 | |
| 29 | $(LIB): $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 30 | $(call cmd_link_o_target, $(OBJS)) |
Albert Aribaud | ac2ba9e | 2010-06-17 19:36:07 +0530 | [diff] [blame] | 31 | |
| 32 | ######################################################################### |
| 33 | |
| 34 | # defines $(obj).depend target |
| 35 | include $(SRCTREE)/rules.mk |
| 36 | |
| 37 | sinclude $(obj).depend |
| 38 | |
| 39 | ######################################################################### |