summaryrefslogtreecommitdiffstats
path: root/resources/scripts
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-03-17 16:49:45 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-03-18 00:03:08 (EDT)
commitccc09ce5b6e39fed38434d9e97574d84c425bc65 (patch)
tree7dea151f3246a9f595280c18f70855e1beeae17f /resources/scripts
parentc164960b3b600a4da564b58645b776bbb5f4a016 (diff)
downloadlibreboot-ccc09ce5b6e39fed38434d9e97574d84c425bc65.zip
libreboot-ccc09ce5b6e39fed38434d9e97574d84c425bc65.tar.gz
libreboot-ccc09ce5b6e39fed38434d9e97574d84c425bc65.tar.bz2
New board: ThinkPad T400
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/helpers/build/config/corebootupdate41
-rwxr-xr-xresources/scripts/helpers/build/release/archives2
-rwxr-xr-xresources/scripts/helpers/build/roms/helper6
-rwxr-xr-xresources/scripts/helpers/build/roms/withgrub2
-rwxr-xr-xresources/scripts/helpers/download/coreboot2
5 files changed, 48 insertions, 5 deletions
diff --git a/resources/scripts/helpers/build/config/corebootupdate b/resources/scripts/helpers/build/config/corebootupdate
new file mode 100755
index 0000000..2261148
--- /dev/null
+++ b/resources/scripts/helpers/build/config/corebootupdate
@@ -0,0 +1,41 @@
+#!/bin/bash
+
+#
+# helper script: run "make oldconfig" on all coreboot config files
+#
+# Copyright (C) 2014, 2015 Francis Rowe <info@gluglug.org.uk>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+# This script assumes that the working directory is the root
+# of libreboot_src or git
+
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
+
+cd resources/libreboot/config/
+configs=$(ls)
+
+cd ../../../coreboot/
+for config in $configs; do
+ printf "Updating config for $config\n"
+ sleep 2
+
+ mv ../resources/libreboot/config/$config/config .config
+ make oldconfig
+ mv .config ../resources/libreboot/config/$config/config
+done
+
+cd ../
diff --git a/resources/scripts/helpers/build/release/archives b/resources/scripts/helpers/build/release/archives
index 5d8761f..af7899f 100755
--- a/resources/scripts/helpers/build/release/archives
+++ b/resources/scripts/helpers/build/release/archives
@@ -366,7 +366,7 @@ cp coreboot/src/mainboard/lenovo/x200/cmos.layout libreboot_util/cmoslayouts/x20
# Flashing script
cp flash libreboot_util/
-# ich9macchange script (change MAC address on X200 ROMs, using ich9gen)
+# ich9macchange script, for changing the MAC address on GM45 targets
cp resources/scripts/misc/ich9macchange libreboot_util/
# for changing the GRUB background
diff --git a/resources/scripts/helpers/build/roms/helper b/resources/scripts/helpers/build/roms/helper
index 983be3d..8fde114 100755
--- a/resources/scripts/helpers/build/roms/helper
+++ b/resources/scripts/helpers/build/roms/helper
@@ -52,11 +52,11 @@ fi
for romtype in txtmode vesafb
do
- if [ "$1" = "x200_8mb" ] || [ "$1" = "x200_4mb" ] || [ "$1" = "r400_8mb" ] || [ "$1" = "r400_4mb" ]
+ if [ "$1" = "x200_8mb" ] || [ "$1" = "x200_4mb" ] || [ "$1" = "r400_8mb" ] || [ "$1" = "r400_4mb" ] || [ "$1" = "t400_8mb" ] || [ "$1" = "t400_4mb" ]
then
if [ "$romtype" = "txtmode" ]
then
- echo "Text mode graphics is currently broken on X200 and R400. Only framebuffer mode works."
+ echo "Text mode graphics is currently broken on X200, R400 and T400. Only framebuffer mode works."
continue
fi
fi
@@ -74,7 +74,7 @@ do
# Add the background image
if [ "$romtype" = "vesafb" ]
then
- if [ "$1" = "macbook21" ] || [ "$1" = "x200_4mb" ] || [ "$1" = "x200_8mb" ] || [ "$1" = "r400_4mb" ] || [ "$1" = "r400_8mb" ]
+ if [ "$1" = "macbook21" ] || [ "$1" = "x200_4mb" ] || [ "$1" = "x200_8mb" ] || [ "$1" = "r400_4mb" ] || [ "$1" = "r400_8mb" ] || [ "$1" = "t400_4mb" ] || [ "$1" = "t400_8mb" ]
then
./util/cbfstool/cbfstool "$1"_"$romtype".rom add -f ../resources/grub/background/gnulove.jpg -n background.jpg -t raw
else
diff --git a/resources/scripts/helpers/build/roms/withgrub b/resources/scripts/helpers/build/roms/withgrub
index f81da2d..5a7f83c 100755
--- a/resources/scripts/helpers/build/roms/withgrub
+++ b/resources/scripts/helpers/build/roms/withgrub
@@ -95,7 +95,7 @@ done
# Then put them in the ROM images.
if [ -d bin/ ]; then
cd bin/
- for board in "x200" "r400"
+ for board in "x200" "r400" "t400"
do
for romsize in "4m" "8m"
do
diff --git a/resources/scripts/helpers/download/coreboot b/resources/scripts/helpers/download/coreboot
index ab49a67..123fea5 100755
--- a/resources/scripts/helpers/download/coreboot
+++ b/resources/scripts/helpers/download/coreboot
@@ -78,6 +78,8 @@ git fetch http://review.coreboot.org/coreboot refs/changes/79/7979/1 && git cher
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/3 && git cherry-pick FETCH_HEAD
# Run coreboot-libre deblob scripts
# ---------------------------------------------------------------------------------