<p>Tristan Hsieh has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27528">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mediatek/mt8183: Separate bootblock from coreboot image<br><br>We have to separate bootblock from coreboot image since MT8183 must<br>load bootblock from eMMC, and everything else gets loaded from SPI NOR.<br>So, we create a 0 byte bootblock.bin for the generic build system, and<br>pack bootblock.raw.bin to a new file emmc_bootblock.bin.<br><br>BUG=b:80501386<br>BRANCH=none<br>TEST=Boots correctly on Kukui<br><br>Change-Id: I2f0725dbf74120a3b0ba09363f6b673b8d20be5d<br>Signed-off-by: Tristan Shieh <tristan.shieh@mediatek.com><br>---<br>M src/soc/mediatek/mt8183/Makefile.inc<br>1 file changed, 6 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/28/27528/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/soc/mediatek/mt8183/Makefile.inc b/src/soc/mediatek/mt8183/Makefile.inc</span><br><span>index ca59d34..89bfc94 100644</span><br><span>--- a/src/soc/mediatek/mt8183/Makefile.inc</span><br><span>+++ b/src/soc/mediatek/mt8183/Makefile.inc</span><br><span>@@ -38,7 +38,12 @@</span><br><span> CPPFLAGS_common += -Isrc/soc/mediatek/mt8183/include</span><br><span> CPPFLAGS_common += -Isrc/soc/mediatek/common/include</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin</span><br><span style="color: hsl(120, 100%, 40%);">+$(objcbfs)/bootblock.bin:</span><br><span style="color: hsl(120, 100%, 40%);">+    truncate -s 0 $@</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+$(objcbfs)/emmc_bootblock.bin: $(objcbfs)/bootblock.raw.bin</span><br><span>      ./util/mtkheader/gen-bl-img.py mt8183 emmc $< $@</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+coreboot: $(objcbfs)/emmc_bootblock.bin</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> endif</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27528">change 27528</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/27528"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I2f0725dbf74120a3b0ba09363f6b673b8d20be5d </div>
<div style="display:none"> Gerrit-Change-Number: 27528 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Tristan Hsieh <tristan.shieh@mediatek.com> </div>