path: root/scripts/build/libc/
diff options
authorBryan Hundven <>2015-11-17 10:48:09 (GMT)
committerBryan Hundven <>2015-11-17 10:48:09 (GMT)
commit6f8e89cb5ca061e899bf3feaaf3fecf30d366c3e (patch)
tree9eb19260dd694fa6b4852c46e3f0a93939db9a24 /scripts/build/libc/
parent6ac8e31a519f41af7838bb5261e0fe989fb428bd (diff)
consistency: Use exported variables of required tools
We check for apps: * make * sed * grep * awk * libtool/libtoolize * install * patch * and more ...during configure. Our scripts should be consistent about using the variables that define where the found tool was found. Of course, we do hard-link these tools in buildtools, but that should be a backup for the components we are building. Our scripts should always use the tools we find. Signed-off-by: Bryan Hundven <>
Diffstat (limited to 'scripts/build/libc/')
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/build/libc/ b/scripts/build/libc/
index 4c395d0..a4fe82e 100644
--- a/scripts/build/libc/
+++ b/scripts/build/libc/
@@ -17,7 +17,7 @@ do_libc_get() {
CT_GetCustom "newlib" "${CT_LIBC_VERSION}" \
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} \${YYMM}/components/toolchain/newlib-linaro \
@@ -120,16 +120,16 @@ do_libc() {
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"