]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/cpu/arm926ejs/spear/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / arm / cpu / arm926ejs / spear / Makefile
CommitLineData
81c0ebf6
VK
1#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
1a459660 5# SPDX-License-Identifier: GPL-2.0+
81c0ebf6
VK
6#
7
8include $(TOPDIR)/config.mk
9
6d8962e8 10LIB = $(obj)lib$(SOC).o
81c0ebf6 11
4ae8bc43 12COBJS-y := cpu.o \
962d026b 13 reset.o \
81c0ebf6 14 timer.o
81c0ebf6 15
4ae8bc43
SR
16ifdef CONFIG_SPL_BUILD
17COBJS-y += spl.o spl_boot.o
18COBJS-$(CONFIG_SPEAR600) += spear600.o
19COBJS-$(CONFIG_DDR_MT47H64M16) += spr600_mt47h64m16_3_333_cl5_psync.o
20COBJS-$(CONFIG_DDR_MT47H32M16) += spr600_mt47h32m16_333_cl5_psync.o
21COBJS-$(CONFIG_DDR_MT47H32M16) += spr600_mt47h32m16_37e_166_cl4_sync.o
22COBJS-$(CONFIG_DDR_MT47H128M8) += spr600_mt47h128m8_3_266_cl5_async.o
23endif
81c0ebf6 24
4ae8bc43
SR
25SRCS := $(START:.o=.S) $(COBJS-y:.o=.c)
26OBJS := $(addprefix $(obj),$(COBJS-y))
27START := $(addprefix $(obj),$(START))
28
29all: $(obj).depend $(LIB)
30
31$(LIB): $(OBJS)
32 $(call cmd_link_o_target, $(OBJS))
81c0ebf6 33
81c0ebf6
VK
34#########################################################################
35
36# defines $(obj).depend target
37include $(SRCTREE)/rules.mk
38
39sinclude $(obj).depend
40
41#########################################################################