blob: 066d7f408e08af0b3096ecc92a11a0c2e44fabb9 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
wdenk0c8959d2002-08-14 08:04:29 +00002#
Marian Balakowiczf9328632006-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 Moffett01baa052011-02-23 06:40:38 +00006## Build a couple of necessary functions into a private libgcc
Masahiro Yamada06c14112013-10-17 17:35:04 +09007## if the user asked for it
Masahiro Yamadacd2e46c2014-03-05 16:59:38 +09008lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o
Kyle Moffett01baa052011-02-23 06:40:38 +00009
Scott Wood4b919722012-09-20 16:35:21 -050010MINIMAL=
11
12ifdef CONFIG_SPL_BUILD
Tom Rinib35316f2022-05-13 12:26:35 -040013ifndef CONFIG_TPL_BUILD
Scott Wood4b919722012-09-20 16:35:21 -050014ifdef CONFIG_SPL_INIT_MINIMAL
15MINIMAL=y
16endif
17endif
Tom Rinib35316f2022-05-13 12:26:35 -040018endif
Scott Wood4b919722012-09-20 16:35:21 -050019
Simon Glass79d074d2020-05-10 14:16:57 -060020obj-y += bdinfo.o
21
Scott Wood4b919722012-09-20 16:35:21 -050022ifdef MINIMAL
Masahiro Yamada06c14112013-10-17 17:35:04 +090023obj-y += cache.o time.o
Mario Six2c217492018-08-06 10:23:38 +020024ifndef CONFIG_TIMER
Masahiro Yamada06c14112013-10-17 17:35:04 +090025obj-y += ticks.o
Mario Six2c217492018-08-06 10:23:38 +020026endif
Scott Wood4b919722012-09-20 16:35:21 -050027else
28
Masahiro Yamada06c14112013-10-17 17:35:04 +090029obj-y += ppcstring.o
Scott Wood4b919722012-09-20 16:35:21 -050030
Masahiro Yamada06c14112013-10-17 17:35:04 +090031obj-y += ppccache.o
Mario Six2c217492018-08-06 10:23:38 +020032ifndef CONFIG_TIMER
Masahiro Yamada06c14112013-10-17 17:35:04 +090033obj-y += ticks.o
Mario Six2c217492018-08-06 10:23:38 +020034endif
Masahiro Yamada06c14112013-10-17 17:35:04 +090035obj-y += reloc.o
wdenk0c8959d2002-08-14 08:04:29 +000036
Masahiro Yamada06c14112013-10-17 17:35:04 +090037obj-$(CONFIG_BAT_RW) += bat_rw.o
Masahiro Yamada06c14112013-10-17 17:35:04 +090038obj-$(CONFIG_CMD_BOOTM) += bootm.o
39obj-y += cache.o
40obj-y += extable.o
41obj-y += interrupts.o
42obj-$(CONFIG_CMD_KGDB) += kgdb.o
Andreas Bießmann68145d42015-02-06 23:06:45 +010043obj-y += stack.o
Masahiro Yamada06c14112013-10-17 17:35:04 +090044obj-y += time.o
Ovidiu Panait130845b2020-11-28 10:43:18 +020045obj-y += traps.o
Scott Wood4b919722012-09-20 16:35:21 -050046endif # not minimal
47
Stefan Roeseea8256f2012-08-23 08:34:21 +020048ifdef CONFIG_SPL_BUILD
Heiko Stuebner22b7b862019-07-16 10:12:02 +020049obj-$(CONFIG_$(SPL_TPL)_FRAMEWORK) += spl.o
Stefan Roeseea8256f2012-08-23 08:34:21 +020050endif