xref: /openbmc/u-boot/arch/powerpc/lib/Makefile (revision bf9012b8)
1#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8## Build a couple of necessary functions into a private libgcc
9## if the user asked for it
10lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o
11
12MINIMAL=
13
14ifdef CONFIG_SPL_BUILD
15ifdef CONFIG_SPL_INIT_MINIMAL
16MINIMAL=y
17endif
18endif
19
20obj-$(CONFIG_SYS_EXTBDINFO) += setup.o
21ifdef MINIMAL
22obj-y += cache.o time.o
23obj-y += ticks.o
24else
25
26obj-y	+= ppcstring.o
27
28obj-y	+= ppccache.o
29obj-y	+= ticks.o
30obj-y	+= reloc.o
31
32obj-$(CONFIG_BAT_RW) += bat_rw.o
33obj-$(CONFIG_CMD_BOOTM) += bootm.o
34obj-y	+= cache.o
35obj-y	+= extable.o
36obj-$(CONFIG_CMD_IMMAP) += immap.o
37obj-y	+= interrupts.o
38obj-$(CONFIG_CMD_KGDB) += kgdb.o
39obj-$(CONFIG_IDE) += ide.o
40obj-y	+= stack.o
41obj-y	+= time.o
42
43# Don't include the MPC5xxx special memcpy into the
44# SPL U-Boot image. memcpy is used in the SPL NOR
45# flash driver. And we need the real, fast memcpy
46# here. We have no problems with unaligned access.
47ifndef CONFIG_SPL_BUILD
48# Workaround for local bus unaligned access problems
49# on MPC512x and MPC5200
50ifdef CONFIG_MPC512X
51AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
52obj-y += memcpy_mpc5200.o
53endif
54ifdef CONFIG_MPC5200
55AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
56obj-y += memcpy_mpc5200.o
57endif
58endif
59
60endif # not minimal
61
62ifdef CONFIG_SPL_BUILD
63obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
64endif
65