summaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-07-22 09:34:43 +0300
committerMarshall Dawson <marshalldawson3rd@gmail.com>2019-08-07 21:22:12 +0000
commita3cb61a55d70925c622f489f723f70d305bf0411 (patch)
tree2f528420f6c136d4400a1f11ffbbad9dc69b327e /Makefile.inc
parent73ee930a534238f12c0182d5652ae1fe1ddc1e17 (diff)
downloadcoreboot-a3cb61a55d70925c622f489f723f70d305bf0411.tar.gz
coreboot-a3cb61a55d70925c622f489f723f70d305bf0411.tar.bz2
coreboot-a3cb61a55d70925c622f489f723f70d305bf0411.zip
Makefile: Support HAVE_BOOTBLOCK=n case
With HAVE_BOOTBLOCK=n build of bootblock-class is skipped. Inserts an empty 64-byte bootblock-region to coreboot.rom file, cbfstool will fill in the CBFS master header relative location at the end. Change-Id: Iaee9200f72f31175aca597865e3c74fc68bec8a6 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34477 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 2cad2304d5f1..c275d1efa547 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -705,6 +705,11 @@ $(objcbfs)/bootblock.raw.bin: $(objcbfs)/bootblock.raw.elf
@printf " OBJCOPY $(notdir $(@))\n"
$(OBJCOPY_bootblock) -O binary $< $@
+ifneq ($(CONFIG_HAVE_BOOTBLOCK),y)
+$(objcbfs)/bootblock.bin:
+ dd if=/dev/zero of=$@ bs=64 count=1
+endif
+
$(objcbfs)/%.bin: $(objcbfs)/%.raw.bin
cp $< $@