Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 1 | # |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
| 4 | # Copyright (C) 2010 Google Inc. |
| 5 | # |
| 6 | # This program is free software; you can redistribute it and/or modify |
| 7 | # it under the terms of the GNU General Public License as published by |
| 8 | # the Free Software Foundation; version 2 of the License. |
| 9 | # |
| 10 | # This program is distributed in the hope that it will be useful, |
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | # GNU General Public License for more details. |
| 14 | # |
| 15 | # You should have received a copy of the GNU General Public License |
| 16 | # along with this program; if not, write to the Free Software |
Paul Menzel | a46a712 | 2013-02-23 18:37:27 +0100 | [diff] [blame] | 17 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 18 | # |
| 19 | |
Kyösti Mälkki | cb08e16 | 2013-10-15 17:19:41 +0300 | [diff] [blame] | 20 | ramstage-y += ram_calc.c |
Patrick Georgi | 23f38cd | 2012-11-16 14:50:32 +0100 | [diff] [blame] | 21 | ramstage-y += northbridge.c |
| 22 | ramstage-y += gma.c |
Vladimir Serbinenko | 1783a3c | 2014-02-23 00:10:35 +0100 | [diff] [blame] | 23 | ramstage-$(CONFIG_IVYBRIDGE_LVDS) += gma_ivybridge_lvds.c |
Vladimir Serbinenko | 9ba922f | 2014-08-24 22:38:07 +0200 | [diff] [blame] | 24 | ramstage-$(CONFIG_SANDYBRIDGE_LVDS) += gma_sandybridge_lvds.c |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 25 | |
| 26 | ramstage-$(CONFIG_GENERATE_ACPI_TABLES) += acpi.c |
Stefan Reinauer | 1244f4b | 2012-05-10 11:31:40 -0700 | [diff] [blame] | 27 | ramstage-y += mrccache.c |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 28 | |
Kyösti Mälkki | cb08e16 | 2013-10-15 17:19:41 +0300 | [diff] [blame] | 29 | romstage-y += ram_calc.c |
Vladimir Serbinenko | 7686a56 | 2014-05-18 11:05:56 +0200 | [diff] [blame] | 30 | romstage-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += raminit.c |
| 31 | romstage-$(CONFIG_NORTHBRIDGE_INTEL_SANDYBRIDGE) += raminit.c |
| 32 | romstage-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE) += raminit_native.c |
| 33 | romstage-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE) += ../../../device/dram/ddr3.c |
Stefan Reinauer | 1244f4b | 2012-05-10 11:31:40 -0700 | [diff] [blame] | 34 | romstage-y += mrccache.c |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 35 | romstage-y += early_init.c |
Vadim Bendebury | 7a3f36a | 2012-04-18 15:47:32 -0700 | [diff] [blame] | 36 | romstage-y += report_platform.c |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 37 | romstage-y += ../../../arch/x86/lib/walkcbfs.S |
| 38 | |
Stefan Reinauer | 16401b8 | 2012-04-27 01:05:11 +0200 | [diff] [blame] | 39 | smm-$(CONFIG_HAVE_SMI_HANDLER) += udelay.c |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 40 | smm-$(CONFIG_HAVE_SMI_HANDLER) += finalize.c |
| 41 | |
| 42 | # We don't ship that, but booting without it is bound to fail |
| 43 | cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin |
Stefan Reinauer | cafedcf | 2012-05-01 16:37:18 -0700 | [diff] [blame] | 44 | mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE)) |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 45 | mrc.bin-position := 0xfffa0000 |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 46 | mrc.bin-type := 0xab |
Stefan Reinauer | e5a0a5d | 2012-09-19 10:51:48 -0700 | [diff] [blame] | 47 | |
Kyösti Mälkki | 591031f | 2014-02-13 00:33:40 +0200 | [diff] [blame] | 48 | ifneq ($(CONFIG_CHROMEOS),y) |
| 49 | $(obj)/mrc.cache: $(obj)/config.h |
Patrick Georgi | 483ff82 | 2013-06-18 11:34:01 +0200 | [diff] [blame] | 50 | dd if=/dev/zero count=1 \ |
| 51 | bs=$(shell printf "%d" $(CONFIG_MRC_CACHE_SIZE) ) | \ |
| 52 | tr '\000' '\377' > $@ |
| 53 | |
Vladimir Serbinenko | 5e73be2 | 2014-01-12 19:25:00 +0100 | [diff] [blame] | 54 | cbfs-files-$(CONFIG_HAVE_MRC_CACHE) += mrc.cache |
Patrick Georgi | 483ff82 | 2013-06-18 11:34:01 +0200 | [diff] [blame] | 55 | mrc.cache-file := $(obj)/mrc.cache |
Vladimir Serbinenko | 7686a56 | 2014-05-18 11:05:56 +0200 | [diff] [blame] | 56 | mrc-cache-position-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) := 0xfffd0000 |
| 57 | mrc-cache-position-$(CONFIG_NORTHBRIDGE_INTEL_SANDYBRIDGE) := 0xfffd0000 |
| 58 | mrc-cache-position-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE_NATIVE) := 0xfffe0000 |
| 59 | mrc.cache-position := $(mrc-cache-position-y) |
Patrick Georgi | 483ff82 | 2013-06-18 11:34:01 +0200 | [diff] [blame] | 60 | mrc.cache-type := 0xac |
Kyösti Mälkki | 591031f | 2014-02-13 00:33:40 +0200 | [diff] [blame] | 61 | endif |
Patrick Georgi | 483ff82 | 2013-06-18 11:34:01 +0200 | [diff] [blame] | 62 | |
Stefan Reinauer | e5a0a5d | 2012-09-19 10:51:48 -0700 | [diff] [blame] | 63 | $(obj)/northbridge/intel/sandybridge/acpi.ramstage.o : $(obj)/build.h |