]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/powerpc/lib/Makefile
ac780d4077f5d38794d906912de5a009e66033ed
[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 ifdef USE_PRIVATE_LIBGCC
11 lib-y   += _ashldi3.o
12 lib-y   += _ashrdi3.o
13 lib-y   += _lshrdi3.o
14 endif
15
16 MINIMAL=
17
18 ifdef CONFIG_SPL_BUILD
19 ifdef CONFIG_SPL_INIT_MINIMAL
20 MINIMAL=y
21 endif
22 endif
23
24 ifdef MINIMAL
25 obj-y += cache.o time.o
26 obj-y += ticks.o
27 else
28
29 obj-y   += ppcstring.o
30
31 obj-y   += ppccache.o
32 obj-y   += ticks.o
33 obj-y   += reloc.o
34
35 obj-$(CONFIG_BAT_RW) += bat_rw.o
36 ifndef CONFIG_SPL_BUILD
37 ifndef CONFIG_SYS_GENERIC_BOARD
38 obj-y   += board.o
39 endif
40 endif
41 obj-$(CONFIG_CMD_BOOTM) += bootm.o
42 obj-y   += cache.o
43 obj-y   += extable.o
44 obj-y   += interrupts.o
45 obj-$(CONFIG_CMD_KGDB) += kgdb.o
46 obj-$(CONFIG_CMD_IDE) += ide.o
47 obj-y   += time.o
48
49 # Don't include the MPC5xxx special memcpy into the
50 # SPL U-Boot image. memcpy is used in the SPL NOR
51 # flash driver. And we need the real, fast memcpy
52 # here. We have no problems with unaligned access.
53 ifndef CONFIG_SPL_BUILD
54 # Workaround for local bus unaligned access problems
55 # on MPC512x and MPC5200
56 ifdef CONFIG_MPC512X
57 $(obj)/ppcstring.o: AFLAGS += -Dmemcpy=__memcpy
58 obj-y += memcpy_mpc5200.o
59 endif
60 ifdef CONFIG_MPC5200
61 $(obj)/ppcstring.o: AFLAGS += -Dmemcpy=__memcpy
62 obj-y += memcpy_mpc5200.o
63 endif
64 endif
65
66 endif # not minimal
67
68 ifdef CONFIG_SPL_BUILD
69 obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
70 endif