summaryrefslogtreecommitdiffstats
path: root/builddeps-flashrom
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-11-24 21:32:35 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-11-24 22:26:53 (EST)
commit7ff25fd1932471a23827ef821be97fc4969910e1 (patch)
treeee1fb3803d66cdd4d07209b7b273a1f1252bd6aa /builddeps-flashrom
parent62d4eaaaf4b87629b37e6d16d4b4020499207d73 (diff)
downloadlibreboot-7ff25fd1932471a23827ef821be97fc4969910e1.zip
libreboot-7ff25fd1932471a23827ef821be97fc4969910e1.tar.gz
libreboot-7ff25fd1932471a23827ef821be97fc4969910e1.tar.bz2
libreboot_bin.tar.xz: Include utils as statically linked binaries
This means that the user does not have to install build dependency or build from source anymore.
Diffstat (limited to 'builddeps-flashrom')
-rwxr-xr-xbuilddeps-flashrom18
1 files changed, 15 insertions, 3 deletions
diff --git a/builddeps-flashrom b/builddeps-flashrom
index e659b3c..d630827 100755
--- a/builddeps-flashrom
+++ b/builddeps-flashrom
@@ -42,7 +42,11 @@ rm -rf flashrom_lenovobios_macronix
mv flashchips.c flashchips.c_
cp ../resources/flashrom/patch/flashchips.c .
# build flashrom
-make
+if (( $# != 1 )); then
+ make
+else
+ make SHARED=0 CC='gcc -static'
+fi
# restore default flashchips.c
rm -rf flashchips.c
mv flashchips.c_ flashchips.c
@@ -53,13 +57,21 @@ mv flashchips.c flashchips.c_
# build patched version for MX25L1605D flash chip on Lenovo BIOS X60/T60
cp ../resources/flashrom/patch/flashchips.c_lenovobios_macronix flashchips.c
-make
+if (( $# != 1 )); then
+ make
+else
+ make SHARED=0 CC='gcc -static'
+fi
mv flashrom flashrom_lenovobios_macronix
rm -rf flashchips.c
# build patched version for SST25VF016B flash chip on Lenovo BIOS X60/T60
cp ../resources/flashrom/patch/flashchips.c_lenovobios_sst flashchips.c
-make
+if (( $# != 1 )); then
+ make
+else
+ make SHARED=0 CC='gcc -static'
+fi
mv flashrom flashrom_lenovobios_sst
rm -rf flashchips.c