blob: 4d3dbf5cb99289971d7868ee2bd083235591d84d [file] [log] [blame]
Kyösti Mälkkid4955f02017-09-08 07:14:17 +03001#
2# This file is part of the coreboot project.
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; version 2 of the License.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13
14ifeq ($(CONFIG_DRIVERS_AMD_PI),y)
15
16ifneq ($(CONFIG_AGESA_LEGACY_WRAPPER)$(CONFIG_BINARYPI_LEGACY_WRAPPER),y)
17
18romstage-y += romstage.c
19romstage-y += mtrr_fixme.c
20romstage-y += state_machine.c
21
22ramstage-y += state_machine.c
23
24cpu_incs-y += $(src)/drivers/amd/agesa/cache_as_ram.S
25postcar-y += cache_as_ram.S
26
27else
28
29romstage-y += heapmanager.c
30
31endif
32
33romstage-y += def_callouts.c
34romstage-y += eventlog.c
35
36ramstage-y += def_callouts.c
37ramstage-y += eventlog.c
38ramstage-y += heapmanager.c
39ramstage-y += acpi_tables.c
40
41romstage-$(CONFIG_CPU_AMD_AGESA) += oem_s3.c
42ramstage-$(CONFIG_CPU_AMD_AGESA) += oem_s3.c s3_mtrr.c
43
44endif