summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/fsp/Makefile.inc
blob: fb78f5292528d981221f130e4e7b26a90119eada (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## SPDX-License-Identifier: GPL-2.0-only
ifeq ($(CONFIG_PLATFORM_USES_FSP2_0),y)
romstage-y += fsp_memmap.c
romstage-y += fsp_reset.c
romstage-y += fsp_romstage.c
romstage-y += fsp_validate.c
ramstage-y += fsp_graphics.c
ramstage-y += fsp_memmap.c
ramstage-y += fsp_ramstage.c
ramstage-y += fsp_report_resources.c
ramstage-y += fsp_reset.c
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fsp-acpi.c
ramstage-$(CONFIG_SOC_AMD_COMMON_FSP_CCX_CPPC_HOB) += fsp_ccx_cppc_hob.c
ramstage-$(CONFIG_SOC_AMD_COMMON_FSP_DMI_TABLES) += dmi.c
ramstage-$(CONFIG_SOC_AMD_COMMON_FSP_PRELOAD_FSPS) += preload_fsps.c

subdirs-y += ./*

ifeq ($(CONFIG_ADD_FSP_BINARIES),y)
ifeq ($(call int-gt,\
	$(call file-size,$(CONFIG_FSP_M_FILE))\
	$(shell printf "%d" $(CONFIG_FSP_M_SIZE))),\
	1)
$(error FSP-M binary larger than FSP_M_SIZE.)
endif
endif # CONFIG_ADD_FSP_BINARIES

endif # CONFIG_PLATFORM_USES_FSP2_0