Browse Source

uclibc: improved to configure thread support through OpenSDE's configurator

user/amery/mess
Christian Wiese 14 years ago committed by Alejandro Mery
parent
commit
2df3b76055
  1. 11
      base/uclibc/subconfig-libc-300.in
  2. 12
      base/uclibc/uclibc.conf

11
base/uclibc/subconfig-libc-300.in

@ -3,6 +3,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../uclibc/subconfig-libc-300.in # Filename: package/.../uclibc/subconfig-libc-300.in
# Copyright (C) 2010 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
@ -16,4 +17,14 @@
# uclibc and glibc don't cohexist in our approach //mnemoc # uclibc and glibc don't cohexist in our approach //mnemoc
if [ "$SDECFG_LIBC" == "uclibc" ]; then if [ "$SDECFG_LIBC" == "uclibc" ]; then
pkgremove glibc pkgremove glibc
comment 'uClibc options'
comment ' '
comment 'Thread support:'
choice SDECFG_PKG_UCLIBC_THREADSUPPORT old \
none "disable thread support" \
old "use older version of linuxthreads (stable)" \
new "use slightly newer version of linuxthreads (not much tested)"
fi fi

12
base/uclibc/uclibc.conf

@ -54,6 +54,18 @@ default_config() {
echo "O HAVE_SHARED" echo "O HAVE_SHARED"
fi fi
# thread support
if [ "$SDECFG_PKG_UCLIBC_THREADSUPPORT" != "none" ]; then
echo "X UCLIBC_HAS_THREADS"
# choose the thread implementation
case "$SDECFG_PKG_UCLIBC_THREADSUPPORT" in
old) echo "X LINUXTHREADS_OLD" ;;
new) echo "X LINUXTHREADS_NEW" ;;
esac
else
echo "X HAS_NO_THREADS"
fi
# locale # locale
if [ "$SDECFG_DISABLE_NLS" = "0" ]; then if [ "$SDECFG_DISABLE_NLS" = "0" ]; then
echo "X UCLIBC_HAS_LOCALE" echo "X UCLIBC_HAS_LOCALE"

Loading…
Cancel
Save