diff --git a/src/soc/amd/common/fsp/Makefile.inc b/src/soc/amd/common/fsp/Makefile.inc index 251e4a7f83..827e4d1e7d 100644 --- a/src/soc/amd/common/fsp/Makefile.inc +++ b/src/soc/amd/common/fsp/Makefile.inc @@ -8,15 +8,13 @@ ramstage-$(CONFIG_SOC_AMD_COMMON_FSP_DMI_TABLES) += dmi.c subdirs-y += ./* -ifeq ($(CONFIG_FSP_M_FILE),) -$(info There's no FSP-M binary file specified. The resulting image won't boot successfully.) -else +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_FILE.) endif -endif # CONFIG_FSP_M_FILE +endif # CONFIG_ADD_FSP_BINARIES endif # CONFIG_PLATFORM_USES_FSP2_0