aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/release/util
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-12 22:16:35 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-06-12 22:21:54 +0100
commita1045a6c6d8a6e4b3ab3cc21fee399ffaa9fdbeb (patch)
tree785e21d699cd735f3719b103a341f537fa709779 /resources/scripts/helpers/build/release/util
parent19b6e504ddda009e4d6cbc4122086239c37abbc4 (diff)
downloadlibrebootfr-a1045a6c6d8a6e4b3ab3cc21fee399ffaa9fdbeb.tar.gz
librebootfr-a1045a6c6d8a6e4b3ab3cc21fee399ffaa9fdbeb.zip
build/release/util: re-add nvramtool
Diffstat (limited to 'resources/scripts/helpers/build/release/util')
-rwxr-xr-xresources/scripts/helpers/build/release/util28
1 files changed, 28 insertions, 0 deletions
diff --git a/resources/scripts/helpers/build/release/util b/resources/scripts/helpers/build/release/util
index 840be6a8..b4e82c5e 100755
--- a/resources/scripts/helpers/build/release/util
+++ b/resources/scripts/helpers/build/release/util
@@ -168,6 +168,34 @@ rm -Rf "ich9deblob/"
mv "ich9deblob_/" "ich9deblob/"
cd "../../"
+# -----------------
+# nvramtool related
+# -----------------
+# build nvramtool, compiled (statically linked) and include the binary
+cd "coreboot/util/"
+cp -R "nvramtool/" "nvramtool_/"
+cd "nvramtool/"
+make clean
+make SHARED=0 CC='gcc -static'
+
+mkdir -p "../../../${distdir}/nvramtool/${arch}/"
+
+mv "nvramtool" "../../../${distdir}/nvramtool/${arch}/"
+
+if [ "$arch" = "x86_64" ]
+ then
+ # Now build 32-bit binaries
+ make clean
+ make SHARED=0 CC='gcc -static -m32'
+ mkdir "../../../${distdir}/nvramtool/i686/"
+ mv "nvramtool" "../../../${distdir}/nvramtool/i686/"
+fi
+
+cd "../"
+rm -Rf "nvramtool/"
+mv "nvramtool_/" "nvramtool/"
+cd "../../"
+
# -------------
# Miscellaneous
# -------------