blob: ab7e6ef64053078c68217bc7ccd0392daa99820c [file] [log] [blame]
Aaron Durbin76c37002012-10-30 09:03:43 -05001#
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
17# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18#
19
Kyösti Mälkkicb08e162013-10-15 17:19:41 +030020ramstage-y += ram_calc.c
Aaron Durbin76c37002012-10-30 09:03:43 -050021ramstage-y += northbridge.c
22ramstage-y += gma.c
23
Vladimir Serbinenko822bc652014-01-03 15:55:40 +010024ramstage-y += acpi.c
Aaron Durbin76c37002012-10-30 09:03:43 -050025ramstage-y += mrccache.c
Duncan Laurie0a7c49e2013-06-20 12:40:55 -070026ramstage-y += minihd.c
Aaron Durbin76c37002012-10-30 09:03:43 -050027
Kyösti Mälkkicb08e162013-10-15 17:19:41 +030028romstage-y += ram_calc.c
Aaron Durbin76c37002012-10-30 09:03:43 -050029romstage-y += raminit.c
30romstage-y += mrccache.c
31romstage-y += early_init.c
32romstage-y += report_platform.c
33romstage-y += ../../../arch/x86/lib/walkcbfs.S
34
Aaron Durbin76c37002012-10-30 09:03:43 -050035smm-$(CONFIG_HAVE_SMI_HANDLER) += finalize.c
36
37# We don't ship that, but booting without it is bound to fail
38cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
39mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE))
40mrc.bin-position := 0xfffa0000
Martin Roth72a8e5e2015-03-24 16:02:27 -060041mrc.bin-type := mrc
Aaron Durbin76c37002012-10-30 09:03:43 -050042
Kyösti Mälkki2fcf6f12014-12-27 21:04:53 +020043ifneq ($(CONFIG_CHROMEOS),y)
44$(obj)/mrc.cache: $(obj)/config.h
45 dd if=/dev/zero count=1 \
46 bs=$(shell printf "%d" $(CONFIG_MRC_CACHE_SIZE) ) | \
47 tr '\000' '\377' > $@
48
49cbfs-files-y += mrc.cache
50mrc.cache-file := $(obj)/mrc.cache
51mrc.cache-position := 0xfffe0000
Martin Roth72a8e5e2015-03-24 16:02:27 -060052mrc.cache-type := mrc_cache
Kyösti Mälkki2fcf6f12014-12-27 21:04:53 +020053endif
54