From 3e60ad76e2cef38bc59f6055c677ea2d890e10fe Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Mon, 29 Dec 2014 21:13:49 -0500 Subject: 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. --- (limited to 'getflashrom') 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" -- cgit v0.9.1