diff options
author | Francis 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) |
commit | a1045a6c6d8a6e4b3ab3cc21fee399ffaa9fdbeb (patch) | |
tree | 785e21d699cd735f3719b103a341f537fa709779 /resources/scripts/helpers/build | |
parent | 19b6e504ddda009e4d6cbc4122086239c37abbc4 (diff) | |
download | libreboot-a1045a6c6d8a6e4b3ab3cc21fee399ffaa9fdbeb.zip libreboot-a1045a6c6d8a6e4b3ab3cc21fee399ffaa9fdbeb.tar.gz libreboot-a1045a6c6d8a6e4b3ab3cc21fee399ffaa9fdbeb.tar.bz2 |
build/release/util: re-add nvramtool
Diffstat (limited to 'resources/scripts/helpers/build')
-rwxr-xr-x | resources/scripts/helpers/build/release/util | 28 |
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 # ------------- |