Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 1 | # |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
Marc Jones | a1ccbf4 | 2016-09-20 20:27:46 -0600 | [diff] [blame] | 4 | # Copyright (C) 2011 - 2016 Advanced Micro Devices, Inc. |
Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 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 | # |
Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 15 | |
Bruce Griffith | fa0ab8c | 2014-10-22 03:37:57 -0600 | [diff] [blame] | 16 | subdirs-$(CONFIG_CPU_AMD_PI_00630F01) += 00630F01 |
Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 17 | subdirs-$(CONFIG_CPU_AMD_PI_00730F01) += 00730F01 |
Marc Jones | a1ccbf4 | 2016-09-20 20:27:46 -0600 | [diff] [blame] | 18 | subdirs-$(CONFIG_CPU_AMD_PI_00670F00) += 00670F00 |
WANG Siyuan | 597ee56 | 2015-05-20 14:36:06 +0800 | [diff] [blame] | 19 | subdirs-$(CONFIG_CPU_AMD_PI_00660F01) += 00660F01 |
Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 20 | |
| 21 | romstage-y += s3_resume.c |
| 22 | ramstage-y += s3_resume.c |
| 23 | ramstage-$(CONFIG_SPI_FLASH) += spi.c |
| 24 | |
Aaron Durbin | 439356f | 2015-09-02 22:23:11 -0500 | [diff] [blame] | 25 | cpu_incs-y += $(src)/cpu/amd/pi/cache_as_ram.inc |
Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 26 | |
| 27 | romstage-y += heapmanager.c |
| 28 | ramstage-y += heapmanager.c |
| 29 | ramstage-y += amd_late_init.c |
| 30 | |
| 31 | ifeq ($(CONFIG_HAVE_ACPI_RESUME), y) |
| 32 | |
| 33 | $(obj)/coreboot_s3nv.rom: $(obj)/config.h |
| 34 | echo " S3 NVRAM $(CONFIG_S3_DATA_POS) (S3 storage area)" |
| 35 | # force C locale, so cygwin awk doesn't try to interpret the 0xff below as UTF-8 (or worse) |
| 36 | printf %d $(CONFIG_S3_DATA_SIZE) | LC_ALL=C awk '{for (i=0; i<$$1; i++) {printf "%c", 255}}' > $@.tmp |
| 37 | mv $@.tmp $@ |
| 38 | |
| 39 | cbfs-files-y += s3nv |
| 40 | s3nv-file := $(obj)/coreboot_s3nv.rom |
| 41 | s3nv-position := $(CONFIG_S3_DATA_POS) |
| 42 | s3nv-type := raw |
| 43 | |
| 44 | endif # CONFIG_HAVE_ACPI_RESUME == y |