1 ## SPDX-License-Identifier: GPL-2.0-only
2 ifeq ($(CONFIG_PLATFORM_USES_FSP2_0
),y
)
3 romstage-y
+= fsp_memmap.c
4 romstage-y
+= fsp_reset.c
5 romstage-y
+= fsp_romstage.c
6 romstage-y
+= fsp_validate.c
7 ramstage-y
+= fsp_graphics.c
8 ramstage-y
+= fsp_memmap.c
9 ramstage-y
+= fsp_ramstage.c
10 ramstage-y
+= fsp_report_resources.c
11 ramstage-y
+= fsp_reset.c
12 ramstage-
$(CONFIG_HAVE_ACPI_TABLES
) += fsp-acpi.c
13 ramstage-
$(CONFIG_SOC_AMD_COMMON_FSP_CCX_CPPC_HOB
) += fsp_ccx_cppc_hob.c
14 ramstage-
$(CONFIG_SOC_AMD_COMMON_FSP_DMI_TABLES
) += dmi.c
15 ramstage-
$(CONFIG_SOC_AMD_COMMON_FSP_PRELOAD_FSPS
) += preload_fsps.c
19 ifeq ($(CONFIG_ADD_FSP_BINARIES
),y
)
21 $(call file-size
,$(CONFIG_FSP_M_FILE
))\
22 $(shell printf
"%d" $(CONFIG_FSP_M_SIZE
))),\
24 $(error FSP-M binary larger than FSP_M_SIZE.
)
26 endif # CONFIG_ADD_FSP_BINARIES
28 endif # CONFIG_PLATFORM_USES_FSP2_0