summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-29 18:40:17 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-12-29 19:27:05 (EST)
commit05d821cecb953efd2cbc2d7cb21278a33a59000b (patch)
tree7f54bcb8f40e3c5621f52a2341b8654e8d920e70
parent4806ec8129986d6a608c1deb10413b4ff17315d0 (diff)
downloadlibreboot-05d821cecb953efd2cbc2d7cb21278a33a59000b.zip
libreboot-05d821cecb953efd2cbc2d7cb21278a33a59000b.tar.gz
libreboot-05d821cecb953efd2cbc2d7cb21278a33a59000b.tar.bz2
X200: add whitelist to flashrom
A future release of flashrom will have this upstreamed. Adding to libreboot temporarily as an external patch.
-rw-r--r--docs/release.html1
-rwxr-xr-xgetflashrom7
-rw-r--r--resources/flashrom/patch/x200whitelist.diff10
3 files changed, 16 insertions, 2 deletions
diff --git a/docs/release.html b/docs/release.html
index 51f77dc..2d8ce38 100644
--- a/docs/release.html
+++ b/docs/release.html
@@ -120,6 +120,7 @@
Changes for this release (latest changes first, earliest changes last)
</h2>
<ul>
+ <li>Flashrom: added whitelist for ThinkPad X200.</li>
<li>X200: fixed uneven backlight (at low levels)</li>
<li>ich9deblob: added new utility <b>ich9gen</b>: this can generate a descriptor+gbe image without a factory.rom dump present.</li>
<li>Modified ich9deblob to use a struct for Gbe, documenting everything.</li>
diff --git a/getflashrom b/getflashrom
index 23d0562..2a20b14 100755
--- a/getflashrom
+++ b/getflashrom
@@ -35,8 +35,11 @@ rm -rf flashrom
# download it using subversion
svn co -r 1858 svn://flashrom.org/flashrom/trunk flashrom
-# there are no permanent patches needed to be applied here:
-# the patches are applied selectively at build time (when running "builddeps-flashrom")
+# apply patches
+cd flashrom/
+# Add whitelist for X200:
+patch board_enable.c < ../resources/flashrom/patch/x200whitelist.diff
+cd ../
echo "FINISHED DOWNLOADING FLASHROM"
diff --git a/resources/flashrom/patch/x200whitelist.diff b/resources/flashrom/patch/x200whitelist.diff
new file mode 100644
index 0000000..c951a8a
--- /dev/null
+++ b/resources/flashrom/patch/x200whitelist.diff
@@ -0,0 +1,10 @@
+--- board_enable.c 2014-12-29 23:30:27.061938702 +0000
++++ board_enable.x200whitelist.c 2014-12-29 23:30:47.262039193 +0000
+@@ -2427,6 +2427,7 @@
+ {0x8086, 0x1E22, 0x17AA, 0x21F6, 0x8086, 0x1E55, 0x17AA, 0x21F6, "^ThinkPad T530", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad T530", 0, OK, p2_whitelist_laptop},
+ {0x8086, 0x27a0, 0x17aa, 0x2015, 0x8086, 0x27b9, 0x17aa, 0x2009, "^ThinkPad T60", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad T60", 0, OK, p2_whitelist_laptop},
+ {0x8086, 0x27a0, 0x17aa, 0x2017, 0x8086, 0x27b9, 0x17aa, 0x2009, "^ThinkPad T60", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad T60(s)", 0, OK, p2_whitelist_laptop},
++ {0x8086, 0x2917, 0x17AA, 0x20F5, 0x8086, 0x2930, 0x17AA, 0x20F9, "^ThinkPad X200$", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad X200", 0, OK, p2_whitelist_laptop},
+ {0x8086, 0x3B07, 0x17AA, 0x2166, 0x8086, 0x3B30, 0x17AA, 0x2167, "^Lenovo X201", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad X201", 0, OK, p2_whitelist_laptop},
+ {0x8086, 0x1E22, 0x17AA, 0x21FA, 0x8086, 0x1E55, 0x17AA, 0x21FA, "^ThinkPad X230", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad X230", 0, OK, p2_whitelist_laptop},
+ {0x8086, 0x27A0, 0x17AA, 0x2017, 0x8086, 0x27B9, 0x17AA, 0x2009, "^ThinkPad X60", NULL, NULL, P2, "IBM/Lenovo", "ThinkPad X60(s)", 0, OK, p2_whitelist_laptop},