wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2000-2006 |
wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
4 | # | ||||
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 6 | # |
7 | |||||
Kyle Moffett | 78d58de | 2011-02-23 06:40:38 +0000 | [diff] [blame] | 8 | ## Build a couple of necessary functions into a private libgcc |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 9 | ## if the user asked for it |
Masahiro Yamada | e1a211d | 2014-03-05 16:59:38 +0900 | [diff] [blame] | 10 | lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o |
Kyle Moffett | 78d58de | 2011-02-23 06:40:38 +0000 | [diff] [blame] | 11 | |
Scott Wood | 7c81090 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 12 | MINIMAL= |
13 | |||||
14 | ifdef CONFIG_SPL_BUILD | ||||
15 | ifdef CONFIG_SPL_INIT_MINIMAL | ||||
16 | MINIMAL=y | ||||
17 | endif | ||||
18 | endif | ||||
19 | |||||
Simon Glass | bbf26ab | 2017-03-31 08:40:36 -0600 | [diff] [blame] | 20 | obj-$(CONFIG_SYS_EXTBDINFO) += setup.o |
Scott Wood | 7c81090 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 21 | ifdef MINIMAL |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 22 | obj-y += cache.o time.o |
23 | obj-y += ticks.o | ||||
Scott Wood | 7c81090 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 24 | else |
25 | |||||
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 26 | obj-y += ppcstring.o |
Scott Wood | 7c81090 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 27 | |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 28 | obj-y += ppccache.o |
29 | obj-y += ticks.o | ||||
30 | obj-y += reloc.o | ||||
wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 31 | |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 32 | obj-$(CONFIG_BAT_RW) += bat_rw.o |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 33 | obj-$(CONFIG_CMD_BOOTM) += bootm.o |
34 | obj-y += cache.o | ||||
35 | obj-y += extable.o | ||||
Simon Glass | 5d51124 | 2017-05-17 03:25:31 -0600 | [diff] [blame] | 36 | obj-$(CONFIG_CMD_IMMAP) += immap.o |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 37 | obj-y += interrupts.o |
38 | obj-$(CONFIG_CMD_KGDB) += kgdb.o | ||||
Simon Glass | b569a01 | 2017-05-17 03:25:30 -0600 | [diff] [blame] | 39 | obj-$(CONFIG_IDE) += ide.o |
Andreas Bießmann | 2542986 | 2015-02-06 23:06:45 +0100 | [diff] [blame] | 40 | obj-y += stack.o |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 41 | obj-y += time.o |
wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 42 | |
Stefan Roese | 50b5ac0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 43 | # Don't include the MPC5xxx special memcpy into the |
44 | # SPL U-Boot image. memcpy is used in the SPL NOR | ||||
45 | # flash driver. And we need the real, fast memcpy | ||||
46 | # here. We have no problems with unaligned access. | ||||
47 | ifndef CONFIG_SPL_BUILD | ||||
Wolfgang Denk | 85aa2c4 | 2010-06-29 01:33:35 +0200 | [diff] [blame] | 48 | # Workaround for local bus unaligned access problems |
49 | # on MPC512x and MPC5200 | ||||
50 | ifdef CONFIG_MPC512X | ||||
Masahiro Yamada | 0d68fb1 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 51 | AFLAGS_ppcstring.o += -Dmemcpy=__memcpy |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 52 | obj-y += memcpy_mpc5200.o |
Wolfgang Denk | 85aa2c4 | 2010-06-29 01:33:35 +0200 | [diff] [blame] | 53 | endif |
Wolfgang Denk | 1612609 | 2010-06-21 22:29:59 +0200 | [diff] [blame] | 54 | ifdef CONFIG_MPC5200 |
Masahiro Yamada | 0d68fb1 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 55 | AFLAGS_ppcstring.o += -Dmemcpy=__memcpy |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 56 | obj-y += memcpy_mpc5200.o |
Wolfgang Denk | 1612609 | 2010-06-21 22:29:59 +0200 | [diff] [blame] | 57 | endif |
Stefan Roese | 50b5ac0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 58 | endif |
Wolfgang Denk | 1612609 | 2010-06-21 22:29:59 +0200 | [diff] [blame] | 59 | |
Scott Wood | 7c81090 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 60 | endif # not minimal |
61 | |||||
Stefan Roese | ec90d34 | 2012-08-23 08:34:21 +0200 | [diff] [blame] | 62 | ifdef CONFIG_SPL_BUILD |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 63 | obj-$(CONFIG_SPL_FRAMEWORK) += spl.o |
Stefan Roese | ec90d34 | 2012-08-23 08:34:21 +0200 | [diff] [blame] | 64 | endif |