[coreboot-gerrit] New patch to review for coreboot: 77b32f3 xcompile: move tempfile cleanup closer together
Patrick Georgi (patrick@georgi-clan.de)
gerrit at coreboot.org
Wed May 14 16:38:31 CEST 2014
Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5744
-gerrit
commit 77b32f3236edc63200f65d7cee2b131b4ca6acc5
Author: Patrick Georgi <patrick at georgi-clan.de>
Date: Wed May 14 14:30:08 2014 +0200
xcompile: move tempfile cleanup closer together
Change-Id: I4fb3041d505402de3cbcd7ec079dde5e168a90cf
Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
util/xcompile/xcompile | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index e256c0d..cb27306 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -33,6 +33,12 @@ clean_up() {
fi
}
+# Create temporary file(s).
+TMPFILE="$(mktemp /tmp/temp.XXXX 2>/dev/null || echo /tmp/temp.78gOIUGz)"
+touch "$TMPFILE"
+trap clean_up EXIT
+
+
program_exists() {
type "$1" >/dev/null 2>&1
}
@@ -155,11 +161,6 @@ AR_${TARCH}:=${GCCPREFIX}ar
EOF
}
-# Create temporary file(s).
-TMPFILE="$(mktemp /tmp/temp.XXXX 2>/dev/null || echo /tmp/temp.78gOIUGz)"
-touch "$TMPFILE"
-trap clean_up EXIT
-
# Architecture definition
SUPPORTED_ARCHITECTURE="x86 armv7 aarch64"
More information about the coreboot-gerrit
mailing list