blob: e09bd9a88a2b04f6a29cee2d2f6d5ccb64200035 [file] [log] [blame]
wdenk0c8959d2002-08-14 08:04:29 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk0c8959d2002-08-14 08:04:29 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk0c8959d2002-08-14 08:04:29 +00006#
7
Kyle Moffett78d58de2011-02-23 06:40:38 +00008## Build a couple of necessary functions into a private libgcc
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +09009## if the user asked for it
Masahiro Yamadae1a211d2014-03-05 16:59:38 +090010lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o
Kyle Moffett78d58de2011-02-23 06:40:38 +000011
Scott Wood7c810902012-09-20 16:35:21 -050012MINIMAL=
13
14ifdef CONFIG_SPL_BUILD
15ifdef CONFIG_SPL_INIT_MINIMAL
16MINIMAL=y
17endif
18endif
19
Simon Glassbbf26ab2017-03-31 08:40:36 -060020obj-$(CONFIG_SYS_EXTBDINFO) += setup.o
Scott Wood7c810902012-09-20 16:35:21 -050021ifdef MINIMAL
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090022obj-y += cache.o time.o
23obj-y += ticks.o
Scott Wood7c810902012-09-20 16:35:21 -050024else
25
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090026obj-y += ppcstring.o
Scott Wood7c810902012-09-20 16:35:21 -050027
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090028obj-y += ppccache.o
29obj-y += ticks.o
30obj-y += reloc.o
wdenk0c8959d2002-08-14 08:04:29 +000031
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090032obj-$(CONFIG_BAT_RW) += bat_rw.o
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090033obj-$(CONFIG_CMD_BOOTM) += bootm.o
34obj-y += cache.o
35obj-y += extable.o
Simon Glass5d511242017-05-17 03:25:31 -060036obj-$(CONFIG_CMD_IMMAP) += immap.o
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090037obj-y += interrupts.o
38obj-$(CONFIG_CMD_KGDB) += kgdb.o
Simon Glassb569a012017-05-17 03:25:30 -060039obj-$(CONFIG_IDE) += ide.o
Andreas Bießmann25429862015-02-06 23:06:45 +010040obj-y += stack.o
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090041obj-y += time.o
wdenk0c8959d2002-08-14 08:04:29 +000042
Stefan Roese50b5ac02012-08-16 17:53:18 +020043# Don't include the MPC5xxx special memcpy into the
44# SPL U-Boot image. memcpy is used in the SPL NOR
45# flash driver. And we need the real, fast memcpy
46# here. We have no problems with unaligned access.
47ifndef CONFIG_SPL_BUILD
Wolfgang Denk85aa2c42010-06-29 01:33:35 +020048# Workaround for local bus unaligned access problems
49# on MPC512x and MPC5200
50ifdef CONFIG_MPC512X
Masahiro Yamada0d68fb12014-02-04 17:24:28 +090051AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090052obj-y += memcpy_mpc5200.o
Wolfgang Denk85aa2c42010-06-29 01:33:35 +020053endif
Wolfgang Denk16126092010-06-21 22:29:59 +020054ifdef CONFIG_MPC5200
Masahiro Yamada0d68fb12014-02-04 17:24:28 +090055AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090056obj-y += memcpy_mpc5200.o
Wolfgang Denk16126092010-06-21 22:29:59 +020057endif
Stefan Roese50b5ac02012-08-16 17:53:18 +020058endif
Wolfgang Denk16126092010-06-21 22:29:59 +020059
Scott Wood7c810902012-09-20 16:35:21 -050060endif # not minimal
61
Stefan Roeseec90d342012-08-23 08:34:21 +020062ifdef CONFIG_SPL_BUILD
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090063obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
Stefan Roeseec90d342012-08-23 08:34:21 +020064endif