[coreboot-gerrit] Change in coreboot[master]: mediatek/mt8183: Separate bootblock from coreboot image

Tristan Hsieh (Code Review) gerrit at coreboot.org
Wed Jul 18 15:06:45 CEST 2018


Tristan Hsieh has uploaded this change for review. ( https://review.coreboot.org/27528


Change subject: mediatek/mt8183: Separate bootblock from coreboot image
......................................................................

mediatek/mt8183: Separate bootblock from coreboot image

We have to separate bootblock from coreboot image since MT8183 must
load bootblock from eMMC, and everything else gets loaded from SPI NOR.
So, we create a 0 byte bootblock.bin for the generic build system, and
pack bootblock.raw.bin to a new file emmc_bootblock.bin.

BUG=b:80501386
BRANCH=none
TEST=Boots correctly on Kukui

Change-Id: I2f0725dbf74120a3b0ba09363f6b673b8d20be5d
Signed-off-by: Tristan Shieh <tristan.shieh at mediatek.com>
---
M src/soc/mediatek/mt8183/Makefile.inc
1 file changed, 6 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/28/27528/1

diff --git a/src/soc/mediatek/mt8183/Makefile.inc b/src/soc/mediatek/mt8183/Makefile.inc
index ca59d34..89bfc94 100644
--- a/src/soc/mediatek/mt8183/Makefile.inc
+++ b/src/soc/mediatek/mt8183/Makefile.inc
@@ -38,7 +38,12 @@
 CPPFLAGS_common += -Isrc/soc/mediatek/mt8183/include
 CPPFLAGS_common += -Isrc/soc/mediatek/common/include
 
-$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
+$(objcbfs)/bootblock.bin:
+	truncate -s 0 $@
+
+$(objcbfs)/emmc_bootblock.bin: $(objcbfs)/bootblock.raw.bin
 	./util/mtkheader/gen-bl-img.py mt8183 emmc $< $@
 
+coreboot: $(objcbfs)/emmc_bootblock.bin
+
 endif

-- 
To view, visit https://review.coreboot.org/27528
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2f0725dbf74120a3b0ba09363f6b673b8d20be5d
Gerrit-Change-Number: 27528
Gerrit-PatchSet: 1
Gerrit-Owner: Tristan Hsieh <tristan.shieh at mediatek.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180718/35f4d112/attachment-0001.html>


More information about the coreboot-gerrit mailing list