aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorLeah Rowe <info@minifree.org>2016-09-18 23:42:46 +0100
committerLeah Rowe <info@minifree.org>2016-09-18 23:42:46 +0100
commita0e9268386beaa2c751a485b4e9c7cc0cfbd0597 (patch)
tree06aa084e936a731064ed88ca9c726b49ca3d8c5a /resources
parentad33160814926407d6f3d5deb62d1edcba552263 (diff)
downloadlibrebootfr-a0e9268386beaa2c751a485b4e9c7cc0cfbd0597.tar.gz
librebootfr-a0e9268386beaa2c751a485b4e9c7cc0cfbd0597.zip
flashrom: add whitelist for imac52
Diffstat (limited to 'resources')
-rw-r--r--resources/flashrom/patch/0004-Add-board-enable-for-iMac5-2.patch22
-rwxr-xr-xresources/scripts/helpers/download/flashrom4
2 files changed, 26 insertions, 0 deletions
diff --git a/resources/flashrom/patch/0004-Add-board-enable-for-iMac5-2.patch b/resources/flashrom/patch/0004-Add-board-enable-for-iMac5-2.patch
new file mode 100644
index 00000000..f3ff98d1
--- /dev/null
+++ b/resources/flashrom/patch/0004-Add-board-enable-for-iMac5-2.patch
@@ -0,0 +1,22 @@
+From 1b0d44e2f81a7967e6a9caf07f25c029f4d06a47 Mon Sep 17 00:00:00 2001
+From: Arthur Heymans <arthur@aheymans.xyz>
+Date: Sun, 18 Sep 2016 20:35:50 +0200
+Subject: [PATCH] Add board enable for iMac5,2
+
+Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
+
+diff --git a/board_enable.c b/board_enable.c
+index 2f0c1c0..1b7b4ee 100644
+--- a/board_enable.c
++++ b/board_enable.c
+@@ -2326,6 +2326,7 @@ const struct board_match board_matches[] = {
+ {0x8086, 0x27b9, 0xa0a0, 0x0632, 0x8086, 0x27da, 0xa0a0, 0x0632, NULL, NULL, NULL, P3, "AOpen", "i945GMx-VFX", 0, OK, intel_ich_gpio38_raise},
+ {0x8086, 0x277c, 0xa0a0, 0x060b, 0x8086, 0x27da, 0xa0a0, 0x060b, NULL, NULL, NULL, P3, "AOpen", "i975Xa-YDG", 0, OK, board_aopen_i975xa_ydg},
+ {0x8086, 0x27A0, 0x8086, 0x7270, 0x8086, 0x27B9, 0x8086, 0x7270, "^MacBook2,1$", NULL, NULL, P2, "Apple", "MacBook2,1", 0, OK, p2_whitelist_laptop},
++ {0x8086, 0x27A0, 0x8086, 0x7270, 0x8086, 0x27B9, 0x8086, 0x7270, "^iMac5,2$", NULL, NULL, P2, "Apple", "iMac5,2", 0, OK, p2_whitelist_laptop},
+ {0x8086, 0x27b8, 0x1849, 0x27b8, 0x8086, 0x27da, 0x1849, 0x27da, "^ConRoeXFire-eSATA2", NULL, NULL, P3, "ASRock", "ConRoeXFire-eSATA2", 0, OK, intel_ich_gpio16_raise},
+ {0x1022, 0x1536, 0x1849, 0x1536, 0x1022, 0x780e, 0x1849, 0x780e, "^Kabini CRB$", NULL, NULL, P2, "ASRock", "IMB-A180(-H)", 0, OK, p2_not_a_laptop},
+ {0x1039, 0x0741, 0x1849, 0x0741, 0x1039, 0x5513, 0x1849, 0x5513, "^K7S41 $", NULL, NULL, P3, "ASRock", "K7S41", 0, OK, w836xx_memw_enable_2e},
+--
+2.9.3
+
diff --git a/resources/scripts/helpers/download/flashrom b/resources/scripts/helpers/download/flashrom
index e7a58949..8c361679 100755
--- a/resources/scripts/helpers/download/flashrom
+++ b/resources/scripts/helpers/download/flashrom
@@ -60,6 +60,10 @@ git am "../resources/flashrom/patch/0002-Add-whitelist-for-Taurinus-X200-laptop.
# for the user to run with the "-c" argument on these systems
printf "Patching flashchips.c to remove the redundant entries\n"
git am "../resources/flashrom/patch/0003-purged-chips.patch"
+
+# add whitelist for imac 5,2
+printf "Adding whitelist for Apple iMac 5,2\n"
+git am "../resources/flashrom/patch/0004-Add-board-enable-for-iMac5-2.patch"
)
printf "\n\n"