]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/powerpc/lib/Makefile
kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBGCC
[people/ms/u-boot.git] / arch / powerpc / lib / Makefile
CommitLineData
0c8959d6 1#
f9328639 2# (C) Copyright 2000-2006
0c8959d6
WD
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
1a459660 5# SPDX-License-Identifier: GPL-2.0+
0c8959d6
WD
6#
7
01baa056 8## Build a couple of necessary functions into a private libgcc
06c14117 9## if the user asked for it
cd2e46cb 10lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o
01baa056 11
4b919725
SW
12MINIMAL=
13
14ifdef CONFIG_SPL_BUILD
15ifdef CONFIG_SPL_INIT_MINIMAL
16MINIMAL=y
17endif
18endif
19
20ifdef MINIMAL
06c14117
MY
21obj-y += cache.o time.o
22obj-y += ticks.o
4b919725
SW
23else
24
06c14117 25obj-y += ppcstring.o
4b919725 26
06c14117
MY
27obj-y += ppccache.o
28obj-y += ticks.o
29obj-y += reloc.o
823afe7c 30
06c14117 31obj-$(CONFIG_BAT_RW) += bat_rw.o
083f2e08 32ifndef CONFIG_SPL_BUILD
660c60c4 33ifndef CONFIG_SYS_GENERIC_BOARD
06c14117 34obj-y += board.o
083f2e08 35endif
660c60c4 36endif
06c14117
MY
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 += time.o
823afe7c 44
083f2e08
SR
45# Don't include the MPC5xxx special memcpy into the
46# SPL U-Boot image. memcpy is used in the SPL NOR
47# flash driver. And we need the real, fast memcpy
48# here. We have no problems with unaligned access.
49ifndef CONFIG_SPL_BUILD
4ccd5510
WD
50# Workaround for local bus unaligned access problems
51# on MPC512x and MPC5200
52ifdef CONFIG_MPC512X
6825a95b 53AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
06c14117 54obj-y += memcpy_mpc5200.o
4ccd5510 55endif
460c2ce3 56ifdef CONFIG_MPC5200
6825a95b 57AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
06c14117 58obj-y += memcpy_mpc5200.o
460c2ce3 59endif
083f2e08 60endif
460c2ce3 61
4b919725
SW
62endif # not minimal
63
ea8256f0 64ifdef CONFIG_SPL_BUILD
06c14117 65obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
ea8256f0 66endif