2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
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
14 ifdef CONFIG_SPL_BUILD
15 ifdef CONFIG_SPL_INIT_MINIMAL
21 obj-y += cache.o time.o
31 obj-$(CONFIG_BAT_RW) += bat_rw.o
32 obj-$(CONFIG_CMD_BOOTM) += bootm.o
36 obj-$(CONFIG_CMD_KGDB) += kgdb.o
37 obj-$(CONFIG_CMD_IDE) += ide.o
41 # Don't include the MPC5xxx special memcpy into the
42 # SPL U-Boot image. memcpy is used in the SPL NOR
43 # flash driver. And we need the real, fast memcpy
44 # here. We have no problems with unaligned access.
45 ifndef CONFIG_SPL_BUILD
46 # Workaround for local bus unaligned access problems
47 # on MPC512x and MPC5200
49 AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
50 obj-y += memcpy_mpc5200.o
53 AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
54 obj-y += memcpy_mpc5200.o
60 ifdef CONFIG_SPL_BUILD
61 obj-$(CONFIG_SPL_FRAMEWORK) += spl.o