URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [linux/] [uClibc/] [extra/] [Configs/] [Config.in] - Rev 1769
Go to most recent revision | Compare with Previous | Blame | View Log
## For a description of the syntax of this configuration file,# see extra/config/Kconfig-language.txt#mainmenu "uClibc C Library Configuration"choiceprompt "Target Architecture"default TARGET_i386helpStuffconfig TARGET_alphabool "alpha"config TARGET_armbool "arm"config TARGET_crisbool "cris"config TARGET_e1bool "e1"config TARGET_h8300bool "h8300"config TARGET_i386bool "i386"config TARGET_i960bool "i960"config TARGET_m68kbool "m68k"config TARGET_microblazebool "microblaze"config TARGET_mipsbool "mips"config TARGET_or32bool "or32"config TARGET_powerpcbool "powerpc"config TARGET_shbool "SuperH"config TARGET_sparcbool "sparc"config TARGET_v850bool "v850"endchoicemenu "Target Architecture Features and Options"if TARGET_alphasource "extra/Configs/Config.alpha"endifif TARGET_armsource "extra/Configs/Config.arm"endifif TARGET_crissource "extra/Configs/Config.cris"endifif TARGET_e1source "extra/Configs/Config.e1"endifif TARGET_h8300source "extra/Configs/Config.h8300"endifif TARGET_i386source "extra/Configs/Config.i386"endifif TARGET_i960source "extra/Configs/Config.i960"endifif TARGET_m68ksource "extra/Configs/Config.m68k"endifif TARGET_microblazesource "extra/Configs/Config.microblaze"endifif TARGET_mipssource "extra/Configs/Config.mips"endifif TARGET_or32source "extra/Configs/Config.or32"endifif TARGET_powerpcsource "extra/Configs/Config.powerpc"endifif TARGET_shsource "extra/Configs/Config.sh"endifif TARGET_sparcsource "extra/Configs/Config.sparc"endifif TARGET_v850source "extra/Configs/Config.v850"endifsource "extra/Configs/Config.in.arch"endmenumenu "General Library Settings"config HAVE_NO_PICbooldefault nconfig DOPICbool "Generate Position Independent Code (PIC)"default ydepends !HAVE_NO_PIChelpIf you wish to build uClibc with support for shared libraries thenanswer Y here. If you only want to build uClibc as a static library,then answer N.config HAVE_NO_SHAREDbooldefault nconfig HAVE_SHAREDbool "Enable support for shared libraries"depends on DOPIC && !HAVE_NO_SHAREDdefault yhelpIf you wish to build uClibc with support for shared libraries thenanswer Y here. If you only want to build uClibc as a static library,then answer N.config ARCH_HAS_NO_LDSObooldefault nconfig BUILD_UCLIBC_LDSObool "Compile native shared library loader"depends on HAVE_SHARED && !ARCH_HAS_NO_LDSOdefault yhelpuClibc has a native shared library loader for some architectures.If you answer Y here, the uClibc native shared library loader willbe built for your target architecture. If this option is available,to you, then you almost certainly want to answer Y.config FORCE_SHAREABLE_TEXT_SEGMENTSbool "Only load shared libraries which can share their text segment"depends on BUILD_UCLIBC_LDSO && UCLIBC_COMPLETELY_PICdefault nhelpIf you answer Y here, the uClibc native shared library loader willonly load shared libraries, which do not need to modify any non-writablesegments. These libraries haven't set the DT_TEXTREL tag in the dynamicsection (==> objdump). So all your libraries must be compiled with-fPIC or -fpic, and all assembler function must be written as positionindependent code (PIC).Enabling this option will makes uClibc's shared library loader alittle bit smaller and guarantee that no memory will be wasted by badlycoded shared libraries.config UCLIBC_PIE_SUPPORTbool "Support ET_DYN in shared library loader"select FORCE_SHAREABLE_TEXT_SEGMENTSdefault nhelpIf you answer Y here, the uClibc native shared library loader willsupport ET_DYN/PIE executables.It requires binutils-2.14.90.0.6 or later and the usage of the-pie option.More about ET_DYN/PIE binaries on <http://pageexec.virtualave.net/> .WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so alllibraries have to be built with -fPIC or -fpic, and all assemblerfunctions must be written as position independent code (PIC).config LDSO_LDD_SUPPORTbool "Native shared library loader 'ldd' support"depends on BUILD_UCLIBC_LDSOdefault yhelpEnable this to enable all the code needed to support traditional ldd,which executes the shared library loader to resolve all dependenciesand then provide a list of shared libraries that are required for anapplication to function. Disabling this option will makes uClibc'sshared library loader a little bit smaller. Most people will answer Y.config UCLIBC_CTOR_DTORbool "Support global constructors and destructors"default yhelpIf you wish to build uClibc with support for global constructor(ctor) and global destructor (dtor) support, then answer Y here.When ctor/dtor support is enabled, binaries linked with uClibc mustalso be linked with crtbegin.o and crtend.o which are provided by gcc(the "*startfile:" and "*endfile:" settings in your gcc specs filemay need to be adjusted to include these files). This support willalso add a small amount of additional size to each binary compiled vsuClibc. If you will be using uClibc with C++, or if you need the gcc__attribute__((constructor)) and __attribute__((destructor)) to work,then you definitely want to answer Y here. If you don't need ctorsor dtors and want your binaries to be as small as possible, thenanswer N.config UCLIBC_PROPOLICEbool "Support for propolice stack protection"default nhelpPropolice stack protection.More about it on <http://www.research.ibm.com/trl/projects/security/ssp> .To be able to use it, you'll also need a propolice patched gcc,supporting the -fstack-protector[-all] options. It is a specially patchedgcc version, were __guard and __stack_smash_handler are removed from libgcc.Most people will answer N.config UCLIBC_PROFILINGbool "Support gprof profiling"default yhelpIf you wish to build uClibc with support for application profilingusing the gprof tool, then you should enable this feature. Then inaddition to building uClibc with profiling support, you will alsoneed to recompile all your shared libraries with the profilingenabled version of uClibc. To add profiling support to yourapplications, you must compile things using the gcc options"-fprofile-arcs -pg". Then when you run your applications, agmon.out file will be generated which can then be analyzed by'gprof'.These exist a number of less invasive alternatives that do notrequire your to specially instrument your application, and recompileand relink everything.Many people have had good results using the combination of Valgrindto generate profiling information and KCachegrind for analysis:http://developer.kde.org/~sewardj/http://kcachegrind.sourceforge.net/The OProfile system-wide profiler is another alternative:http://oprofile.sourceforge.net/Prospect is another alternative based on OProfile:http://prospect.sourceforge.net/And the Linux Trace Toolkit (LTT) is also a fine tool:http://www.opersys.com/LTT/If none of these tools do what you need, you can of course enablethis option, rebuild everything, and use 'gprof'. There is both asize and performance penalty to profiling your applications this way,so most people should answer N.config HAS_NO_THREADSbooldefault nconfig UCLIBC_HAS_THREADSbool "POSIX Threading Support"depends on !HAS_NO_THREADSdefault yhelpIf you want to compile uClibc with pthread support, then answer Y.This will increase the size of uClibc by adding a bunch of lockingto critical data structures, and adding extra code to ensure thatfunctions are properly reentrant.If your applications require pthreads, answer Y.config PTHREADS_DEBUG_SUPPORTbool "Build pthreads debugging support"default ndepends on UCLIBC_HAS_THREADShelpSay Y here if you wish to be able to debug applications that useuClibc's pthreads library. By enabling this option, a librarynamed libthread_db will be built. This library will be dlopen()'dby gdb and will allow gdb to debug the threads in your application.IMPORTANT NOTE! Because gdb must dlopen() the libthread_db library,you must compile gdb with uClibc in order for pthread debugging towork properly.If you are doing development and want to debug applications usinguClibc's pthread library, answer Y. Otherwise, answer N.config UCLIBC_HAS_LFSbool "Large File Support"default ydepends on !CONFIG_CRIShelpIf you wish to build uClibc with support for accessing large files(i.e. files greater then 2 GiB) then answer Y. Do not enable thisif you are using an older Linux kernel (2.0.x) that lacks large filesupport. Enabling this option will increase the size of uClibc.choiceprompt "Malloc Implementation"default MALLOC if ! UCLIBC_HAS_MMUdefault MALLOC_STANDARD if UCLIBC_HAS_MMUhelp"malloc" use mmap for all allocations and so works very well on MMU-lesssystems that do not support the brk() system call. It is pretty smartabout reusing already allocated memory, and minimizing memory wastage.This is the default for uClinux MMU-less systems."malloc-simple" was written from scratch for uClibc, and is thesimplest possible (and therefore smallest) malloc implementation.It is rather dumb, and certainly isn't the fastest. But it is 100%standards compliant, thread safe, and very small."malloc-standard" is derived from the public domain dlmallocimplementation by Doug Lea. It is quite fast, and is pretty smartabout reusing already allocated memory, and minimizing memorywastage. This uses brk() for small allocations, while using mmap()for larger allocations. This is the default malloc implementationfor uClibc.If unsure, answer "malloc-standard".config MALLOCbool "malloc"config MALLOC_SIMPLEbool "malloc-simple"config MALLOC_STANDARDbool "malloc-standard"depends on UCLIBC_HAS_MMUendchoiceconfig MALLOC_GLIBC_COMPATbool "Malloc returns live pointer for malloc(0)"default nhelpThe behavior of malloc(0) is listed as implementation-defined bySuSv3. Glibc returns a valid pointer to something, while uClibcnormally return a NULL. I personally feel glibc's behavior isnot particularly safe, and allows buggy applications to hide veryserious problems.When this option is enabled, uClibc will act just like glibc, andreturn a live pointer when someone calls malloc(0). This pointerprovides a malloc'ed area with a size of 1 byte. This feature ismostly useful when dealing with applications using autoconf's brokenAC_FUNC_MALLOC macro (which redefines malloc as rpl_malloc if itdoes not detect glibc style returning-a-valid-pointer-for-malloc(0)behavior). Most people can safely answer N.config UCLIBC_DYNAMIC_ATEXITbool "Dynamic atexit() Support"default yhelpWhen this option is enabled, uClibc will support an infinite number,of atexit() and on_exit() functions, limited only by your availablememory. This can be important when uClibc is used with C++, sinceglobal destructors are implemented via atexit(), and it is quitepossible to exceed the default number when this option is disabled.Enabling this option adds a few bytes, and more significantly makesatexit and on_exit depend on malloc, which can be bad when compilingstatic executables.Unless you use uClibc with C++, you should probably answer N.config HAS_SHADOWbool "Shadow Password Support"default yhelpAnswer N if you do not need shadow password support.Most people will answer Y.config UNIX98PTY_ONLYbool "Support only Unix 98 PTYs"default yhelpIf you want to support only Unix 98 PTYs enable this. Some olderapplications may need this disabled. For most current programs,you can generally answer Y.config ASSUME_DEVPTSbool "Assume that /dev/pts is a devpts or devfs file system"default yhelpEnable this if /dev/pts is on a devpts or devfs filesystem. Boththese filesystems automatically manage permissions on the /dev/ptsdevices. You may need to mount your devpts or devfs filesystem on/dev/pts for this to work.Most people should answer Y.config UCLIBC_HAS_TM_EXTENSIONSbool "Support 'struct tm' timezone extension fields"default yhelpEnabling this option adds fields to 'struct tm' in time.h fortracking the number of seconds east of UTC, and an abbreviation forthe current timezone. These fields are not specified by the SuSv3standard, but they are commonly used in both GNU and BSD applicationcode.To strictly follow the SuSv3 standard, leave this disabled.Most people will probably want to answer Y.config UCLIBC_HAS_TZ_CACHINGbool "Enable caching of the last valid timezone 'TZ' string"default yhelpAnswer Y to enable caching of the last valid 'TZ' string describingthe timezone setting. This allows a quick string compare to avoidrepeated parsing of unchanged 'TZ' strings when tzset() is called.Most people will answer Y.config UCLIBC_HAS_TZ_FILEbool "Enable '/etc/TZ' file support to set a default timezone (uClibc-specific)"default yhelpAnswer Y to enable the setting of a default timezone for uClibc.Ordinarily, uClibc gets the timezone information exclusively from the'TZ' environment variable. In particular, there is no support forthe zoneinfo directory tree or the /etc/timezone file used by glibc.With this option enabled, uClibc will use the value stored in thefile '/etc/TZ' (default path) to obtain timezone information if the'TZ' environment variable is missing or has an invalid value. Thefile consists of a single line (newline required) of text describingthe timezone in the format specified for the TZ environment variable.Simply doing 'echo CST6CDT > /etc/TZ' is enough to create a valid file.Seehttp://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.htmlfor details on valid settings of 'TZ'.Most people will answer Y.config UCLIBC_HAS_TZ_FILE_READ_MANYbool "Repeatedly read the '/etc/TZ' file"depends on UCLIBC_HAS_TZ_FILEdefault yhelpAnswer Y to enable repeated reading of the '/etc/TZ' file even aftera valid value has been read. This incurs the overhead of an open/read/closefor each tzset() call (explicit or implied). However, setting thiswill allows applications to update their timezone information if the contentsof the file change.Most people will answer Y.config UCLIBC_TZ_FILE_PATHstring "Path to the 'TZ' file for setting the global timezone"depends on UCLIBC_HAS_TZ_FILEdefault "/etc/TZ"helpThis is the path to the 'TZ' file.Most people will use the default of '/etc/TZ'.endmenumenu "Networking Support"config UCLIBC_HAS_IPV6bool "IP version 6 Support"default nhelpIf you want to include support for the next version of the InternetProtocol (IP version 6) then answer Y.Most people should answer N.config UCLIBC_HAS_RPCbool "Remote Procedure Call (RPC) support"default nhelpIf you want to include RPC support, enable this. RPC is rarely usedfor anything except for the NFS filesystem. Unless you plan to use NFS,you can probably leave this set to N and save some space. If you needto use NFS then you should answer Y.config UCLIBC_HAS_FULL_RPCbool "Full RPC support"depends on UCLIBC_HAS_RPCdefault y if !HAVE_SHAREDhelpNormally we enable just enough RPC support for things like rshd andnfs mounts to work. If you find you need the rest of the RPC stuff,then enable this option. Most people can safely answer N.endmenumenu "String and Stdio Support"config UCLIBC_HAS_CTYPE_TABLESbool "Use Table Versions Of 'ctype.h' Functions."default yhelpAnswer Y to use table versions of the 'ctype.h' functions.While the non-table versions are often smaller when buildingstaticly linked apps, they work only in stub locale mode.Most people will answer Y.config UCLIBC_HAS_CTYPE_SIGNEDbool "Support Signed Characters In 'ctype.h' Functions."depends UCLIBC_HAS_CTYPE_TABLESdefault yhelpAnswer Y to enable support for passing signed char values tothe 'ctype.h' functions. ANSI/ISO C99 and SUSv3 specify thatthese functions are only defined for unsigned char values andEOF. However, glibc allows negative signed char values as wellin order to support 'broken old programs'.Most people will answer Y.choiceprompt "ctype argument checking"depends UCLIBC_HAS_CTYPE_TABLESdefault UCLIBC_HAS_CTYPE_UNSAFEhelpPlease select the invalid arg behavior you want for the 'ctype' functions.The 'ctype' functions are now implemented using table lookups, withthe arg being the index. This can result in incorrect memory accessesor even segfaults for args outside of the allowed range.NOTE: This only affects the 'ctype' _functions_. It does not affectthe macro implementations.config UCLIBC_HAS_CTYPE_UNSAFEbool "Do not check -- unsafe"config UCLIBC_HAS_CTYPE_CHECKEDbool "Detect and handle appropriately"config UCLIBC_HAS_CTYPE_ENFORCEDbool "Issue a diagnostic and abort()"endchoiceconfig UCLIBC_HAS_WCHARbool "Wide Character Support"default nhelpAnswer Y to enable wide character support. This will make uClibcmuch larger. It is also currently required for locale support.Most people will answer N.config UCLIBC_HAS_LOCALEbool "Locale Support"select UCLIBC_HAS_WCHARselect UCLIBC_HAS_CTYPE_TABLESdefault nhelpuClibc now has full ANSI/ISO C99 locale support (except forwcsftime() and collating items in regex). Be aware that enablingthis option will make uClibc much larger.Enabling UCLIBC_HAS_LOCALE with the default set of supported locales(169 UTF-8 locales, and 144 locales for other codesets) will enlargeuClibc by around 300k. You can reduce this size by building your owncustom set of locate data (see extra/locale/LOCALES for details).uClibc's locale support is still under development. For example,codesets using shift states are not currently supported. Support isplanned in the next iteration of locale support.Answer Y to enable locale support. Most people will answer N.config UCLIBC_PREGENERATED_LOCALE_DATAbool "Use Pre-generated Locale Data"depends on UCLIBC_HAS_LOCALEdefault nhelpIf you are selective and only want locale data for a few particularlocales, or you enjoy pain, or you are a rabid do-it-yourself sort ofperson, you can turn this option off and manually walk through themostly undocumented procedure needed to generate your own localedata.Mere mortals will answer Y and use the default set of pregeneratedlocale data, which supports 169 UTF-8 locales, and 144 locales forother codesets (for the complete list see extra/locale/LOCALES).config UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATAbool "Automagically Download the Pre-generated Locale Data (if necessary)"depends on UCLIBC_PREGENERATED_LOCALE_DATAdefault nhelpIf you would like the build process to use 'wget' to automaticallydownload the pregenerated locale data, enable this option. Otherwiseyou will need to obtain the locale data yourself from:http://www.uclibc.org/downloads/uClibc-locale-030818.tgzand place the uClibc-locale-030818.tgz tarball in the extra/locale/directory.Go ahead and make life easy for yourself... Answer Y.config UCLIBC_HAS_XLOCALEbool "Extended Locale Support (experimental/incomplete)"depends on UCLIBC_HAS_LOCALEdefault nhelpAnswer Y to enable extended locale support similar to that providedby glibc. This is primarily intended to support libstd++ functionality.However, it also allows thread-specific locale selection via uselocale().Most people will answer N.config UCLIBC_HAS_HEXADECIMAL_FLOATSbool "Support hexadecimal float notation"depends UCLIBC_HAS_CTYPE_TABLESdepends on UCLIBC_HAS_FLOATSdefault nhelpAnswer Y to enable support for hexadecimal float notation in the(wchar and) char string to floating point conversion functions, aswell as support for the %a and %A conversion specifiers in the*printf() and *scanf() functions.Most people will answer N.config UCLIBC_HAS_GLIBC_DIGIT_GROUPINGbool "Support glibc's \"'\" flag for allowing locale-specific digit grouping"depends on UCLIBC_HAS_LOCALEdepends on UCLIBC_HAS_FLOATSdefault nhelpAnswer Y to enable support for glibc's \"'\" flag for allowing locale-specificdigit grouping in base 10 integer conversions and appropriate floating pointconversions in the *printf() and *scanf() functions.Most people will answer N.config UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPINGbool "Do not require digit grouping when the \"'\" flag is specified"depends on UCLIBC_HAS_GLIBC_DIGIT_GROUPINGdefault yhelpAnswer Y to make digit grouping optional when the \"'\" flag is specified.This is the standard glibc behavior. If the initial string of digitsexceeds the maximum group number, the input will be treated as a normalnon-grouped number.Most people will answer N.config UCLIBC_HAS_GLIBC_CUSTOM_PRINTFbool "Support glibc's register_printf_function() (glibc-compat)"depends on !USE_OLD_VFPRINTFdefault nhelpAnswer Y to support glibc's register_printf_function() to allow anapplication to add its own printf conversion specifiers.NOTE: This implementation limits the number or registered specifiers to 10.NOTE: This implementation requires new conversion specifiers to be ASCIIcharacters (0-0x7f). This is to avoid problems with processingformat strings in locales with different multibyte conversions.Most people will answer N.config USE_OLD_VFPRINTFbool "Use the old vfprintf implementation"depends on !UCLIBC_HAS_WCHARdefault nhelpSet to true to use the old vfprintf instead of the new. This is roughlyC89 compliant with some extensions, and is much smaller. However, it doesnot support wide chars, positional args, or glibc custom printf specifiers.Most people will answer N.config UCLIBC_PRINTF_SCANF_POSITIONAL_ARGSint "Maximum number of positional args. Either 0 or >= 9."depends on !USE_OLD_VFPRINTFdefault 9helpSet the maximum number of positional args supported by the printf/scanffunctions. The Single Unix Specification Version 3 requires a minimumvalue of 9. Setting this to a value lower than 9 will disable positionalarg support and cause the NL_ARGMAX macro in limits.h to be #undef'd.WARNING! The workspace to support positional args is currently allocatedon the stack. You probably don't want to set this to too high a value.Most people will answer 9.config UCLIBC_HAS_SCANF_GLIBC_A_FLAGbool "Support glibc's 'a' flag for scanf string conversions"default nhelpNOTE!!! Currently Not Implemented!!! Just A Place Holder!! NOTE!!!Answer Y to enable support for glibc's 'a' flag for the scanf stringconversions '%s', '%[', '%ls', '%l[', and '%S'. This is used toauto-allocate sufficient memory to hold the data retrieved.Most people will answer N.choiceprompt "Stdio buffer size"default UCLIBC_HAS_STDIO_BUFSIZ_4096helpPlease select a value for BUFSIZ. This will be used by thestdio subsystem as the default buffer size for a file, andaffects fopen(), setvbuf(), etc.NOTE: Setting this to 'none' will disable buffering completely.However, BUFSIZ will still be defined in stdio.h as 256 becausemany applications use this value.config UCLIBC_HAS_STDIO_BUFSIZ_NONEbool "none (WARNING - BUFSIZ will be 256 in stdio.h)"depends !UCLIBC_HAS_WCHARconfig UCLIBC_HAS_STDIO_BUFSIZ_256bool "256 (minimum ANSI/ISO C99 value)"config UCLIBC_HAS_STDIO_BUFSIZ_512bool "512"config UCLIBC_HAS_STDIO_BUFSIZ_1024bool "1024"config UCLIBC_HAS_STDIO_BUFSIZ_2048bool "2048"config UCLIBC_HAS_STDIO_BUFSIZ_4096bool "4096"config UCLIBC_HAS_STDIO_BUFSIZ_8192bool "8192"# If you add more choices, you will need to update uClibc_stdio.h.endchoicechoiceprompt "Stdio builtin buffer size (uClibc-specific)"depends !UCLIBC_HAS_STDIO_BUFSIZ_NONEdefault UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONEhelpWhen a FILE is created with fopen(), an attempt is made to allocatea BUFSIZ buffer for it. If the allocation fails, fopen() will stillsucceed but the FILE will be unbuffered.This option adds a small amount of space to each FILE to act as anemergency buffer in the event of a buffer allocation failure.Most people will answer None.config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONEbool "None"config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4bool "4"config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8bool "8"# If you add more choices, you will need to update uClibc_stdio.h.endchoiceconfig UCLIBC_HAS_STDIO_GETC_MACRObool "Provide a macro version of getc()"depends !UCLIBC_HAS_STDIO_BUFSIZ_NONEdefault yhelpProvide a macro version of getc().Most people will answer Y.config UCLIBC_HAS_STDIO_PUTC_MACRObool "Provide a macro version of putc()"depends !UCLIBC_HAS_STDIO_BUFSIZ_NONEdefault yhelpProvide a macro version of putc().Most people will answer Y.config UCLIBC_HAS_STDIO_AUTO_RW_TRANSITIONbool "Support auto-r/w transition"default yhelpAnswer Y to enable the stdio subsystem to automaticly transitionbetween reading and writing. This relaxes the ANSI/ISO C99 requirement:When a file is opened with update mode ('+' as the second or third characterin the list of mode argument values), both input and output may be performedon the associated stream. However, output shall not be directly followed byinput without an intervening call to the fflush function or to a filepositioning function (fseek, fsetpos, or rewind), and input shall not bedirectly followed by output without an intervening call to a file positioningMost people will answer Y.config UCLIBC_HAS_FOPEN_LARGEFILE_MODEbool "Support an fopen() 'F' flag for large file mode (uClibc-specific)"depends on UCLIBC_HAS_LFSdefault nhelpAnswer Y to enable a uClibc-specific extension to allow passing anadditional 'F' flag in the mode string for fopen() to specify thatthe file should be open()ed with the O_LARGEFILE flag set.Most people will answer N.config UCLIBC_HAS_FOPEN_EXCLUSIVE_MODEbool "Support an fopen() 'x' flag for exclusive mode (glibc-compat)"default nhelpAnswer Y to support a glibc extension to allow passingadditional 'x' flag in the mode string for fopen() to specify thatthe file should be open()ed with the O_EXCL flag set.Most people will answer N.config UCLIBC_HAS_GLIBC_CUSTOM_STREAMSbool "Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat)"default nhelpAnswer Y to support the glibc 'custom stream' extension functionsfmemopen(), open_memstream(), and fopencookie().NOTE: There are some minor differences regarding seeking behavior.Most people will answer N.config UCLIBC_HAS_PRINTF_M_SPECbool "Support the '%m' specifier in printf format strings (glibc-compat)"default nhelpAnswer Y to support a glibc extension to interpret '%m' in printfformat strings as an instruction to output the error message string(as generated by strerror) corresponding to the current value of 'errno'.Most people will answer N.config UCLIBC_HAS_ERRNO_MESSAGESbool "Include the errno message text in the library"default yhelpAnswer Y if you want to include the errno message text in thelibrary. This adds about 3K to the library, but enables strerror()to generate text other than 'Unknown error <number>'.Most people will answer Y.config UCLIBC_HAS_SYS_ERRLISTbool "Support sys_errlist[] (obsolete-compat)"depends on UCLIBC_HAS_ERRNO_MESSAGESdefault nhelpAnswer Y if you want to support the obsolete sys_errlist[].This adds about 0.5k to the library, except for the mipsarch where it adds over 4K.WARNING! In the future, support for sys_errlist[] may be unavailablein at least some configurations. In fact, it may be removed altogether.Most people will answer N.config UCLIBC_HAS_SIGNUM_MESSAGESbool "Include the signum message text in the library"default yhelpAnswer Y if you want to include the signum message text in thelibrary. This adds about 0.5K to the library, but enables strsignal()to generate text other than 'Unknown signal <number>'.Most people will answer Y.config UCLIBC_HAS_SYS_SIGLISTbool "Support sys_siglist[] (bsd-compat)"depends on UCLIBC_HAS_SIGNUM_MESSAGESdefault nhelpAnswer Y if you want to support sys_siglist[].WARNING! In the future, support for sys_siglist[] may be unavailablein at least some configurations. In fact, it may be removed altogether.Most people will answer N.config UCLIBC_HAS_GETTEXT_AWARENESSbool "Include gettext awareness"depends on UCLIBC_HAS_LOCALEdefault nhelpNOTE!!! Not yet integrated with strerror and strsignal. NOTE!!!Answer Y if you want to include weak stub gettext support andmake the *strerror*() and strsignal() functions gettext-aware.Currently, to get functional gettext functionality you will needto use gnu gettext.Most people will answer N.config UCLIBC_HAS_GNU_GETOPTbool "Support gnu getopt"default yhelpAnswer Y if you want to include full gnu getopt() instead of a(much smaller) SUSv3 compatible getopt().Most people will answer Y.endmenumenu "Big and Tall"config UCLIBC_HAS_REGEXbool "Regular Expression Support"default yhelpPOSIX regular expression code is really big -- 27k all by itself.If you don't use regular expressions, turn this off and save space.Of course, if you only staticly link, leave this on, since it willonly be included in your apps if you use regular expressions.config UCLIBC_HAS_WORDEXPbool "Support the wordexp() interface"default nhelpThe SuSv3 wordexp() interface performs word expansions per the Shelland Utilities volume of IEEE Std 1003.1-2001, Section 2.6. It isintended for use by applications that want to implement all of thestandard Bourne shell expansions on input data.This interface is rarely used, and very large. Unless you have apressing need for wordexp(), you should probably answer N.config UCLIBC_HAS_FTWbool "Support the ftw() and nftw() interfaces"default nhelpThe SuSv3 ftw() and nftw() interfaces are used to recursively descenddirectory paths while repeatedly calling a function.This interface is rarely used, and adds around 4.5k. Unless you havea pressing need for ftw() or nftw(), you should probably answer N.config UCLIBC_HAS_GLOBbool "Support the glob() interface"default yhelpThe glob interface is somewhat large (weighing in at about 4k). Itis used fairly often, but is an option since people wanting to go forabsolute minimum size may wish to omit it.Most people will answer Y.endmenumenu "Library Installation Options"config SHARED_LIB_LOADER_PREFIXstring "Shared library loader path"depends on BUILD_UCLIBC_LDSOdefault "$(DEVEL_PREFIX)/lib"helpWhen using shared libraries, this path is the location where theshared library will be invoked. This value will be compiled intoevery binary compiled with uClibc.For a typical target system this should be set to "/lib", such that'make install' will install /lib/ld-uClibc.so.0.BIG FAT WARNING:If you do not have a shared library loader with the correct namesitting in the directory this points to, your binaries will notrun.config SYSTEM_LDSOstring "System shared library loader"depends on HAVE_SHARED && !BUILD_UCLIBC_LDSOdefault "/lib/ld-linux.so.2"helpIf you are using shared libraries, but do not want/have a nativeuClibc shared library loader, please specify the name of yourtarget system's shared library loader here...BIG FAT WARNING:If you do not have a shared library loader with the correct namesitting in the directory this points to, your binaries will notrun.config RUNTIME_PREFIXstring "uClibc runtime library directory"default "/usr/$(TARGET_ARCH)-linux-uclibc/"helpRUNTIME_PREFIX is the directory into which the uClibc runtimelibraries will be installed. The result will look somethinglike the following:$(RUNTIME_PREFIX)/lib/ <contains all runtime libraries>usr/bin/ldd <the ldd utility program>sbin/ldconfig <the ldconfig utility program>This value is used by the 'make install' Makefile target. Since thisdirectory is compiled into the shared library loader, you will need torecompile uClibc if you change this value...For a typical target system this should be set to "/", such that'make install' will install /lib/libuClibc-<VERSION>.soconfig DEVEL_PREFIXstring "uClibc development environment directory"default "/usr/$(TARGET_ARCH)-linux-uclibc/usr/"helpDEVEL_PREFIX is the directory into which the uClibc developmentenvironment will be installed. The result will look somethinglike the following:$(DEVEL_PREFIX)/lib/ <contains static libs>include/ <Where all the header files go>This value is used by the 'make install' Makefile target wheninstalling a uClibc development environment.For a typical target system this should be set to "/usr", such that'make install' will install /usr/include/<header files>.endmenumenu "uClibc development/debugging options"config DODEBUGbool "Build uClibc with debugging symbols"default nhelpSay Y here if you wish to compile uClibc with debugging symbols.This will allow you to use a debugger to examine uClibc internalswhile applications are running. This increases the size of thelibrary considerably and should only be used when doing development.If you are doing development and want to debug uClibc, answer Y.Otherwise, answer N.config DOASSERTSbool "Build uClibc with run-time assertion testing"default nhelpSay Y here to include runtime assertion tests.This enables runtime assertion testing in some code, which canincrease the size of the library and incur runtime overhead.If you say N, then this testing will be disabled.config SUPPORT_LD_DEBUGbool "Build the shared library loader with debugging support"depends on BUILD_UCLIBC_LDSOdefault nhelpAnswer Y here to enable all the extra code needed to debug the uClibcnative shared library loader. The level of debugging noise that isgenerated depends on the LD_DEBUG environment variable... Just setLD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' todebug your application. Diagnostic messages will then be printed tothe stderr.For now these debugging tokens are available:detail provide more information for some optionsmove display copy processingsymbols display symbol table processingreloc display relocation processing; detail shows the relocation patchnofixups never fixes up jump relocationsbindings displays the resolve processing (function calls); detail shows the relocation patchall Enable everything!The additional environment variable:LD_DEBUG_OUTPUT=fileredirects the diagnostics to an output file created usingthe specified name and the process id as a suffix.An excellent start is simply:$ LD_DEBUG=binding,move,symbols,reloc,detail ./appnameor to log everything to a file named 'logfile', try this$ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appnameIf you are doing development and want to debug uClibc's shared libraryloader, answer Y. Mere mortals answer N.config SUPPORT_LD_DEBUG_EARLYbool "Build the shared library loader with early debugging support"depends on BUILD_UCLIBC_LDSOdefault nhelpAnswer Y here to if you find the uClibc shared library loader iscrashing or otherwise not working very early on. This is typicalonly when starting a new port when you haven't figured out how toproperly get the values for argc, argv, environ, etc. This methodallows a degree of visibility into the very early shared libraryloader initialization process. If you are doing development and wantto debug the uClibc shared library loader early initialization,answer Y. Mere mortals answer N.config UCLIBC_MALLOC_DEBUGGINGbool "Build malloc with debugging support"depends MALLOCdefault nhelpAnswer Y here to compile extra debugging support code into malloc.Malloc debugging output may then be enabled at runtime using theMALLOC_DEBUG environment variable.The value of MALLOC_DEBUG should be an integer, which is interpreted asa bitmask with the following bits:1 - do extra consistency checking2 - output messages for malloc/free calls and OS allocation calls4 - output messages for the `MMB' layer8 - output messages for internal malloc heap manipulation callsBecause this increases the size of malloc appreciably (due to stringsetc), you should say N unless you need to debug a malloc problem.config UCLIBC_MJN3_ONLYbool "Manuel's hidden warnings"default nhelpAnswer Y here to see all Manuel's personal notes, warnings, and todos.Most people will answer N.endmenu
Go to most recent revision | Compare with Previous | Blame | View Log
