Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 2 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 3 | # (C) Copyright 2000-2006 |
wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 5 | |
Kyle Moffett | 01baa05 | 2011-02-23 06:40:38 +0000 | [diff] [blame] | 6 | ## Build a couple of necessary functions into a private libgcc |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 7 | ## if the user asked for it |
Masahiro Yamada | cd2e46c | 2014-03-05 16:59:38 +0900 | [diff] [blame] | 8 | lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o |
Kyle Moffett | 01baa05 | 2011-02-23 06:40:38 +0000 | [diff] [blame] | 9 | |
Scott Wood | 4b91972 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 10 | MINIMAL= |
11 | |||||
12 | ifdef CONFIG_SPL_BUILD | ||||
Tom Rini | b35316f | 2022-05-13 12:26:35 -0400 | [diff] [blame] | 13 | ifndef CONFIG_TPL_BUILD |
Scott Wood | 4b91972 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 14 | ifdef CONFIG_SPL_INIT_MINIMAL |
15 | MINIMAL=y | ||||
16 | endif | ||||
17 | endif | ||||
Tom Rini | b35316f | 2022-05-13 12:26:35 -0400 | [diff] [blame] | 18 | endif |
Scott Wood | 4b91972 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 19 | |
Simon Glass | 79d074d | 2020-05-10 14:16:57 -0600 | [diff] [blame] | 20 | obj-y += bdinfo.o |
21 | |||||
Scott Wood | 4b91972 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 22 | ifdef MINIMAL |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 23 | obj-y += cache.o time.o |
Mario Six | 2c21749 | 2018-08-06 10:23:38 +0200 | [diff] [blame] | 24 | ifndef CONFIG_TIMER |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 25 | obj-y += ticks.o |
Mario Six | 2c21749 | 2018-08-06 10:23:38 +0200 | [diff] [blame] | 26 | endif |
Scott Wood | 4b91972 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 27 | else |
28 | |||||
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 29 | obj-y += ppcstring.o |
Scott Wood | 4b91972 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 30 | |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 31 | obj-y += ppccache.o |
Mario Six | 2c21749 | 2018-08-06 10:23:38 +0200 | [diff] [blame] | 32 | ifndef CONFIG_TIMER |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 33 | obj-y += ticks.o |
Mario Six | 2c21749 | 2018-08-06 10:23:38 +0200 | [diff] [blame] | 34 | endif |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 35 | obj-y += reloc.o |
wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 36 | |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 37 | obj-$(CONFIG_CMD_BOOTM) += bootm.o |
38 | obj-y += cache.o | ||||
39 | obj-y += extable.o | ||||
40 | obj-y += interrupts.o | ||||
41 | obj-$(CONFIG_CMD_KGDB) += kgdb.o | ||||
Andreas Bießmann | 68145d4 | 2015-02-06 23:06:45 +0100 | [diff] [blame] | 42 | obj-y += stack.o |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 43 | obj-y += time.o |
Ovidiu Panait | 130845b | 2020-11-28 10:43:18 +0200 | [diff] [blame] | 44 | obj-y += traps.o |
Scott Wood | 4b91972 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 45 | endif # not minimal |
46 | |||||
Stefan Roese | ea8256f | 2012-08-23 08:34:21 +0200 | [diff] [blame] | 47 | ifdef CONFIG_SPL_BUILD |
Heiko Stuebner | 22b7b86 | 2019-07-16 10:12:02 +0200 | [diff] [blame] | 48 | obj-$(CONFIG_$(SPL_TPL)_FRAMEWORK) += spl.o |
Stefan Roese | ea8256f | 2012-08-23 08:34:21 +0200 | [diff] [blame] | 49 | endif |