xref: /openbmc/u-boot/arch/powerpc/lib/Makefile (revision 872cfa20)
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
18ifdef MINIMAL
19obj-y += cache.o time.o
20ifndef CONFIG_TIMER
21obj-y += ticks.o
22endif
23else
24
25obj-y	+= ppcstring.o
26
27obj-y	+= ppccache.o
28ifndef CONFIG_TIMER
29obj-y	+= ticks.o
30endif
31obj-y	+= reloc.o
32
33obj-$(CONFIG_BAT_RW) += bat_rw.o
34obj-$(CONFIG_CMD_BOOTM) += bootm.o
35obj-y	+= cache.o
36obj-y	+= extable.o
37obj-y	+= interrupts.o
38obj-$(CONFIG_CMD_KGDB) += kgdb.o
39obj-y	+= stack.o
40obj-y	+= time.o
41endif # not minimal
42
43ifdef CONFIG_SPL_BUILD
44obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
45endif
46