common: board_r: Drop arch-specific ifdefs around initr_trap
[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 ifdef CONFIG_SPL_INIT_MINIMAL
14 MINIMAL=y
15 endif
16 endif
17
18 obj-y   += bdinfo.o
19
20 ifdef MINIMAL
21 obj-y += cache.o time.o
22 ifndef CONFIG_TIMER
23 obj-y += ticks.o
24 endif
25 else
26
27 obj-y   += ppcstring.o
28
29 obj-y   += ppccache.o
30 ifndef CONFIG_TIMER
31 obj-y   += ticks.o
32 endif
33 obj-y   += reloc.o
34
35 obj-$(CONFIG_BAT_RW) += bat_rw.o
36 obj-$(CONFIG_CMD_BOOTM) += bootm.o
37 obj-y   += cache.o
38 obj-y   += extable.o
39 obj-y   += interrupts.o
40 obj-$(CONFIG_CMD_KGDB) += kgdb.o
41 obj-y   += stack.o
42 obj-y   += time.o
43 obj-y   += traps.o
44 endif # not minimal
45
46 ifdef CONFIG_SPL_BUILD
47 obj-$(CONFIG_$(SPL_TPL)_FRAMEWORK) += spl.o
48 endif