summaryrefslogtreecommitdiffstats
path: root/build-release
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-13 12:25:09 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-12-13 12:25:09 (EST)
commit2e51cdedd2cc640e39db89805ec3ed6c9c1172a0 (patch)
tree8707694c9e1c8c4dfa837e46bb4bd376a7682cc4 /build-release
parent37176cdddf98c8884a39179560d5caa07ceddd0f (diff)
downloadlibreboot-2e51cdedd2cc640e39db89805ec3ed6c9c1172a0.zip
libreboot-2e51cdedd2cc640e39db89805ec3ed6c9c1172a0.tar.gz
libreboot-2e51cdedd2cc640e39db89805ec3ed6c9c1172a0.tar.bz2
build-release: include cbmem (static binaries) in libreboot_bin
Diffstat (limited to 'build-release')
-rwxr-xr-xbuild-release33
1 files changed, 32 insertions, 1 deletions
diff --git a/build-release b/build-release
index b903b3f..27206fb 100755
--- a/build-release
+++ b/build-release
@@ -258,7 +258,7 @@ cd ../../
# build nvramtool, compiled (statically linked) and include the binary
cd coreboot/util/
cp -r nvramtool nvramtool_
-cd nvramtool
+cd nvramtool/
make clean
make SHARED=0 CC='gcc -static'
mkdir ../../../libreboot_bin/nvramtool
@@ -283,6 +283,37 @@ rm -rf nvramtool
mv nvramtool_ nvramtool
cd ../../
+# -----------------
+# cbmem related
+# -----------------
+# build cbmem, compiled (statically linked) and include the binary
+cd coreboot/util/
+cp -r cbmem cbmem_
+cd cbmem/
+make clean
+make SHARED=0 CC='gcc -static'
+mkdir ../../../libreboot_bin/cbmem
+if [ $(uname -i) = "i686" ] || [ $(uname -m) = "i686" ]
+ then
+ # User is building on 32-bit host. Build only 32-bit binaries
+ mkdir ../../../libreboot_bin/cbmem/i686
+ mv cbmem ../../../libreboot_bin/cbmem/i686/
+elif [ $(uname -i) = "x86_64" ] || $(uname -m) = "x86_64"
+ then
+ # Build the 64-bit binaries
+ mkdir ../../../libreboot_bin/cbmem/x86_64
+ mv cbmem ../../../libreboot_bin/cbmem/x86_64/
+ # Now build 32-bit binaries
+ make clean
+ make SHARED=0 CC='gcc -static -m32'
+ mkdir ../../../libreboot_bin/cbmem/i686
+ mv cbmem ../../../libreboot_bin/cbmem/i686/
+fi
+cd ../
+rm -rf cbmem
+mv cbmem_ cbmem
+cd ../../
+
# ---------------------
# Include documentation
# ---------------------