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>
This commit is contained in:
Martin Roth 2019-09-22 13:00:56 -06:00 committed by Patrick Georgi
parent 431d0083a8
commit ad84062b0d
1 changed files with 2 additions and 2 deletions

View File

@ -504,7 +504,7 @@ $(build_h): $$(shell $$(build_h_check))
@printf " GEN build.h\n" @printf " GEN build.h\n"
mv $< $@ mv $< $@
build-dirs: build-dirs $(objcbfs) $(objgenerated):
mkdir -p $(objcbfs) $(objgenerated) mkdir -p $(objcbfs) $(objgenerated)
####################################################################### #######################################################################
@ -706,7 +706,7 @@ $(objcbfs)/bootblock.raw.bin: $(objcbfs)/bootblock.raw.elf
$(OBJCOPY_bootblock) -O binary $< $@ $(OBJCOPY_bootblock) -O binary $< $@
ifneq ($(CONFIG_HAVE_BOOTBLOCK),y) ifneq ($(CONFIG_HAVE_BOOTBLOCK),y)
$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.bin: $(objcbfs)
dd if=/dev/zero of=$@ bs=64 count=1 dd if=/dev/zero of=$@ bs=64 count=1
endif endif