Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2006 |
3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. | ||||
Wolfgang Denk | 511d0c7 | 2006-10-09 00:42:01 +0200 | [diff] [blame] | 4 | # |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 5 | # Copyright 2004 Freescale Semiconductor, Inc. |
6 | # | ||||
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 8 | # |
9 | |||||
Scott Wood | 06f60ae | 2012-12-06 13:33:17 +0000 | [diff] [blame] | 10 | MINIMAL= |
11 | |||||
12 | ifdef CONFIG_SPL_BUILD | ||||
13 | ifdef CONFIG_SPL_INIT_MINIMAL | ||||
14 | MINIMAL=y | ||||
15 | endif | ||||
16 | endif | ||||
17 | |||||
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 18 | extra-y = start.o |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 19 | |
Scott Wood | 06f60ae | 2012-12-06 13:33:17 +0000 | [diff] [blame] | 20 | ifdef MINIMAL |
21 | |||||
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 22 | obj-y += spl_minimal.o |
Scott Wood | 06f60ae | 2012-12-06 13:33:17 +0000 | [diff] [blame] | 23 | |
24 | else | ||||
25 | |||||
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 26 | obj-y += traps.o |
27 | obj-y += cpu.o | ||||
28 | obj-y += cpu_init.o | ||||
29 | obj-y += speed.o | ||||
30 | obj-y += interrupts.o | ||||
31 | obj-y += ecc.o | ||||
32 | obj-$(CONFIG_QE) += qe_io.o | ||||
33 | obj-$(CONFIG_FSL_SERDES) += serdes.o | ||||
34 | obj-$(CONFIG_PCI) += pci.o | ||||
35 | obj-$(CONFIG_PCIE) += pcie.o | ||||
36 | obj-$(CONFIG_OF_LIBFDT) += fdt.o | ||||
Anton Vorontsov | a796cdf | 2008-03-24 17:40:27 +0300 | [diff] [blame] | 37 | |
Marek Vasut | 2531568 | 2012-05-25 16:14:46 +0200 | [diff] [blame] | 38 | # Stub implementations of cache management functions for USB |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 39 | obj-y += cache.o |
Marek Vasut | 2531568 | 2012-05-25 16:14:46 +0200 | [diff] [blame] | 40 | |
York Sun | d29d17d | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 41 | ifdef CONFIG_FSL_DDR2 |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 42 | obj-$(CONFIG_MPC8349) += ddr-gen2.o |
43 | SRCS += $(obj)ddr-gen2.c | ||||
York Sun | d29d17d | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 44 | else |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 45 | obj-y += spd_sdram.o |
York Sun | d29d17d | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 46 | endif |
Masahiro Yamada | 06c1411 | 2013-10-17 17:35:04 +0900 | [diff] [blame] | 47 | obj-$(CONFIG_FSL_DDR2) += law.o |
York Sun | d29d17d | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 48 | |
Scott Wood | 06f60ae | 2012-12-06 13:33:17 +0000 | [diff] [blame] | 49 | endif # not minimal |
50 | |||||
York Sun | d29d17d | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 51 | $(obj)ddr-gen1.c: |
York Sun | d29d17d | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 52 | ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/ddr-gen1.c $(obj)ddr-gen1.c |
53 | |||||
54 | $(obj)ddr-gen2.c: | ||||
York Sun | d29d17d | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 55 | ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/ddr-gen2.c $(obj)ddr-gen2.c |
56 | |||||
57 | $(obj)ddr-gen3.c: | ||||
York Sun | d29d17d | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 58 | ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/ddr-gen3.c $(obj)ddr-gen3.c |