From 135fd4b46d8ae2bdf9ef9fe60b973eb0ae833985 Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Sat, 25 Jun 2016 10:17:07 -0600 Subject: [PATCH] UPSTREAM: 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. BUG=None BRANCH=None TEST=None Signed-off-by: Marshall Dawson Reviewed-on: https://review.coreboot.org/15437 Reviewed-by: Jonathan Neuschfer Reviewed-by: Martin Roth Change-Id: I26928f9b8bf82d1c07fa456a88d624f7a8838bd3 Reviewed-on: https://chromium-review.googlesource.com/373735 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Aaron Durbin --- 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 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"