libc/uClibc: fix munging .config for LT old/new

This commit is contained in:
Yann E. MORIN" 2010-07-02 22:11:45 +02:00
parent 2ea4b546b4
commit 3fafacd093

View File

@ -333,26 +333,23 @@ mungeuClibcConfig() {
case "${CT_THREADS}:${CT_LIBC_UCLIBC_LNXTHRD}" in case "${CT_THREADS}:${CT_LIBC_UCLIBC_LNXTHRD}" in
none:*) none:*)
cat <<-ENDSED cat <<-ENDSED
s/^# HAS_NO_THREADS is not set/HAS_NO_THREADS=y/
s/^UCLIBC_HAS_THREADS=y/# UCLIBC_HAS_THREADS is not set/ s/^UCLIBC_HAS_THREADS=y/# UCLIBC_HAS_THREADS is not set/
s/^LINUXTHREADS_OLD=y/# LINUXTHREADS_OLD is not set/ s/^LINUXTHREADS_OLD=y/# LINUXTHREADS_OLD is not set/
s/^LINUXTHREADS_NEW=y/# LINUXTHREADS_NEW is not set/ s/^LINUXTHREADS_NEW=y/# LINUXTHREADS_NEW is not set/
ENDSED ENDSED
;; ;;
*:old) linuxthreads:old)
cat <<-ENDSED cat <<-ENDSED
s/^HAS_NO_THREADS=y/# HAS_NO_THREADS is not set/
s/^# UCLIBC_HAS_THREADS is not set/UCLIBC_HAS_THREADS=y/ s/^# UCLIBC_HAS_THREADS is not set/UCLIBC_HAS_THREADS=y/
s/^# LINUXTHREADS_OLD is not set/# LINUXTHREADS_OLD=y/ s/^# LINUXTHREADS_OLD is not set/LINUXTHREADS_OLD=y/
s/^LINUXTHREADS_NEW=y/# LINUXTHREADS_NEW is not set/ s/^LINUXTHREADS_NEW=y/# LINUXTHREADS_NEW is not set/
ENDSED ENDSED
;; ;;
*:new) linuxthreads:new)
cat <<-ENDSED cat <<-ENDSED
s/^# HAS_NO_THREADS is not set/HAS_NO_THREADS=y/
s/^# UCLIBC_HAS_THREADS is not set/UCLIBC_HAS_THREADS=y/ s/^# UCLIBC_HAS_THREADS is not set/UCLIBC_HAS_THREADS=y/
s/^LINUXTHREADS_OLD=y/# LINUXTHREADS_OLD is not set/ s/^LINUXTHREADS_OLD=y/# LINUXTHREADS_OLD is not set/
s/^# LINUXTHREADS_NEW is not set/# LINUXTHREADS_NEW=y/ s/^# LINUXTHREADS_NEW is not set/LINUXTHREADS_NEW=y/
ENDSED ENDSED
;; ;;
esac esac