blob: 9a3043abf8c6d8aad750b43e13d538a7d96977ce [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
20ifdef MINIMAL
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090021obj-y += cache.o time.o
22obj-y += ticks.o
Scott Wood7c810902012-09-20 16:35:21 -050023else
24
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090025obj-y += ppcstring.o
Scott Wood7c810902012-09-20 16:35:21 -050026
Masahiro Yamada4fbb29d2013-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 Yamada4fbb29d2013-10-17 17:35:04 +090031obj-$(CONFIG_BAT_RW) += bat_rw.o
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090032obj-$(CONFIG_CMD_BOOTM) += bootm.o
33obj-y += cache.o
34obj-y += extable.o
35obj-y += interrupts.o
36obj-$(CONFIG_CMD_KGDB) += kgdb.o
Andreas Bießmann25429862015-02-06 23:06:45 +010037obj-y += stack.o
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090038obj-y += time.o
Scott Wood7c810902012-09-20 16:35:21 -050039endif # not minimal
40
Stefan Roeseec90d342012-08-23 08:34:21 +020041ifdef CONFIG_SPL_BUILD
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090042obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
Stefan Roeseec90d342012-08-23 08:34:21 +020043endif