From d4bee5d0fb8b8775af2a0da356fce9d3bf8104bb Mon Sep 17 00:00:00 2001
From: Francis Rowe <info@gluglug.org.uk>
Date: Mon, 04 May 2015 09:58:54 -0400
Subject: Update coreboot + merge GM45 hybrid GPU patches

Also add power_on_after_fail to X200 and others (prevents the bug
where the system would boot when connecting the AC adapter)
(option in menuconfig to use CMOS/nvram settings is now enabled)

Also NetDCDC is now the default USB debug dongle used (compatible
with the BBB rev C).

Add two new methods for managing coreboot configs:
./build config corebootreplace
./build config corebootmodify
---
(limited to 'resources/scripts/helpers/download/coreboot')

diff --git a/resources/scripts/helpers/download/coreboot b/resources/scripts/helpers/download/coreboot
index 54ada0e..01ae142 100755
--- a/resources/scripts/helpers/download/coreboot
+++ b/resources/scripts/helpers/download/coreboot
@@ -44,11 +44,37 @@ git clone http://review.coreboot.org/coreboot
 cd coreboot/
 
 # reset to previously tested revision
-git reset --hard 8e3da749ed912834ddf9b78bff956a2b7d269945
+# git reset --hard e19c8b0091022ae3f490601aed0c290cd5171b79
+# ^ currently, the first patch is downloaded using "checkout" so this automatically
+# branches from the git revision that it was uploaded for. that would be 
+# e19c8b0091022ae3f490601aed0c290cd5171b79
 
 # Get patches from review.coreboot.org
 # ------------------------------------------------------------------------------
 
+# ----
+
+printf "Downloading patches for T400 (hybrid graphics and other fixes)"
+git fetch http://review.coreboot.org/coreboot refs/changes/31/9331/7 && git checkout FETCH_HEAD
+
+# Downloads these patches:
+# http://review.coreboot.org/#/c/9318/
+# http://review.coreboot.org/#/c/9330/
+# http://review.coreboot.org/#/c/9329/
+# http://review.coreboot.org/#/c/9370/
+# http://review.coreboot.org/#/c/9321/
+# http://review.coreboot.org/#/c/9332/
+# http://review.coreboot.org/#/c/9316
+# http://review.coreboot.org/#/c/9317/
+# http://review.coreboot.org/#/c/9319
+# http://review.coreboot.org/#/c/9320/
+# http://review.coreboot.org/#/c/9331/
+
+# Related - hard-code enable integrated-only GPU (GM45):
+git fetch http://review.coreboot.org/coreboot refs/changes/90/10090/2 && git cherry-pick FETCH_HEAD
+
+# ----
+
 printf "Text mode patch for X60 native graphics (main patch already merged in coreboot. See 6723 on coreboot gerrit)\n"
 git fetch http://review.coreboot.org/coreboot refs/changes/25/6725/3 && git cherry-pick FETCH_HEAD
 
@@ -76,12 +102,10 @@ git fetch http://review.coreboot.org/coreboot refs/changes/86/7786/1 && git cher
 printf "fix uneven backlight on X200 (when setting brightness low)\n"
 git fetch http://review.coreboot.org/coreboot refs/changes/79/7979/1 && git cherry-pick FETCH_HEAD
 
-printf "ThinkPad R400 support\n"
-git fetch http://review.coreboot.org/coreboot refs/changes/93/8393/2 && git cherry-pick FETCH_HEAD
-printf "ThinkPad T400 (depends on R400 patch)\n"
-git fetch http://review.coreboot.org/coreboot refs/changes/14/8714/4 && git cherry-pick FETCH_HEAD
+printf "ThinkPad R400 support (clone of the T400)\n"
+git fetch http://review.coreboot.org/coreboot refs/changes/93/8393/3 && git cherry-pick FETCH_HEAD
 printf "ThinkPad T500 (depends on T400 patch)\n"
-git fetch http://review.coreboot.org/coreboot refs/changes/81/9181/1 && git cherry-pick FETCH_HEAD
+git fetch http://review.coreboot.org/coreboot refs/changes/81/9181/2 && git cherry-pick FETCH_HEAD
 
 # Run coreboot-libre deblob scripts
 # ------------------------------------------------------------------------------
--
cgit v0.9.1