From 1635c149a4118736e2f0b2901ae4589eea92e194 Mon Sep 17 00:00:00 2001 From: Dima Krasner Date: Tue, 22 Jan 2019 22:33:32 +0200 Subject: Store the uClibc .config alongside the ct-ng .config Signed-off-by: Dima Krasner 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" -- cgit v0.10.2-6-g49f6