blob: 0f6298269a7764181286b789947ddc7827c85b56 [file] [log] [blame]
wdenk0c8959d2002-08-14 08:04:29 +00001#
Marian Balakowiczf9328632006-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 Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk0c8959d2002-08-14 08:04:29 +00006#
7
Kyle Moffett01baa052011-02-23 06:40:38 +00008## Build a couple of necessary functions into a private libgcc
Masahiro Yamada06c14112013-10-17 17:35:04 +09009## if the user asked for it
Masahiro Yamadacd2e46c2014-03-05 16:59:38 +090010lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o
Kyle Moffett01baa052011-02-23 06:40:38 +000011
Scott Wood4b919722012-09-20 16:35:21 -050012MINIMAL=
13
14ifdef CONFIG_SPL_BUILD
15ifdef CONFIG_SPL_INIT_MINIMAL
16MINIMAL=y
17endif
18endif
19
20ifdef MINIMAL
Masahiro Yamada06c14112013-10-17 17:35:04 +090021obj-y += cache.o time.o
22obj-y += ticks.o
Scott Wood4b919722012-09-20 16:35:21 -050023else
24
Masahiro Yamada06c14112013-10-17 17:35:04 +090025obj-y += ppcstring.o
Scott Wood4b919722012-09-20 16:35:21 -050026
Masahiro Yamada06c14112013-10-17 17:35:04 +090027obj-y += ppccache.o
28obj-y += ticks.o
29obj-y += reloc.o
wdenk0c8959d2002-08-14 08:04:29 +000030
Masahiro Yamada06c14112013-10-17 17:35:04 +090031obj-$(CONFIG_BAT_RW) += bat_rw.o
Stefan Roese083f2e02012-08-16 17:53:18 +020032ifndef CONFIG_SPL_BUILD
Simon Glass660c60c2013-03-11 06:50:01 +000033ifndef CONFIG_SYS_GENERIC_BOARD
Masahiro Yamada06c14112013-10-17 17:35:04 +090034obj-y += board.o
Stefan Roese083f2e02012-08-16 17:53:18 +020035endif
Simon Glass660c60c2013-03-11 06:50:01 +000036endif
Masahiro Yamada06c14112013-10-17 17:35:04 +090037obj-$(CONFIG_CMD_BOOTM) += bootm.o
38obj-y += cache.o
39obj-y += extable.o
40obj-y += interrupts.o
41obj-$(CONFIG_CMD_KGDB) += kgdb.o
42obj-$(CONFIG_CMD_IDE) += ide.o
43obj-y += time.o
wdenk0c8959d2002-08-14 08:04:29 +000044
Stefan Roese083f2e02012-08-16 17:53:18 +020045# Don't include the MPC5xxx special memcpy into the
46# SPL U-Boot image. memcpy is used in the SPL NOR
47# flash driver. And we need the real, fast memcpy
48# here. We have no problems with unaligned access.
49ifndef CONFIG_SPL_BUILD
Wolfgang Denk4ccd5512010-06-29 01:33:35 +020050# Workaround for local bus unaligned access problems
51# on MPC512x and MPC5200
52ifdef CONFIG_MPC512X
Masahiro Yamada6825a952014-02-04 17:24:28 +090053AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
Masahiro Yamada06c14112013-10-17 17:35:04 +090054obj-y += memcpy_mpc5200.o
Wolfgang Denk4ccd5512010-06-29 01:33:35 +020055endif
Wolfgang Denk460c2ce2010-06-21 22:29:59 +020056ifdef CONFIG_MPC5200
Masahiro Yamada6825a952014-02-04 17:24:28 +090057AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
Masahiro Yamada06c14112013-10-17 17:35:04 +090058obj-y += memcpy_mpc5200.o
Wolfgang Denk460c2ce2010-06-21 22:29:59 +020059endif
Stefan Roese083f2e02012-08-16 17:53:18 +020060endif
Wolfgang Denk460c2ce2010-06-21 22:29:59 +020061
Scott Wood4b919722012-09-20 16:35:21 -050062endif # not minimal
63
Stefan Roeseea8256f2012-08-23 08:34:21 +020064ifdef CONFIG_SPL_BUILD
Masahiro Yamada06c14112013-10-17 17:35:04 +090065obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
Stefan Roeseea8256f2012-08-23 08:34:21 +020066endif