Michał Żygowski has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/69819 )
Change subject: Makefile.inc: fix multiple jobs build issue ......................................................................
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 satisifed due to race condition and results in make error. Workaround it by adding fmap_config.h to stage C deps.
Signed-off-by: Michał Żygowski michal.zygowski@3mdeb.com Change-Id: I3a70beedf2eb1c018c5ff98163904253f9a87a61 --- M Makefile.inc 1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/19/69819/1
diff --git a/Makefile.inc b/Makefile.inc index b4c2cdf..7ba6354 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -646,6 +646,14 @@ 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)