diff options
author | Francis Rowe <info@gluglug.org.uk> | 2014-11-28 10:07:04 +0000 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2014-12-11 23:23:16 +0000 |
commit | 137aee12fb6f8c2c682268c6894110d486c12caa (patch) | |
tree | 4237b42d1978e163caa4491b6a80f5e7a1092e40 /build-release | |
parent | e1839b53737ba6058a864fcc6d1c50f5784c9866 (diff) | |
download | librebootfr-137aee12fb6f8c2c682268c6894110d486c12caa.tar.gz librebootfr-137aee12fb6f8c2c682268c6894110d486c12caa.zip |
ThinkPad X200 support added to libreboot
Diffstat (limited to 'build-release')
-rwxr-xr-x | build-release | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/build-release b/build-release index 4c47b5d4..0d676a50 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 # ----------------- |