diff options
author | Marshall Dawson <marshalldawson3rd@gmail.com> | 2016-06-25 10:17:07 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-08-22 04:19:24 +0200 |
commit | 1bc2b0bed0f75c81153ace65679e761a4cb1438c (patch) | |
tree | cd8e75ca126152126f2808551c1f7feb0d9fd100 /util | |
parent | 64444268e2eecf235af9dd77b5f6cee8c0365fc5 (diff) | |
download | coreboot-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')
-rwxr-xr-x | util/scripts/ucode_h_to_bin.sh | 1 |
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" |