summaryrefslogtreecommitdiff
path: root/scripts/build/libc/uClibc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/libc/uClibc.sh')
-rw-r--r--scripts/build/libc/uClibc.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh
index 5ea5c58..fbee4aa 100644
--- a/scripts/build/libc/uClibc.sh
+++ b/scripts/build/libc/uClibc.sh
@@ -237,6 +237,15 @@ manage_uClibc_config()
CT_KconfigEnableOption "ARCH_USE_MMU" "${dst}"
else
CT_KconfigDisableOption "ARCH_USE_MMU" "${dst}"
+ CT_KconfigDisableOption "UCLIBC_FORMAT_FDPIC" "${dst}"
+ CT_KconfigDisableOption "UCLIBC_FORMAT_FLAT" "${dst}"
+ CT_KconfigDisableOption "UCLIBC_FORMAT_SHARED_FLAT" "${dst}"
+ case "${CT_ARCH_BINFMT_FLAT},${CT_ARCH_BINFMT_FDPIC},${CT_SHARED_LIBS}" in
+ y,,y) CT_KconfigEnableOption "UCLIBC_FORMAT_SHARED_FLAT" "${dst}";;
+ y,,) CT_KconfigEnableOption "UCLIBC_FORMAT_FLAT" "${dst}";;
+ ,y,*) CT_KconfigEnableOption "UCLIBC_FORMAT_FDPIC" "${dst}";;
+ *) CT_Abort "Unsupported binary format";;
+ esac
fi
if [ "${CT_SHARED_LIBS}" = "y" ]; then
@@ -404,6 +413,10 @@ manage_uClibc_config()
# Now allow architecture to tweak as it wants
CT_DoArchUClibcConfig "${dst}"
CT_DoArchUClibcCflags "${dst}" "${flags}"
+
+ # Preserve the config we created (before uclibc's `make olddefconfig`
+ # overrides anything).
+ CT_DoExecLog ALL cp "${dst}" "${dst}.created-by-ct-ng"
}
uClibc_post_cc()