summaryrefslogtreecommitdiffstats
path: root/build-release
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-11-28 05:07:04 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-12-11 18:23:16 (EST)
commit137aee12fb6f8c2c682268c6894110d486c12caa (patch)
tree4237b42d1978e163caa4491b6a80f5e7a1092e40 /build-release
parente1839b53737ba6058a864fcc6d1c50f5784c9866 (diff)
downloadlibreboot-137aee12fb6f8c2c682268c6894110d486c12caa.zip
libreboot-137aee12fb6f8c2c682268c6894110d486c12caa.tar.gz
libreboot-137aee12fb6f8c2c682268c6894110d486c12caa.tar.bz2
ThinkPad X200 support added to libreboot
Diffstat (limited to 'build-release')
-rwxr-xr-xbuild-release32
1 files changed, 31 insertions, 1 deletions
diff --git a/build-release b/build-release
index 4c47b5d..0d676a5 100755
--- a/build-release
+++ b/build-release
@@ -198,7 +198,7 @@ mv flashrom_ flashrom
# build cbfstool, compiled (statically linked) and include the binary
cd coreboot/util/
cp -r cbfstool cbfstool_
-cd cbfstool
+cd cbfstool/
make clean
make SHARED=0 CC='gcc -static'
mkdir ../../../libreboot_bin/cbfstool
@@ -226,6 +226,36 @@ rm -rf cbfstool
mv cbfstool_ cbfstool
cd ../../
+# ----------------
+# ich9deblob related
+# ----------------
+# build ich9deblob, compiled (statically linked) and include the binary
+cd resources/utilities/
+cp -r ich9deblob ich9deblob_
+cd ich9deblob/
+rm -f ich9deblob
+gcc -static -o ich9deblob ich9deblob.c ich9desc.c -I.
+mkdir ../../../libreboot_bin/ich9deblob
+if [ $(uname -i) = "i686" ] || [ $(uname -m) = "i686" ]
+ then
+ # User is building on 32-bit host. Build only 32-bit binaries
+ mkdir ../../../libreboot_bin/ich9deblob/i686
+ mv ich9deblob ../../../libreboot_bin/ich9deblob/i686/
+elif [ $(uname -i) = "x86_64" ] || $(uname -m) = "x86_64"
+ then
+ # Build the 64-bit binaries
+ mkdir ../../../libreboot_bin/ich9deblob/x86_64
+ mv ich9deblob ../../../libreboot_bin/ich9deblob/x86_64/
+ # Now build 32-bit binaries
+ gcc -static -m32 -o ich9deblob ich9deblob.c ich9desc.c -I.
+ mkdir ../../../libreboot_bin/ich9deblob/i686
+ mv ich9deblob ../../../libreboot_bin/ich9deblob/i686/
+fi
+cd ../
+rm -rf ich9deblob
+mv ich9deblob_ ich9deblob
+cd ../../
+
# -----------------
# nvramtool related
# -----------------