summaryrefslogtreecommitdiff
path: root/util/scripts
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2016-06-25 10:17:07 -0600
committerMartin Roth <martinroth@google.com>2016-08-22 04:19:24 +0200
commit1bc2b0bed0f75c81153ace65679e761a4cb1438c (patch)
treecd8e75ca126152126f2808551c1f7feb0d9fd100 /util/scripts
parent64444268e2eecf235af9dd77b5f6cee8c0365fc5 (diff)
downloadcoreboot-1bc2b0bed0f75c81153ace65679e761a4cb1438c.tar.xz
util/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@gmail.com> Reviewed-on: https://review.coreboot.org/15437 Tested-by: build bot (Jenkins) Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util/scripts')
-rwxr-xr-xutil/scripts/ucode_h_to_bin.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/scripts/ucode_h_to_bin.sh b/util/scripts/ucode_h_to_bin.sh
index 4f511822a2..2d7f5fa132 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"