blob: 2782740bf5b33608d9be77e49dd2e7e5bb92a54b [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
wdenk0c8959d2002-08-14 08:04:29 +00002#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02003# (C) Copyright 2000-2006
wdenk0c8959d2002-08-14 08:04:29 +00004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
wdenk0c8959d2002-08-14 08:04:29 +00005
Kyle Moffett78d58de2011-02-23 06:40:38 +00006## Build a couple of necessary functions into a private libgcc
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +09007## if the user asked for it
Masahiro Yamadae1a211d2014-03-05 16:59:38 +09008lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o
Kyle Moffett78d58de2011-02-23 06:40:38 +00009
Scott Wood7c810902012-09-20 16:35:21 -050010MINIMAL=
11
12ifdef CONFIG_SPL_BUILD
13ifdef CONFIG_SPL_INIT_MINIMAL
14MINIMAL=y
15endif
16endif
17
Simon Glass5233da52020-05-10 14:16:57 -060018obj-y += bdinfo.o
19
Scott Wood7c810902012-09-20 16:35:21 -050020ifdef MINIMAL
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090021obj-y += cache.o time.o
Mario Six3c516552018-08-06 10:23:38 +020022ifndef CONFIG_TIMER
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090023obj-y += ticks.o
Mario Six3c516552018-08-06 10:23:38 +020024endif
Scott Wood7c810902012-09-20 16:35:21 -050025else
26
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090027obj-y += ppcstring.o
Scott Wood7c810902012-09-20 16:35:21 -050028
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090029obj-y += ppccache.o
Mario Six3c516552018-08-06 10:23:38 +020030ifndef CONFIG_TIMER
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090031obj-y += ticks.o
Mario Six3c516552018-08-06 10:23:38 +020032endif
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090033obj-y += reloc.o
wdenk0c8959d2002-08-14 08:04:29 +000034
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090035obj-$(CONFIG_BAT_RW) += bat_rw.o
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090036obj-$(CONFIG_CMD_BOOTM) += bootm.o
37obj-y += cache.o
38obj-y += extable.o
39obj-y += interrupts.o
40obj-$(CONFIG_CMD_KGDB) += kgdb.o
Andreas Bießmann25429862015-02-06 23:06:45 +010041obj-y += stack.o
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090042obj-y += time.o
Ovidiu Panait2c823912020-11-28 10:43:18 +020043obj-y += traps.o
Scott Wood7c810902012-09-20 16:35:21 -050044endif # not minimal
45
Stefan Roeseec90d342012-08-23 08:34:21 +020046ifdef CONFIG_SPL_BUILD
Heiko Stuebner4a0da7c2019-07-16 10:12:02 +020047obj-$(CONFIG_$(SPL_TPL)_FRAMEWORK) += spl.o
Stefan Roeseec90d342012-08-23 08:34:21 +020048endif