]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/freescale/p1_p2_rdb_pc/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / board / freescale / p1_p2_rdb_pc / Makefile
CommitLineData
14aa71e6
LY
1#
2# Copyright 2010-2011 Freescale Semiconductor, Inc.
3#
1a459660 4# SPDX-License-Identifier: GPL-2.0+
14aa71e6
LY
5#
6
7include $(TOPDIR)/config.mk
8
9LIB = $(obj)lib$(BOARD).o
10
94a45bb1
SW
11MINIMAL=
12
13ifdef CONFIG_SPL_BUILD
14ifdef CONFIG_SPL_INIT_MINIMAL
15MINIMAL=y
16endif
17endif
18
19ifdef MINIMAL
20
21COBJS-y += spl_minimal.o tlb.o law.o
22
23else
24
14aa71e6
LY
25COBJS-y += $(BOARD).o
26COBJS-y += ddr.o
27COBJS-y += law.o
28COBJS-y += tlb.o
29
94a45bb1
SW
30endif
31
14aa71e6
LY
32SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
33OBJS := $(addprefix $(obj),$(COBJS-y))
34SOBJS := $(addprefix $(obj),$(SOBJS))
35
36$(LIB): $(obj).depend $(OBJS) $(SOBJS)
37 $(call cmd_link_o_target, $(OBJS))
38
14aa71e6
LY
39#########################################################################
40
41# defines $(obj).depend target
42include $(SRCTREE)/rules.mk
43
44sinclude $(obj).depend
45
46#########################################################################