summaryrefslogtreecommitdiffstats
path: root/getflashrom
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-29 21:13:49 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-12-29 21:30:36 (EST)
commit3e60ad76e2cef38bc59f6055c677ea2d890e10fe (patch)
tree782a8a0bb988aae3db5847aae9d56e832e480056 /getflashrom
parent05d821cecb953efd2cbc2d7cb21278a33a59000b (diff)
downloadlibreboot-3e60ad76e2cef38bc59f6055c677ea2d890e10fe.zip
libreboot-3e60ad76e2cef38bc59f6055c677ea2d890e10fe.tar.gz
libreboot-3e60ad76e2cef38bc59f6055c677ea2d890e10fe.tar.bz2
Removed redundant flashchip definitions in flashrom
For X200 owners with one of the Macronix flash chips. There are multiple definitions for almost the same chip, and they are all detected at once. Normally the user has to use the -c argument in flashrom to select a flash chip. With this modification, they can run flashrom without the argument. Deletion of redundant flash chip definitions is now also handled by getflashrom instead of builddeps-flashrom. builddeps-flashrom now only patches for i945 lenovo bios sst/macronix.
Diffstat (limited to 'getflashrom')
-rwxr-xr-xgetflashrom8
1 files changed, 8 insertions, 0 deletions
diff --git a/getflashrom b/getflashrom
index 2a20b14..b74ff6e 100755
--- a/getflashrom
+++ b/getflashrom
@@ -36,9 +36,17 @@ rm -rf flashrom
svn co -r 1858 svn://flashrom.org/flashrom/trunk flashrom
# apply patches
+
cd flashrom/
+
# Add whitelist for X200:
patch board_enable.c < ../resources/flashrom/patch/x200whitelist.diff
+
+# Remove redundant definitions for the flash chips that
+# supported libreboot machines use. This removes the need
+# for the user to run with the "-c" argument on these machines
+patch flashchips.c < ../resources/flashrom/patch/purged_chips.diff
+
cd ../
echo "FINISHED DOWNLOADING FLASHROM"