summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2015-12-14 22:04:54 +0100
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-12-16 00:43:22 +0100
commitb619f44c67f98e2c93492c643f15be909ca4c99d (patch)
tree9d1a47c9646af94e5c7d5ee3c066560fc3cb08e1 /src
parent747d0f898b254b400a62cf00ef3cd7e246db9b86 (diff)
build system/x86: depend on directories before touch /empty targets
$(objgenerated)/empty would touch files before the directory is created on parallel builds. Thanks to reproducible-builds.org for hitting this bug. Change-Id: I7565e9fe130b4e9deaf1c7b9d568ff90b00dda52 Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Reviewed-on: https://review.coreboot.org/12717 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index d552aa2894..9713d52931 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -87,7 +87,7 @@ bootblock_romccflags := -mcpu=k7 -msse -O2 -D__PRE_RAM__ -D__BOOTBLOCK__
endif
# This is a hack in case there are no per chipset linker files.
-$(objgenerated)/empty:
+$(objgenerated)/empty: build-dirs
touch $@
$(objgenerated)/bootblock.ld: $$(filter-out $(obj)/arch/x86/bootblock.bootblock.ld, $$(filter %.ld,$$(bootblock-objs))) $(objgenerated)/empty