blob: 1dd7f76712fa16960d5edbdc18a28b6e3d0bf8d7 [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#
Aaron Durbin76c37002012-10-30 09:03:43 -050015
Stefan Reinauere1133b72015-04-27 14:04:38 -070016ifeq ($(CONFIG_NORTHBRIDGE_INTEL_HASWELL),y)
17
Kyösti Mälkkicb08e162013-10-15 17:19:41 +030018ramstage-y += ram_calc.c
Aaron Durbin76c37002012-10-30 09:03:43 -050019ramstage-y += northbridge.c
20ramstage-y += gma.c
21
Vladimir Serbinenko822bc652014-01-03 15:55:40 +010022ramstage-y += acpi.c
Aaron Durbin76c37002012-10-30 09:03:43 -050023ramstage-y += mrccache.c
Duncan Laurie0a7c49e2013-06-20 12:40:55 -070024ramstage-y += minihd.c
Aaron Durbin76c37002012-10-30 09:03:43 -050025
Kyösti Mälkkicb08e162013-10-15 17:19:41 +030026romstage-y += ram_calc.c
Aaron Durbin76c37002012-10-30 09:03:43 -050027romstage-y += raminit.c
28romstage-y += mrccache.c
29romstage-y += early_init.c
30romstage-y += report_platform.c
Stefan Reinauer6cb3a592015-07-13 09:39:15 +020031romstage-y += ../../../arch/x86/walkcbfs.S
Aaron Durbin76c37002012-10-30 09:03:43 -050032
Aaron Durbin76c37002012-10-30 09:03:43 -050033smm-$(CONFIG_HAVE_SMI_HANDLER) += finalize.c
34
35# We don't ship that, but booting without it is bound to fail
36cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
37mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE))
38mrc.bin-position := 0xfffa0000
Martin Roth72a8e5e2015-03-24 16:02:27 -060039mrc.bin-type := mrc
Aaron Durbin76c37002012-10-30 09:03:43 -050040
Kyösti Mälkki2fcf6f12014-12-27 21:04:53 +020041ifneq ($(CONFIG_CHROMEOS),y)
42$(obj)/mrc.cache: $(obj)/config.h
43 dd if=/dev/zero count=1 \
44 bs=$(shell printf "%d" $(CONFIG_MRC_CACHE_SIZE) ) | \
45 tr '\000' '\377' > $@
46
47cbfs-files-y += mrc.cache
48mrc.cache-file := $(obj)/mrc.cache
Alexandru Gagniuc2c482a92015-09-07 01:54:23 -070049mrc.cache-align := 0x10000
Martin Roth72a8e5e2015-03-24 16:02:27 -060050mrc.cache-type := mrc_cache
Kyösti Mälkki2fcf6f12014-12-27 21:04:53 +020051endif
52
Stefan Reinauere1133b72015-04-27 14:04:38 -070053endif