summaryrefslogtreecommitdiff
path: root/scripts/build/libc/newlib.sh
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2015-11-17 12:13:26 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2015-11-17 12:13:26 (GMT)
commit3c1d8625e60e31ed073beb247eaf934364a36957 (patch)
tree8685579adaf92a399a3388c7f5ca987937c781ab /scripts/build/libc/newlib.sh
parent65fd24fc00b248c6b415a09ebd5c503288f897a1 (diff)
parent6f8e89cb5ca061e899bf3feaaf3fecf30d366c3e (diff)
Merge pull request #268 from bhundven/consistent_usage_of_found_apps
consistency: Use exported variables of required tools
Diffstat (limited to 'scripts/build/libc/newlib.sh')
-rw-r--r--scripts/build/libc/newlib.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh
index 4c395d0..a4fe82e 100644
--- a/scripts/build/libc/newlib.sh
+++ b/scripts/build/libc/newlib.sh
@@ -17,7 +17,7 @@ do_libc_get() {
CT_GetCustom "newlib" "${CT_LIBC_VERSION}" \
"${CT_LIBC_NEWLIB_CUSTOM_LOCATION}"
else # ! custom location
- if echo ${CT_LIBC_VERSION} |grep -q linaro; then
+ if echo ${CT_LIBC_VERSION} |${grep} -q linaro; then
YYMM=`echo ${CT_LIBC_VERSION} |cut -d- -f3 |${sed} -e 's,^..,,'`
CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} \
https://releases.linaro.org/${YYMM}/components/toolchain/newlib-linaro \
@@ -120,16 +120,16 @@ do_libc() {
"${CT_LIBC_NEWLIB_EXTRA_CONFIG_ARRAY[@]}"
CT_DoLog EXTRA "Building C library"
- CT_DoExecLog ALL make ${JOBSFLAGS}
+ CT_DoExecLog ALL ${make} ${JOBSFLAGS}
CT_DoLog EXTRA "Installing C library"
- CT_DoExecLog ALL make install install_root="${CT_SYSROOT_DIR}"
+ CT_DoExecLog ALL ${make} install install_root="${CT_SYSROOT_DIR}"
if [ "${CT_BUILD_MANUALS}" = "y" ]; then
local -a doc_dir="${CT_BUILD_DIR}/build-libc/${CT_TARGET}"
CT_DoLog EXTRA "Building and installing the C library manual"
- CT_DoExecLog ALL make pdf html
+ CT_DoExecLog ALL ${make} pdf html
# NEWLIB install-{pdf.html} fail for some versions
CT_DoExecLog ALL mkdir -p "${CT_PREFIX_DIR}/share/doc/newlib"