]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/powerpc/lib/Makefile
05b22bb5f702a6e2bb39b1a5a3944571b229dad8
[karo-tx-uboot.git] / arch / powerpc / lib / Makefile
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
10 lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o
11
12 MINIMAL=
13
14 ifdef CONFIG_SPL_BUILD
15 ifdef CONFIG_SPL_INIT_MINIMAL
16 MINIMAL=y
17 endif
18 endif
19
20 ifdef MINIMAL
21 obj-y += cache.o time.o
22 obj-y += ticks.o
23 else
24
25 obj-y   += ppcstring.o
26
27 obj-y   += ppccache.o
28 obj-y   += ticks.o
29 obj-y   += reloc.o
30
31 obj-$(CONFIG_BAT_RW) += bat_rw.o
32 ifndef CONFIG_SPL_BUILD
33 ifndef CONFIG_SYS_GENERIC_BOARD
34 obj-y   += board.o
35 endif
36 endif
37 obj-$(CONFIG_CMD_BOOTM) += bootm.o
38 obj-y   += cache.o
39 obj-y   += extable.o
40 obj-y   += interrupts.o
41 obj-$(CONFIG_CMD_KGDB) += kgdb.o
42 obj-$(CONFIG_CMD_IDE) += ide.o
43 obj-y   += stack.o
44 obj-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.
50 ifndef CONFIG_SPL_BUILD
51 # Workaround for local bus unaligned access problems
52 # on MPC512x and MPC5200
53 ifdef CONFIG_MPC512X
54 AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
55 obj-y += memcpy_mpc5200.o
56 endif
57 ifdef CONFIG_MPC5200
58 AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
59 obj-y += memcpy_mpc5200.o
60 endif
61 endif
62
63 endif # not minimal
64
65 ifdef CONFIG_SPL_BUILD
66 obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
67 endif