1# SPDX-License-Identifier: GPL-2.0+
2#
3# (C) Copyright 2000-2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5
6## Build a couple of necessary functions into a private libgcc
7## if the user asked for it
8lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o
9
10MINIMAL=
11
12ifdef CONFIG_SPL_BUILD
13ifndef CONFIG_TPL_BUILD
14ifdef CONFIG_SPL_INIT_MINIMAL
15MINIMAL=y
16endif
17endif
18endif
19
20obj-y	+= bdinfo.o
21
22ifdef MINIMAL
23obj-y += cache.o time.o
24ifndef CONFIG_TIMER
25obj-y += ticks.o
26endif
27else
28
29obj-y	+= ppcstring.o
30
31obj-y	+= ppccache.o
32ifndef CONFIG_TIMER
33obj-y	+= ticks.o
34endif
35obj-y	+= reloc.o
36
37obj-$(CONFIG_CMD_BOOTM) += bootm.o
38obj-y	+= cache.o
39obj-y	+= extable.o
40obj-y	+= interrupts.o
41obj-$(CONFIG_CMD_KGDB) += kgdb.o
42obj-y	+= stack.o
43obj-y	+= time.o
44obj-y	+= traps.o
45endif # not minimal
46
47ifdef CONFIG_SPL_BUILD
48obj-$(CONFIG_$(SPL_TPL)_FRAMEWORK) += spl.o
49endif
50