summaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorMichał Żygowski <michal.zygowski@3mdeb.com>2022-11-09 10:23:11 +0100
committerMichał Żygowski <michal.zygowski@3mdeb.com>2023-03-17 15:09:41 +0000
commitd054bbd4f1ba1675486df38afdc186d9f31760f1 (patch)
tree58c573f31553241ed821d0e43a87526c3b12e4da /Makefile.inc
parentd0d34f136c70f2d052737cd6f5ed3ceffa6229eb (diff)
downloadcoreboot-d054bbd4f1ba1675486df38afdc186d9f31760f1.tar.gz
coreboot-d054bbd4f1ba1675486df38afdc186d9f31760f1.tar.bz2
coreboot-d054bbd4f1ba1675486df38afdc186d9f31760f1.zip
Makefile.inc: fix multiple jobs build issue
Certain C source files for coreboot stages require fmap_config.h to be present. When building coreboot using multiple jobs the dependency is not always satisfied due to race condition and results in make error. Work around it by adding fmap_config.h to stage C deps. Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com> Change-Id: I3a70beedf2eb1c018c5ff98163904253f9a87a61 Reviewed-on: https://review.coreboot.org/c/coreboot/+/69819 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 9365a4abbbea..ba4f6fad1ec2 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -653,6 +653,14 @@ bootblock-c-deps+=$(DEVICETREE_STATIC_C)
postcar-c-deps+=$(DEVICETREE_STATIC_C)
smm-c-deps+=$(DEVICETREE_STATIC_C)
+# Ensure fmap_config.h are created before any objects are compiled
+ramstage-c-deps+=$(obj)/fmap_config.h
+romstage-c-deps+=$(obj)/fmap_config.h
+verstage-c-deps+=$(obj)/fmap_config.h
+bootblock-c-deps+=$(obj)/fmap_config.h
+postcar-c-deps+=$(obj)/fmap_config.h
+smm-c-deps+=$(obj)/fmap_config.h
+
.PHONY: devicetree
devicetree: $(DEVICETREE_STATIC_C)