blob: 01c9dd51be8c5805af1d4148775fee40eb4ff59d [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
13ifdef CONFIG_SPL_INIT_MINIMAL
14MINIMAL=y
15endif
16endif
17
18ifdef MINIMAL
Masahiro Yamada06c14112013-10-17 17:35:04 +090019obj-y += cache.o time.o
Mario Six2c217492018-08-06 10:23:38 +020020ifndef CONFIG_TIMER
Masahiro Yamada06c14112013-10-17 17:35:04 +090021obj-y += ticks.o
Mario Six2c217492018-08-06 10:23:38 +020022endif
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
Mario Six2c217492018-08-06 10:23:38 +020028ifndef CONFIG_TIMER
Masahiro Yamada06c14112013-10-17 17:35:04 +090029obj-y += ticks.o
Mario Six2c217492018-08-06 10:23:38 +020030endif
Masahiro Yamada06c14112013-10-17 17:35:04 +090031obj-y += reloc.o
wdenk0c8959d2002-08-14 08:04:29 +000032
Masahiro Yamada06c14112013-10-17 17:35:04 +090033obj-$(CONFIG_BAT_RW) += bat_rw.o
Masahiro Yamada06c14112013-10-17 17:35:04 +090034obj-$(CONFIG_CMD_BOOTM) += bootm.o
35obj-y += cache.o
36obj-y += extable.o
37obj-y += interrupts.o
38obj-$(CONFIG_CMD_KGDB) += kgdb.o
Andreas Bießmann68145d42015-02-06 23:06:45 +010039obj-y += stack.o
Masahiro Yamada06c14112013-10-17 17:35:04 +090040obj-y += time.o
Scott Wood4b919722012-09-20 16:35:21 -050041endif # not minimal
42
Stefan Roeseea8256f2012-08-23 08:34:21 +020043ifdef CONFIG_SPL_BUILD
Heiko Stuebner22b7b862019-07-16 10:12:02 +020044obj-$(CONFIG_$(SPL_TPL)_FRAMEWORK) += spl.o
Stefan Roeseea8256f2012-08-23 08:34:21 +020045endif