drivers/smmstore/store.c: Add fmap_config.h dependency
This fixes building with -jx
Change-Id: I51efc03839c53b96fa248e6fe5dc0e00b773aa53
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61865
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
diff --git a/src/drivers/smmstore/Makefile.inc b/src/drivers/smmstore/Makefile.inc
index 90bcdec..6d9a9d6 100644
--- a/src/drivers/smmstore/Makefile.inc
+++ b/src/drivers/smmstore/Makefile.inc
@@ -1,4 +1,9 @@
ramstage-$(CONFIG_SMMSTORE) += store.c
+
+ifeq ($(CONFIG_SMMSTORE),y)
+$(call src-to-obj,ramstage,$(dir)/store.c) : $(obj)/fmap_config.h
+$(call src-to-obj,smm,$(dir)/store.c) : $(obj)/fmap_config.h
+endif
ramstage-$(CONFIG_SMMSTORE_V2) += ramstage.c
smm-$(CONFIG_SMMSTORE) += store.c smi.c