summaryrefslogtreecommitdiffstats
path: root/resources/scripts
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-12 17:16:35 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-06-12 17:21:54 (EDT)
commita1045a6c6d8a6e4b3ab3cc21fee399ffaa9fdbeb (patch)
tree785e21d699cd735f3719b103a341f537fa709779 /resources/scripts
parent19b6e504ddda009e4d6cbc4122086239c37abbc4 (diff)
downloadlibreboot-a1045a6c6d8a6e4b3ab3cc21fee399ffaa9fdbeb.zip
libreboot-a1045a6c6d8a6e4b3ab3cc21fee399ffaa9fdbeb.tar.gz
libreboot-a1045a6c6d8a6e4b3ab3cc21fee399ffaa9fdbeb.tar.bz2
build/release/util: re-add nvramtool
Diffstat (limited to 'resources/scripts')
-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 840be6a..b4e82c5 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
# -------------