summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/amd/common/block/psp/Makefile.inc6
1 files changed, 5 insertions, 1 deletions
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)