summaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorMartin Roth <martinroth@chromium.org>2019-09-22 13:00:56 -0600
committerPatrick Georgi <pgeorgi@google.com>2019-09-24 10:36:24 +0000
commitad84062b0d0c8a6ca7fe28a4cd57b233b7faba97 (patch)
tree7cd34be070252e352c8a7bbe251564fe90225527 /Makefile.inc
parent431d0083a86df5e08c63e621a587e182b1af46f1 (diff)
downloadcoreboot-ad84062b0d0c8a6ca7fe28a4cd57b233b7faba97.tar.gz
coreboot-ad84062b0d0c8a6ca7fe28a4cd57b233b7faba97.tar.bz2
coreboot-ad84062b0d0c8a6ca7fe28a4cd57b233b7faba97.zip
Makefile: Create the build directory before bootblock.bin
This was causing a failure when building platforms with no bootblock when building with make -jXX Change-Id: Ic4cd4fe8ac82bd1e9ce114dbd53763538d125af3 Signed-off-by: Martin Roth <martinroth@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35531 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 3c3088d5ff7a..86764045a650 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -504,7 +504,7 @@ $(build_h): $$(shell $$(build_h_check))
@printf " GEN build.h\n"
mv $< $@
-build-dirs:
+build-dirs $(objcbfs) $(objgenerated):
mkdir -p $(objcbfs) $(objgenerated)
#######################################################################
@@ -706,7 +706,7 @@ $(objcbfs)/bootblock.raw.bin: $(objcbfs)/bootblock.raw.elf
$(OBJCOPY_bootblock) -O binary $< $@
ifneq ($(CONFIG_HAVE_BOOTBLOCK),y)
-$(objcbfs)/bootblock.bin:
+$(objcbfs)/bootblock.bin: $(objcbfs)
dd if=/dev/zero of=$@ bs=64 count=1
endif