xref: /openbmc/u-boot/arch/powerpc/lib/Makefile (revision ad3098f7)
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
20ifdef MINIMAL
21obj-y += cache.o time.o
22obj-y += ticks.o
23else
24
25obj-y	+= ppcstring.o
26
27obj-y	+= ppccache.o
28obj-y	+= ticks.o
29obj-y	+= reloc.o
30
31obj-$(CONFIG_BAT_RW) += bat_rw.o
32ifndef CONFIG_SPL_BUILD
33ifndef CONFIG_SYS_GENERIC_BOARD
34obj-y	+= board.o
35endif
36endif
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-$(CONFIG_CMD_IDE) += ide.o
43obj-y	+= stack.o
44obj-y	+= time.o
45
46# Don't include the MPC5xxx special memcpy into the
47# SPL U-Boot image. memcpy is used in the SPL NOR
48# flash driver. And we need the real, fast memcpy
49# here. We have no problems with unaligned access.
50ifndef CONFIG_SPL_BUILD
51# Workaround for local bus unaligned access problems
52# on MPC512x and MPC5200
53ifdef CONFIG_MPC512X
54AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
55obj-y += memcpy_mpc5200.o
56endif
57ifdef CONFIG_MPC5200
58AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
59obj-y += memcpy_mpc5200.o
60endif
61endif
62
63endif # not minimal
64
65ifdef CONFIG_SPL_BUILD
66obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
67endif
68