From 655caa2da0527c92d269d34f5c094d811f420070 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 17 Feb 2022 17:50:07 +0100 Subject: soc/amd/common/block/psp/Makefile: add fmap_config.h dependency Compiling efs_fmap_check.c depends on fmap_config.h already being generated, so add this dependency. Signed-off-by: Felix Held Change-Id: I85e0900574f928d1594f8d1831ba58f959b75d27 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62132 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- src/soc/amd/common/block/psp/Makefile.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/soc/amd/common/block/psp/Makefile.inc b/src/soc/amd/common/block/psp/Makefile.inc index 5bae663021..4efaf0f2a5 100644 --- a/src/soc/amd/common/block/psp/Makefile.inc +++ b/src/soc/amd/common/block/psp/Makefile.inc @@ -6,9 +6,13 @@ smm-y += psp.c smm-y += psp_smm.c bootblock-y += psp_efs.c -bootblock-$(CONFIG_AMD_SOC_SEPARATE_EFS_SECTION) += efs_fmap_check.c verstage-y += psp_efs.c +ifeq ($(CONFIG_AMD_SOC_SEPARATE_EFS_SECTION),y) +bootblock-y += efs_fmap_check.c +$(call src-to-obj,bootblock,$(dir)/efs_fmap_check.c) : $(obj)/fmap_config.h +endif # CONFIG_AMD_SOC_SEPARATE_EFS_SECTION + endif # CONFIG_SOC_AMD_COMMON_BLOCK_PSP ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_PSP_GEN1),y) -- cgit v1.2.3