mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
fix(romlib): prevent race condition on the build directory
When building with many cores (-j64), there's a good chance that the rule to make the build directory is getting executed at the same time as the rule for romlib.ldflags. On my machine, the former is slower, resulting in romlib_generator.py not being able to write the file as the directory doesn't exist yet. Add an explicit dependency on the build directory for the target. This ensures that we have a build directory before we start putting stuff in it. Change-Id: I120b0dc66c692c759ab1046c735be405b41db87c Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
This commit is contained in:
parent
d684e7fbb3
commit
25cde5f810
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ $(BUILD_DIR)/jmptbl.s: $(BUILD_DIR)/jmptbl.i | $$(@D)/
|
|||
$(s)echo " TBL $@"
|
||||
$(q)$(ROMLIB_GEN) gentbl --output $@ --bti=$(ENABLE_BTI) $<
|
||||
|
||||
$(BUILD_DIR)/romlib.ldflags: ../../$(PLAT_DIR)/jmptbl.i
|
||||
$(BUILD_DIR)/romlib.ldflags: ../../$(PLAT_DIR)/jmptbl.i | $$(@D)/
|
||||
$(s)echo " LDFLAGS $@"
|
||||
$(q)$(ROMLIB_GEN) link-flags $< > $@
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue