Prepare v2023.10
[platform/kernel/u-boot.git] / arch / powerpc / lib / Makefile
1 # SPDX-License-Identifier: GPL-2.0+
2 #
3 # (C) Copyright 2000-2006
4 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5
6 ## Build a couple of necessary functions into a private libgcc
7 ## if the user asked for it
8 lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o
9
10 MINIMAL=
11
12 ifdef CONFIG_SPL_BUILD
13 ifndef CONFIG_TPL_BUILD
14 ifdef CONFIG_SPL_INIT_MINIMAL
15 MINIMAL=y
16 endif
17 endif
18 endif
19
20 obj-y   += bdinfo.o
21
22 ifdef MINIMAL
23 obj-y += cache.o time.o
24 ifndef CONFIG_TIMER
25 obj-y += ticks.o
26 endif
27 else
28
29 obj-y   += ppcstring.o
30
31 obj-y   += ppccache.o
32 ifndef CONFIG_TIMER
33 obj-y   += ticks.o
34 endif
35 obj-y   += reloc.o
36
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-y   += stack.o
43 obj-y   += time.o
44 obj-y   += traps.o
45 endif # not minimal
46
47 ifdef CONFIG_SPL_BUILD
48 obj-$(CONFIG_$(SPL_TPL)_FRAMEWORK) += spl.o
49 endif