From aa0f3a77805a1e03623a6f8c60c1f0167be75a48 Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 24 Nov 2009 07:03:04 +0000 Subject: [PATCH] [toolchain] eglibc: add support for v2.11 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18522 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/eglibc/Config.in | 5 ++++ toolchain/eglibc/Config.version | 1 + toolchain/eglibc/Makefile | 3 ++ toolchain/eglibc/config/Config.in | 50 ++++++++++++++++++++++++++----- 4 files changed, 51 insertions(+), 8 deletions(-) diff --git a/toolchain/eglibc/Config.in b/toolchain/eglibc/Config.in index 8f38d0981..d9c23e072 100644 --- a/toolchain/eglibc/Config.in +++ b/toolchain/eglibc/Config.in @@ -20,6 +20,10 @@ choice config EGLIBC_VERSION_2_10 bool "eglibc 2.10" + config EGLIBC_VERSION_2_11 + bool "eglibc 2.11" + depends GCC_VERSION_4_3 || GCC_VERSION_4_4 + config EGLIBC_VERSION_TRUNK bool "eglibc trunk" @@ -34,6 +38,7 @@ config EGLIBC_REVISION default "8587" if EGLIBC_VERSION_2_8 default "8690" if EGLIBC_VERSION_2_9 default "9289" if EGLIBC_VERSION_2_10 + default "9306" if EGLIBC_VERSION_2_11 default "HEAD" if EGLIBC_VERSION_TRUNK default "" diff --git a/toolchain/eglibc/Config.version b/toolchain/eglibc/Config.version index 6e2146d15..217c9ce44 100644 --- a/toolchain/eglibc/Config.version +++ b/toolchain/eglibc/Config.version @@ -6,4 +6,5 @@ config EGLIBC_VERSION default "2.8" if EGLIBC_VERSION_2_8 default "2.9" if EGLIBC_VERSION_2_9 default "2.10.2" if EGLIBC_VERSION_2_10 + default "2.11 " if EGLIBC_VERSION_2_11 default "trunk" diff --git a/toolchain/eglibc/Makefile b/toolchain/eglibc/Makefile index b72b4bd35..822309d05 100644 --- a/toolchain/eglibc/Makefile +++ b/toolchain/eglibc/Makefile @@ -30,6 +30,9 @@ endif ifneq ($(CONFIG_EGLIBC_VERSION_2_10),) PKG_SOURCE_URL:=svn://svn.eglibc.org/branches/eglibc-2_10 endif +ifneq ($(CONFIG_EGLIBC_VERSION_2_11),) + PKG_SOURCE_URL:=svn://svn.eglibc.org/branches/eglibc-2_11 +endif ifneq ($(CONFIG_EGLIBC_VERSION_TRUNK),) PKG_SOURCE_URL:=svn://svn.eglibc.org/trunk endif diff --git a/toolchain/eglibc/config/Config.in b/toolchain/eglibc/config/Config.in index eed1b2f90..ad442430e 100644 --- a/toolchain/eglibc/config/Config.in +++ b/toolchain/eglibc/config/Config.in @@ -46,6 +46,17 @@ config EGLIBC_OPTION_EGLIBC_BACKTRACE backtrace_symbols_fd +config EGLIBC_OPTION_EGLIBC_BIG_MACROS + bool "Use extensive inline code" + default y + depends EGLIBC_VERSION_2_11 + help + This option group specifies whether certain pieces of code + should be inlined to achieve maximum speed. If this option + group is not selected, function calls will be used instead, + hence reducing the library footprint. + + config EGLIBC_OPTION_EGLIBC_BSD bool "BSD-specific functions, and their compatibility stubs" default y @@ -198,7 +209,7 @@ config EGLIBC_OPTION_EGLIBC_ENVZ config EGLIBC_OPTION_EGLIBC_FCVT bool "Functions for converting floating-point numbers to strings" default y - depends EGLIBC_VERSION_2_10 + depends EGLIBC_VERSION_2_10 || EGLIBC_VERSION_2_11 help This option group includes functions for converting floating-point numbers to strings. @@ -215,7 +226,7 @@ config EGLIBC_OPTION_EGLIBC_FCVT config EGLIBC_OPTION_EGLIBC_FMTMSG bool "Functions for formatting messages" default y - depends EGLIBC_VERSION_2_10 + depends EGLIBC_VERSION_2_10 || EGLIBC_VERSION_2_11 help This option group includes the following functions: @@ -241,7 +252,7 @@ config EGLIBC_OPTION_EGLIBC_FSTAB config EGLIBC_OPTION_EGLIBC_FTRAVERSE bool "Functions for traversing file hierarchies" default y - depends EGLIBC_VERSION_2_10 + depends EGLIBC_VERSION_2_10 || EGLIBC_VERSION_2_11 help This option group includes functions for traversing file UNIX file hierachies. @@ -428,7 +439,7 @@ config EGLIBC_OPTION_EGLIBC_LOCALES config EGLIBC_OPTION_EGLIBC_LOCALE_CODE bool "Locale functions" default y - select EGLIBC_OPTION_POSIX_C_LANG_WIDE_CHAR if EGLIBC_VERSION_2_8 || EGLIBC_VERSION_2_9 || EGLIBC_VERSION_2_10 + select EGLIBC_OPTION_POSIX_C_LANG_WIDE_CHAR if EGLIBC_VERSION_2_8 || EGLIBC_VERSION_2_9 || EGLIBC_VERSION_2_10 || EGLIBC_VERSION_2_11 help This option group includes locale support functions, programs, and libraries. With EGLIBC_OPTION_EGLIBC_LOCALE_CODE disabled, @@ -450,6 +461,28 @@ config EGLIBC_OPTION_EGLIBC_LOCALE_CODE disable EGLIBC_OPTION_EGLIBC_CATGETS. +config EGLIBC_OPTION_EGLIBC_MEMUSAGE + bool "Memory profiling library" + default y + depends EGLIBC_VERSION_2_11 + help + This option group includes the `libmemusage' library and + the `memusage' and `memusagestat' utilities. + These components provide memory profiling functions. + + EGLIBC_OPTION_EGLIBC_MEMUSAGE_DEFAULT_BUFFER_SIZE + + Libmemusage library buffers the profiling data in memory + before writing it out to disk. By default, the library + allocates 1.5M buffer, which can be substantial for some + systems. EGLIBC_OPTION_EGLIBC_MEMUSAGE_DEFAULT_BUFFER_SIZE option + allows to change the default buffer size. It specifies + the number of entries the buffer should have. + On most architectures one buffer entry amounts to 48 bytes, + so setting this option to the value of 512 will reduce the size of + the memory buffer to 24K. + + config EGLIBC_OPTION_EGLIBC_NIS bool "Support for NIS, NIS+, and the special 'compat' services." default y @@ -468,6 +501,7 @@ config EGLIBC_OPTION_EGLIBC_NIS config EGLIBC_OPTION_EGLIBC_NSSWITCH bool "Name service switch (nsswitch) support" default y + select EGLIBC_OPTION_EGLIBC_INET help This option group includes support for the 'nsswitch' facility. @@ -538,7 +572,7 @@ config EGLIBC_OPTION_EGLIBC_NSSWITCH system actually uses. Note that some nsswitch service libraries require other option - groups to be enabled; for example, the EGLIBC_INET + groups to be enabled; for example, the EGLIBC_OPTION_EGLIBC_INET option group must be enabled to use the 'libnss_dns.so.2' service library, which uses the Domain Name System network protocol to answer queries. @@ -695,7 +729,7 @@ config EGLIBC_OPTION_EGLIBC_WORDEXP config EGLIBC_OPTION_POSIX_C_LANG_WIDE_CHAR bool "ISO C library wide character functions, excluding I/O" default y - depends EGLIBC_VERSION_2_8 || EGLIBC_VERSION_2_9 || EGLIBC_VERSION_2_10 + depends EGLIBC_VERSION_2_8 || EGLIBC_VERSION_2_9 || EGLIBC_VERSION_2_10 || EGLIBC_VERSION_2_11 help This option group includes the functions defined by the ISO C standard for working with wide and multibyte characters in @@ -750,7 +784,7 @@ config EGLIBC_OPTION_POSIX_REGEXP config EGLIBC_OPTION_POSIX_REGEXP_GLIBC bool "Regular expressions from GLIBC" default y - depends EGLIBC_VERSION_2_10 + depends EGLIBC_VERSION_2_10 || EGLIBC_VERSION_2_11 select EGLIBC_OPTION_POSIX_REGEXP help This option group specifies which regular expression @@ -764,7 +798,7 @@ config EGLIBC_OPTION_POSIX_REGEXP_GLIBC config EGLIBC_OPTION_POSIX_WIDE_CHAR_DEVICE_IO bool "Input and output functions for wide characters" default y - select EGLIBC_OPTION_POSIX_C_LANG_WIDE_CHAR if EGLIBC_VERSION_2_8 || EGLIBC_VERSION_2_9 || EGLIBC_VERSION_2_10 + select EGLIBC_OPTION_POSIX_C_LANG_WIDE_CHAR if EGLIBC_VERSION_2_8 || EGLIBC_VERSION_2_9 || EGLIBC_VERSION_2_10 || EGLIBC_VERSION_2_11 help This option group includes functions for reading and writing wide characters to and from streams. -- 2.20.1