libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit a1045a6c6d8a6e4b3ab3cc21fee399ffaa9fdbeb
parent 19b6e504ddda009e4d6cbc4122086239c37abbc4
Author: Francis Rowe <info@gluglug.org.uk>
Date:   Fri, 12 Jun 2015 22:16:35 +0100

build/release/util: re-add nvramtool

Diffstat:
resources/scripts/helpers/build/release/util | 28++++++++++++++++++++++++++++
1 file changed, 28 insertions(+), 0 deletions(-)

diff --git 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 # -------------