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