Martin Roth | 9231f0b | 2022-10-28 22:39:23 -0600 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Felix Held | e04a18f | 2020-12-10 16:49:28 +0100 | [diff] [blame] | 2 | ifeq ($(CONFIG_PLATFORM_USES_FSP2_0),y) |
Felix Held | f3cdd01 | 2023-07-26 17:37:35 +0200 | [diff] [blame] | 3 | romstage-y += fsp_memmap.c |
Felix Held | e04a18f | 2020-12-10 16:49:28 +0100 | [diff] [blame] | 4 | romstage-y += fsp_reset.c |
Felix Held | 5b94f9a | 2024-01-18 21:10:59 +0100 | [diff] [blame] | 5 | romstage-y += fsp_romstage.c |
Felix Held | 8d268e9 | 2021-08-21 00:07:25 +0200 | [diff] [blame] | 6 | romstage-y += fsp_validate.c |
Matt DeVillier | b921483 | 2023-10-23 10:10:50 -0500 | [diff] [blame] | 7 | ramstage-y += fsp_graphics.c |
Felix Held | f3cdd01 | 2023-07-26 17:37:35 +0200 | [diff] [blame] | 8 | ramstage-y += fsp_memmap.c |
Felix Held | 4e818c5 | 2024-01-18 21:43:30 +0100 | [diff] [blame] | 9 | ramstage-y += fsp_ramstage.c |
Felix Held | 6b248a2 | 2023-07-26 16:42:46 +0200 | [diff] [blame] | 10 | ramstage-y += fsp_report_resources.c |
Felix Held | e04a18f | 2020-12-10 16:49:28 +0100 | [diff] [blame] | 11 | ramstage-y += fsp_reset.c |
Felix Held | 245adca | 2021-05-04 20:01:46 +0200 | [diff] [blame] | 12 | ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fsp-acpi.c |
Felix Held | 75547db | 2022-08-08 22:55:12 +0200 | [diff] [blame] | 13 | ramstage-$(CONFIG_SOC_AMD_COMMON_FSP_CCX_CPPC_HOB) += fsp_ccx_cppc_hob.c |
Nikolai Vyssotski | a289cdd | 2021-04-28 18:09:29 -0500 | [diff] [blame] | 14 | ramstage-$(CONFIG_SOC_AMD_COMMON_FSP_DMI_TABLES) += dmi.c |
Fred Reitberger | 330a7b5 | 2023-01-11 15:08:16 -0500 | [diff] [blame] | 15 | ramstage-$(CONFIG_SOC_AMD_COMMON_FSP_PRELOAD_FSPS) += preload_fsps.c |
Raul E Rangel | 36d50f8 | 2021-05-04 15:34:49 -0600 | [diff] [blame] | 16 | |
| 17 | subdirs-y += ./* |
| 18 | |
Felix Held | 4371bb9 | 2022-09-13 16:53:09 +0200 | [diff] [blame] | 19 | ifeq ($(CONFIG_ADD_FSP_BINARIES),y) |
Felix Held | e44dad3 | 2021-08-25 01:07:31 +0200 | [diff] [blame] | 20 | ifeq ($(call int-gt,\ |
Felix Held | db3337d | 2021-08-28 00:01:45 +0200 | [diff] [blame] | 21 | $(call file-size,$(CONFIG_FSP_M_FILE))\ |
Felix Held | e44dad3 | 2021-08-25 01:07:31 +0200 | [diff] [blame] | 22 | $(shell printf "%d" $(CONFIG_FSP_M_SIZE))),\ |
| 23 | 1) |
Akihiko Odaki | 64c0df58 | 2022-06-26 14:44:53 +0900 | [diff] [blame] | 24 | $(error FSP-M binary larger than FSP_M_SIZE.) |
Felix Held | e44dad3 | 2021-08-25 01:07:31 +0200 | [diff] [blame] | 25 | endif |
Felix Held | 4371bb9 | 2022-09-13 16:53:09 +0200 | [diff] [blame] | 26 | endif # CONFIG_ADD_FSP_BINARIES |
Felix Held | e44dad3 | 2021-08-25 01:07:31 +0200 | [diff] [blame] | 27 | |
Felix Held | e04a18f | 2020-12-10 16:49:28 +0100 | [diff] [blame] | 28 | endif # CONFIG_PLATFORM_USES_FSP2_0 |