wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 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 | 1a45966 | 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 | 01baa05 | 2011-02-23 06:40:38 +0000 | [diff] [blame] | 8 | ## Build a couple of necessary functions into a private libgcc |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 9 | ## if the user asked for it |
Masahiro Yamada | cd2e46c | 2014-03-05 16:59:38 +0900 | [diff] [blame] | 10 | lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o |
Kyle Moffett | 01baa05 | 2011-02-23 06:40:38 +0000 | [diff] [blame] | 11 | |
Scott Wood | 4b91972 | 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 | |||||
20 | ifdef MINIMAL | ||||
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 21 | obj-y += cache.o time.o |
22 | obj-y += ticks.o | ||||
Scott Wood | 4b91972 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 23 | else |
24 | |||||
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 25 | obj-y += ppcstring.o |
Scott Wood | 4b91972 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 26 | |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 27 | obj-y += ppccache.o |
28 | obj-y += ticks.o | ||||
29 | obj-y += reloc.o | ||||
wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 30 | |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 31 | obj-$(CONFIG_BAT_RW) += bat_rw.o |
Stefan Roese | 083f2e0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 32 | ifndef CONFIG_SPL_BUILD |
Simon Glass | 660c60c | 2013-03-11 06:50:01 +0000 | [diff] [blame] | 33 | ifndef CONFIG_SYS_GENERIC_BOARD |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 34 | obj-y += board.o |
Stefan Roese | 083f2e0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 35 | endif |
Simon Glass | 660c60c | 2013-03-11 06:50:01 +0000 | [diff] [blame] | 36 | endif |
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 | ||||
42 | obj-$(CONFIG_CMD_IDE) += ide.o | ||||
43 | obj-y += time.o | ||||
wdenk | 0c8959d | 2002-08-14 08:04:29 +0000 | [diff] [blame] | 44 | |
Stefan Roese | 083f2e0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 45 | # Don't include the MPC5xxx special memcpy into the |
46 | # SPL U-Boot image. memcpy is used in the SPL NOR | ||||
47 | # flash driver. And we need the real, fast memcpy | ||||
48 | # here. We have no problems with unaligned access. | ||||
49 | ifndef CONFIG_SPL_BUILD | ||||
Wolfgang Denk | 4ccd551 | 2010-06-29 01:33:35 +0200 | [diff] [blame] | 50 | # Workaround for local bus unaligned access problems |
51 | # on MPC512x and MPC5200 | ||||
52 | ifdef CONFIG_MPC512X | ||||
Masahiro Yamada | 6825a95 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 53 | AFLAGS_ppcstring.o += -Dmemcpy=__memcpy |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 54 | obj-y += memcpy_mpc5200.o |
Wolfgang Denk | 4ccd551 | 2010-06-29 01:33:35 +0200 | [diff] [blame] | 55 | endif |
Wolfgang Denk | 460c2ce | 2010-06-21 22:29:59 +0200 | [diff] [blame] | 56 | ifdef CONFIG_MPC5200 |
Masahiro Yamada | 6825a95 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 57 | AFLAGS_ppcstring.o += -Dmemcpy=__memcpy |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 58 | obj-y += memcpy_mpc5200.o |
Wolfgang Denk | 460c2ce | 2010-06-21 22:29:59 +0200 | [diff] [blame] | 59 | endif |
Stefan Roese | 083f2e0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 60 | endif |
Wolfgang Denk | 460c2ce | 2010-06-21 22:29:59 +0200 | [diff] [blame] | 61 | |
Scott Wood | 4b91972 | 2012-09-20 16:35:21 -0500 | [diff] [blame] | 62 | endif # not minimal |
63 | |||||
Stefan Roese | ea8256f | 2012-08-23 08:34:21 +0200 | [diff] [blame] | 64 | ifdef CONFIG_SPL_BUILD |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 65 | obj-$(CONFIG_SPL_FRAMEWORK) += spl.o |
Stefan Roese | ea8256f | 2012-08-23 08:34:21 +0200 | [diff] [blame] | 66 | endif |