blob: 3c3c4fc6216d90e0508849151f3336a7f922ef51 [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
Kyösti Mälkkid4955f02017-09-08 07:14:17 +030016romstage-y += romstage.c
17romstage-y += mtrr_fixme.c
18romstage-y += state_machine.c
19
20ramstage-y += state_machine.c
21
Michał Żygowski1b12b642019-11-24 16:32:05 +010022ifneq ($(CONFIG_ROMCC_BOOTBLOCK),y)
23bootblock-y += bootblock.c
24bootblock-y += cache_as_ram.S
25else
Kyösti Mälkkid4955f02017-09-08 07:14:17 +030026cpu_incs-y += $(src)/drivers/amd/agesa/cache_as_ram.S
Michał Żygowski1b12b642019-11-24 16:32:05 +010027endif
28
Kyösti Mälkki56397362017-09-07 22:13:10 +030029postcar-y += exit_car.S
Kyösti Mälkkid4955f02017-09-08 07:14:17 +030030
Kyösti Mälkkid4955f02017-09-08 07:14:17 +030031romstage-y += def_callouts.c
32romstage-y += eventlog.c
33
34ramstage-y += def_callouts.c
35ramstage-y += eventlog.c
36ramstage-y += heapmanager.c
37ramstage-y += acpi_tables.c
38
39romstage-$(CONFIG_CPU_AMD_AGESA) += oem_s3.c
40ramstage-$(CONFIG_CPU_AMD_AGESA) += oem_s3.c s3_mtrr.c
41
42endif