summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDima Krasner <dima@dimakrasner.com>2019-01-22 20:33:32 (GMT)
committerDima Krasner <dima@dimakrasner.com>2019-01-22 20:36:15 (GMT)
commit1635c149a4118736e2f0b2901ae4589eea92e194 (patch)
treed04505210af65097c901f061a1c6ce9c8eb74ef2 /scripts
parent0364e3cf91a636dea48b6a7a203f9de5c7f1adc2 (diff)
Store the uClibc .config alongside the ct-ng .config
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/crosstool-NG.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/crosstool-NG.sh b/scripts/crosstool-NG.sh
index 3e888d7..89c9e60 100644
--- a/scripts/crosstool-NG.sh
+++ b/scripts/crosstool-NG.sh
@@ -616,6 +616,11 @@ if [ -z "${CT_RESTART}" ]; then
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}-ct-ng.config"
CT_DoExecLog DEBUG ${sed} -i -e 's,@@grep@@,"'"${grep}"'",;' "${CT_PREFIX_DIR}/bin/${CT_TARGET}-ct-ng.config"
+ if [ -n "$CT_LIBC_UCLIBC_CONFIG_FILE" ]
+ then
+ ${install} -m 0755 "${CT_PREFIX_DIR}/bin/${CT_TARGET}-ct-ng.config" "${CT_PREFIX_DIR}/bin/${CT_TARGET}-libc.config"
+ bzip2 -c -9 "$CT_LIBC_UCLIBC_CONFIG_FILE" >>"${CT_PREFIX_DIR}/bin/${CT_TARGET}-libc.config"
+ fi
bzip2 -c -9 .config >>"${CT_PREFIX_DIR}/bin/${CT_TARGET}-ct-ng.config"
CT_DoStep EXTRA "Dumping internal crosstool-NG configuration"