From 1bc2b0bed0f75c81153ace65679e761a4cb1438c Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Sat, 25 Jun 2016 10:17:07 -0600 Subject: util/scripts: Support cygwin in ucode conversion tool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://review.coreboot.org/15437 Tested-by: build bot (Jenkins) Reviewed-by: Jonathan Neuschäfer Reviewed-by: Martin Roth --- util/scripts/ucode_h_to_bin.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'util/scripts') 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" -- cgit v1.2.3