From ad84062b0d0c8a6ca7fe28a4cd57b233b7faba97 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sun, 22 Sep 2019 13:00:56 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/35531 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson --- Makefile.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile.inc') 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 -- cgit v1.2.3