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 |
Kyle Moffett | 78d58de | 2011-02-23 06:40:38 +0000 | [diff] [blame] | 10 | ifdef USE_PRIVATE_LIBGCC |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame^] | 11 | lib-y += _ashldi3.o |
12 | lib-y += _ashrdi3.o | ||||
13 | lib-y += _lshrdi3.o | ||||
Kyle Moffett | 78d58de | 2011-02-23 06:40:38 +0000 | [diff] [blame] | 14 | endif |
15 | |||||
Scott Wood | 7c81090 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 16 | MINIMAL= |
17 | |||||
18 | ifdef CONFIG_SPL_BUILD | ||||
19 | ifdef CONFIG_SPL_INIT_MINIMAL | ||||
20 | MINIMAL=y | ||||
21 | endif | ||||
22 | endif | ||||
23 | |||||
24 | ifdef MINIMAL | ||||
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame^] | 25 | obj-y += cache.o time.o |
26 | obj-y += ticks.o | ||||
Scott Wood | 7c81090 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 27 | else |
28 | |||||
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame^] | 29 | obj-y += ppcstring.o |
Scott Wood | 7c81090 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 30 | |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame^] | 31 | obj-y += ppccache.o |
32 | obj-y += ticks.o | ||||
33 | obj-y += reloc.o | ||||
wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 34 | |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame^] | 35 | obj-$(CONFIG_BAT_RW) += bat_rw.o |
Stefan Roese | 50b5ac0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 36 | ifndef CONFIG_SPL_BUILD |
Simon Glass | fa6945f | 2013-03-11 06:50:01 +0000 | [diff] [blame] | 37 | ifndef CONFIG_SYS_GENERIC_BOARD |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame^] | 38 | obj-y += board.o |
Stefan Roese | 50b5ac0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 39 | endif |
Simon Glass | fa6945f | 2013-03-11 06:50:01 +0000 | [diff] [blame] | 40 | endif |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame^] | 41 | obj-$(CONFIG_CMD_BOOTM) += bootm.o |
42 | obj-y += cache.o | ||||
43 | obj-y += extable.o | ||||
44 | obj-y += interrupts.o | ||||
45 | obj-$(CONFIG_CMD_KGDB) += kgdb.o | ||||
46 | obj-$(CONFIG_CMD_IDE) += ide.o | ||||
47 | obj-y += time.o | ||||
wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 48 | |
Stefan Roese | 50b5ac0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 49 | # Don't include the MPC5xxx special memcpy into the |
50 | # SPL U-Boot image. memcpy is used in the SPL NOR | ||||
51 | # flash driver. And we need the real, fast memcpy | ||||
52 | # here. We have no problems with unaligned access. | ||||
53 | ifndef CONFIG_SPL_BUILD | ||||
Wolfgang Denk | 85aa2c4 | 2010-06-29 01:33:35 +0200 | [diff] [blame] | 54 | # Workaround for local bus unaligned access problems |
55 | # on MPC512x and MPC5200 | ||||
56 | ifdef CONFIG_MPC512X | ||||
57 | $(obj)ppcstring.o: AFLAGS += -Dmemcpy=__memcpy | ||||
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame^] | 58 | obj-y += memcpy_mpc5200.o |
Wolfgang Denk | 85aa2c4 | 2010-06-29 01:33:35 +0200 | [diff] [blame] | 59 | endif |
Wolfgang Denk | 1612609 | 2010-06-21 22:29:59 +0200 | [diff] [blame] | 60 | ifdef CONFIG_MPC5200 |
61 | $(obj)ppcstring.o: AFLAGS += -Dmemcpy=__memcpy | ||||
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame^] | 62 | obj-y += memcpy_mpc5200.o |
Wolfgang Denk | 1612609 | 2010-06-21 22:29:59 +0200 | [diff] [blame] | 63 | endif |
Stefan Roese | 50b5ac0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 64 | endif |
Wolfgang Denk | 1612609 | 2010-06-21 22:29:59 +0200 | [diff] [blame] | 65 | |
Scott Wood | 7c81090 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 66 | endif # not minimal |
67 | |||||
Stefan Roese | ec90d34 | 2012-08-23 08:34:21 +0200 | [diff] [blame] | 68 | ifdef CONFIG_SPL_BUILD |
Masahiro Yamada | 4fbb29d | 2013-10-17 17:35:04 +0900 | [diff] [blame^] | 69 | obj-$(CONFIG_SPL_FRAMEWORK) += spl.o |
Stefan Roese | ec90d34 | 2012-08-23 08:34:21 +0200 | [diff] [blame] | 70 | endif |