summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2019-01-23 07:57:17 (GMT)
committerGitHub <noreply@github.com>2019-01-23 07:57:17 (GMT)
commitdaa07529503413956bc3c769267d12dacb28e0d5 (patch)
tree8514dfe42c97432b2a0b51485a6f1dca7e12cd06 /scripts/functions
parent0364e3cf91a636dea48b6a7a203f9de5c7f1adc2 (diff)
parentde797aa99d7b380cdef6c0146ae4cc68d10e089d (diff)
Merge pull request #1128 from dimkr/uclibc-cfg
Store the uClibc .config alongside the ct-ng .config
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions
index c97b9f4..618298a 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -2453,3 +2453,14 @@ CT_InstallCopyingInformation()
shopt -u nullglob
}
+
+CT_InstallConfigurationFile()
+{
+ local path="${1}"
+ local suffix="${2}"
+
+ CT_DoExecLog ALL mkdir -p "${CT_PREFIX_DIR}/bin"
+ CT_DoExecLog DEBUG ${install} -m 0755 "${CT_LIB_DIR}/scripts/toolchain-config.in" "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${suffix}.config"
+ CT_DoExecLog DEBUG ${sed} -i -e 's,@@grep@@,"'"${grep}"'",;' "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${suffix}.config"
+ bzip2 -c -9 "${path}" >>"${CT_PREFIX_DIR}/bin/${CT_TARGET}-${suffix}.config"
+}