[coreboot-gerrit] New patch to review for coreboot: utils/scripts: Support cygwin in ucode conversion tool

Marshall Dawson (marshalldawson3rd@gmail.com) gerrit at coreboot.org
Sat Jun 25 22:48:58 CEST 2016


Marshall Dawson (marshalldawson3rd at gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15437

-gerrit

commit 1dc1a4ac44d0db8ed6a40acd896607064bd0d1b4
Author: Marshall Dawson <marshalldawson3rd at gmail.com>
Date:   Sat Jun 25 10:17:07 2016 -0600

    utils/scripts: Support cygwin in ucode conversion tool
    
    Check for the existence of TMPFILE with a .exe extension and if found
    rename it with no extension.  This allows the program to be run and
    removed properly.
    
    Change-Id: I26928f9b8bf82d1c07fa456a88d624f7a8838bd3
    Signed-off-by: Marshall Dawson <marshalldawson3rd at gmail.com>
---
 util/scripts/ucode_h_to_bin.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/util/scripts/ucode_h_to_bin.sh b/util/scripts/ucode_h_to_bin.sh
index 4f51182..2d7f5fa 100755
--- a/util/scripts/ucode_h_to_bin.sh
+++ b/util/scripts/ucode_h_to_bin.sh
@@ -56,5 +56,6 @@ int main(void)
 EOF
 
 gcc -o "$TMPFILE" "${TMPFILE}.c"
+[ -f "${TMPFILE}.exe" ] && mv "${TMPFILE}.exe" "$TMPFILE"
 "./$TMPFILE"
 rm "$TMPFILE" "${TMPFILE}.c"



More information about the coreboot-gerrit mailing list