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>
This commit is contained in:
parent
af0216f1b8
commit
033abe5e69
|
@ -19,15 +19,15 @@ TMPFILE=""
|
||||||
XGCCPATH=$1
|
XGCCPATH=$1
|
||||||
|
|
||||||
# libpayload crossgcc path
|
# libpayload crossgcc path
|
||||||
if [ -d "`pwd`/../../util/crossgcc/xgcc/bin/" ]
|
if [ -d "$(pwd)/../../util/crossgcc/xgcc/bin/" ]
|
||||||
then
|
then
|
||||||
XGCCPATH=${XGCCPATH:-"`pwd`/../../util/crossgcc/xgcc/bin/"}
|
XGCCPATH=${XGCCPATH:-"$(pwd)/../../util/crossgcc/xgcc/bin/"}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# coreboot crossgcc path
|
# coreboot crossgcc path
|
||||||
if [ -d "`pwd`/util/crossgcc/xgcc/bin/" ]
|
if [ -d "$(pwd)/util/crossgcc/xgcc/bin/" ]
|
||||||
then
|
then
|
||||||
XGCCPATH=${XGCCPATH:-"`pwd`/util/crossgcc/xgcc/bin/"}
|
XGCCPATH=${XGCCPATH:-"$(pwd)/util/crossgcc/xgcc/bin/"}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
|
@ -187,9 +187,9 @@ detect_special_flags() {
|
||||||
|
|
||||||
detect_compiler_runtime() {
|
detect_compiler_runtime() {
|
||||||
test -z "$CLANG" || \
|
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" || \
|
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() {
|
report_arch_toolchain() {
|
||||||
|
|
Loading…
Reference in New Issue