summaryrefslogtreecommitdiff
path: root/util/xcompile/xcompile
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-01-05 15:44:02 -0700
committerMartin Roth <martinroth@google.com>2016-01-07 17:23:50 +0100
commit033abe5e690d2533b768eae9c236bde70d514980 (patch)
treee4abf925f8aa1f9b1cb32671f47f0107a96336ee /util/xcompile/xcompile
parentaf0216f1b87b22580bb652bb7ad5071d57e63ad6 (diff)
downloadcoreboot-033abe5e690d2533b768eae9c236bde70d514980.tar.xz
xcompile: use $() instead of backticks
While the backtick syntax isn't actually deprecated, the $() syntax is preferred. Since both styles were being used in this script, settle on the new standard for all cases. Change-Id: I33770d666781b4fa34c909411e0d220c2540dbb4 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/12843 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/xcompile/xcompile')
-rwxr-xr-xutil/xcompile/xcompile12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index c8cf6e9066..b336f88c64 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -19,15 +19,15 @@ TMPFILE=""
XGCCPATH=$1
# libpayload crossgcc path
-if [ -d "`pwd`/../../util/crossgcc/xgcc/bin/" ]
+if [ -d "$(pwd)/../../util/crossgcc/xgcc/bin/" ]
then
- XGCCPATH=${XGCCPATH:-"`pwd`/../../util/crossgcc/xgcc/bin/"}
+ XGCCPATH=${XGCCPATH:-"$(pwd)/../../util/crossgcc/xgcc/bin/"}
fi
# coreboot crossgcc path
-if [ -d "`pwd`/util/crossgcc/xgcc/bin/" ]
+if [ -d "$(pwd)/util/crossgcc/xgcc/bin/" ]
then
- XGCCPATH=${XGCCPATH:-"`pwd`/util/crossgcc/xgcc/bin/"}
+ XGCCPATH=${XGCCPATH:-"$(pwd)/util/crossgcc/xgcc/bin/"}
fi
die() {
@@ -187,9 +187,9 @@ detect_special_flags() {
detect_compiler_runtime() {
test -z "$CLANG" || \
- CC_RT_CLANG="`${CLANG} ${CFLAGS_CLANG} -print-librt-file-name 2>/dev/null`"
+ CC_RT_CLANG="$(${CLANG} ${CFLAGS_CLANG} -print-librt-file-name 2>/dev/null)"
test -z "$GCC" || \
- CC_RT_GCC="`${GCC} ${CFLAGS_GCC} -print-libgcc-file-name`"
+ CC_RT_GCC="$(${GCC} ${CFLAGS_GCC} -print-libgcc-file-name)"
}
report_arch_toolchain() {