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
13ifdef CONFIG_SPL_INIT_MINIMAL
14MINIMAL=y
15endif
16endif
17
18obj-y	+= bdinfo.o
19
20ifdef MINIMAL
21obj-y += cache.o time.o
22ifndef CONFIG_TIMER
23obj-y += ticks.o
24endif
25else
26
27obj-y	+= ppcstring.o
28
29obj-y	+= ppccache.o
30ifndef CONFIG_TIMER
31obj-y	+= ticks.o
32endif
33obj-y	+= reloc.o
34
35obj-$(CONFIG_BAT_RW) += bat_rw.o
36obj-$(CONFIG_CMD_BOOTM) += bootm.o
37obj-y	+= cache.o
38obj-y	+= extable.o
39obj-y	+= interrupts.o
40obj-$(CONFIG_CMD_KGDB) += kgdb.o
41obj-y	+= stack.o
42obj-y	+= time.o
43obj-y	+= traps.o
44endif # not minimal
45
46ifdef CONFIG_SPL_BUILD
47obj-$(CONFIG_$(SPL_TPL)_FRAMEWORK) += spl.o
48endif
49