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@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