aboutsummaryrefslogtreecommitdiff
path: root/resources/depthcharge/patch/0002-Coreboot-image-integration-removal.patch
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2015-10-11 17:48:46 +0200
committerFrancis Rowe <info@gluglug.org.uk>2015-10-11 20:16:26 +0100
commitd8b597f33e75d04b84be7c9d7081a3b97821617d (patch)
tree8ad2d64ba4dff4cb6cfc1d9f7ecdc2c9cda8d19c /resources/depthcharge/patch/0002-Coreboot-image-integration-removal.patch
parentd6b6b1ea62f555f38152ab475d98c57f739f8b8d (diff)
downloadlibrebootfr-d8b597f33e75d04b84be7c9d7081a3b97821617d.tar.gz
librebootfr-d8b597f33e75d04b84be7c9d7081a3b97821617d.zip
Chromebook C201 (codename veyron_speedy) support
This introduces Libreboot support for the Asus Chromebook C201 (codename veyron_speedy). At this point, this produces a standalone Libreboot image that can be flashed to the RO Coreboot partition of the SPI flash, as well as the Libreboot version that can be flash to the RO Firmware ID partition. Libreboot on the Chromebook C201 uses the depthcharge bootloader, modified to display text messages instead of ChromeOS bitmaps (that encourage the use of ChromeOS). For convenience, an installation script, chromebook-flash-replace, is provided along with a description of the flash layout, to ease the replacement of the Coreboot and RO Firmware ID partitions on the full SPI flash image. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'resources/depthcharge/patch/0002-Coreboot-image-integration-removal.patch')
-rw-r--r--resources/depthcharge/patch/0002-Coreboot-image-integration-removal.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/resources/depthcharge/patch/0002-Coreboot-image-integration-removal.patch b/resources/depthcharge/patch/0002-Coreboot-image-integration-removal.patch
new file mode 100644
index 00000000..28ee21ad
--- /dev/null
+++ b/resources/depthcharge/patch/0002-Coreboot-image-integration-removal.patch
@@ -0,0 +1,33 @@
+From 4e7d727edf1939904bc516d569ceef9e295f454c Mon Sep 17 00:00:00 2001
+From: Paul Kocialkowski <contact@paulk.fr>
+Date: Mon, 3 Aug 2015 14:49:34 +0200
+Subject: [PATCH 2/7] Coreboot image integration removal
+
+There is no need to integrate the built depthcharge binary inside a coreboot
+image right after building it, coreboot will handle this on its own.
+
+Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
+---
+ src/Makefile.inc | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/src/Makefile.inc b/src/Makefile.inc
+index a73785b..564dd13 100644
+--- a/src/Makefile.inc
++++ b/src/Makefile.inc
+@@ -77,12 +77,6 @@ $(eval $(call declare_bin,$1,$2 $$$$(VB_LIB),$3))
+
+ $1.payload: $1.elf
+ @printf " PAYLOAD $$(subst $$(obj)/,,$$@)\n"
+- $$(Q)-rm -f $1.rom $1.bb
+- $$(Q)dd if=/dev/zero of=$1.bb bs=512 count=1
+- $$(Q)cbfstool $1.rom create -m $$(ARCH) -s 1024K -B $1.bb
+- $$(Q)cbfstool $1.rom add-payload -f $$< -n dc.elf -c lzma
+- $$(Q)cbfstool $1.rom extract -n dc.elf -f $$@
+- $$(Q)rm -f $1.rom $1.bb
+
+ $(notdir $1)_unified: $1.bin $1.payload
+ PHONY += $(notdir $1)_unified
+--
+1.9.1
+