diff options
author | Alexey Neyman <stilor@att.net> | 2019-01-22 23:57:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-22 23:57:17 -0800 |
commit | daa07529503413956bc3c769267d12dacb28e0d5 (patch) | |
tree | 8514dfe42c97432b2a0b51485a6f1dca7e12cd06 /scripts/functions | |
parent | 0364e3cf91a636dea48b6a7a203f9de5c7f1adc2 (diff) | |
parent | de797aa99d7b380cdef6c0146ae4cc68d10e089d (diff) | |
download | crosstool-ng-daa07529503413956bc3c769267d12dacb28e0d5.tar.gz crosstool-ng-daa07529503413956bc3c769267d12dacb28e0d5.tar.bz2 crosstool-ng-daa07529503413956bc3c769267d12dacb28e0d5.zip |
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/functions | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions index c97b9f40..618298ae 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" +} |