Config.in 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see extra/config/Kconfig-language.txt
  4. #
  5. mainmenu "uClibc C Library Configuration"
  6. choice
  7. prompt "Target Architecture"
  8. default TARGET_i386
  9. help
  10. Stuff
  11. config TARGET_alpha
  12. bool "alpha"
  13. config TARGET_arm
  14. bool "arm"
  15. config TARGET_cris
  16. bool "cris"
  17. config TARGET_e1
  18. bool "e1"
  19. config TARGET_frv
  20. bool "frv"
  21. config TARGET_h8300
  22. bool "h8300"
  23. config TARGET_i386
  24. bool "i386"
  25. config TARGET_i960
  26. bool "i960"
  27. config TARGET_m68k
  28. bool "m68k"
  29. config TARGET_microblaze
  30. bool "microblaze"
  31. config TARGET_mips
  32. bool "mips"
  33. config TARGET_powerpc
  34. bool "powerpc"
  35. config TARGET_sh
  36. bool "SuperH"
  37. config TARGET_sparc
  38. bool "sparc"
  39. config TARGET_v850
  40. bool "v850"
  41. endchoice
  42. menu "Target Architecture Features and Options"
  43. if TARGET_alpha
  44. source "extra/Configs/Config.alpha"
  45. endif
  46. if TARGET_arm
  47. source "extra/Configs/Config.arm"
  48. endif
  49. if TARGET_cris
  50. source "extra/Configs/Config.cris"
  51. endif
  52. if TARGET_e1
  53. source "extra/Configs/Config.e1"
  54. endif
  55. if TARGET_frv
  56. source "extra/Configs/Config.frv"
  57. endif
  58. if TARGET_h8300
  59. source "extra/Configs/Config.h8300"
  60. endif
  61. if TARGET_i386
  62. source "extra/Configs/Config.i386"
  63. endif
  64. if TARGET_i960
  65. source "extra/Configs/Config.i960"
  66. endif
  67. if TARGET_m68k
  68. source "extra/Configs/Config.m68k"
  69. endif
  70. if TARGET_microblaze
  71. source "extra/Configs/Config.microblaze"
  72. endif
  73. if TARGET_mips
  74. source "extra/Configs/Config.mips"
  75. endif
  76. if TARGET_powerpc
  77. source "extra/Configs/Config.powerpc"
  78. endif
  79. if TARGET_sh
  80. source "extra/Configs/Config.sh"
  81. endif
  82. if TARGET_sparc
  83. source "extra/Configs/Config.sparc"
  84. endif
  85. if TARGET_v850
  86. source "extra/Configs/Config.v850"
  87. endif
  88. source "extra/Configs/Config.in.arch"
  89. endmenu
  90. menu "General Library Settings"
  91. config HAVE_NO_PIC
  92. bool
  93. default n
  94. config DOPIC
  95. bool "Generate Position Independent Code (PIC)"
  96. default y
  97. depends !HAVE_NO_PIC
  98. help
  99. If you wish to build uClibc with support for shared libraries then
  100. answer Y here. If you only want to build uClibc as a static library,
  101. then answer N.
  102. config HAVE_NO_SHARED
  103. bool
  104. default n
  105. config HAVE_SHARED
  106. bool "Enable support for shared libraries"
  107. depends on DOPIC && !HAVE_NO_SHARED
  108. default y
  109. help
  110. If you wish to build uClibc with support for shared libraries then
  111. answer Y here. If you only want to build uClibc as a static library,
  112. then answer N.
  113. config ARCH_HAS_NO_LDSO
  114. bool
  115. default n
  116. config BUILD_UCLIBC_LDSO
  117. bool "Compile native shared library loader"
  118. depends on HAVE_SHARED && !ARCH_HAS_NO_LDSO
  119. default y
  120. help
  121. uClibc has a native shared library loader for some architectures.
  122. If you answer Y here, the uClibc native shared library loader will
  123. be built for your target architecture. If this option is available,
  124. to you, then you almost certainly want to answer Y.
  125. config FORCE_SHAREABLE_TEXT_SEGMENTS
  126. bool "Only load shared libraries which can share their text segment"
  127. depends on BUILD_UCLIBC_LDSO && UCLIBC_COMPLETELY_PIC
  128. default n
  129. help
  130. If you answer Y here, the uClibc native shared library loader will
  131. only load shared libraries, which do not need to modify any non-writable
  132. segments. These libraries haven't set the DT_TEXTREL tag in the dynamic
  133. section (==> objdump). So all your libraries must be compiled with
  134. -fPIC or -fpic, and all assembler function must be written as position
  135. independent code (PIC).
  136. Enabling this option will makes uClibc's shared library loader a
  137. little bit smaller and guarantee that no memory will be wasted by badly
  138. coded shared libraries.
  139. config UCLIBC_PIE_SUPPORT
  140. bool "Support ET_DYN in shared library loader"
  141. select FORCE_SHAREABLE_TEXT_SEGMENTS
  142. default n
  143. help
  144. If you answer Y here, the uClibc native shared library loader will
  145. support ET_DYN/PIE executables.
  146. It requires binutils-2.14.90.0.6 or later and the usage of the
  147. -pie option.
  148. More about ET_DYN/PIE binaries on <http://pageexec.virtualave.net/> .
  149. WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so all
  150. libraries have to be built with -fPIC or -fpic, and all assembler
  151. functions must be written as position independent code (PIC).
  152. config LDSO_LDD_SUPPORT
  153. bool "Native shared library loader 'ldd' support"
  154. depends on BUILD_UCLIBC_LDSO
  155. default y
  156. help
  157. Enable this to enable all the code needed to support traditional ldd,
  158. which executes the shared library loader to resolve all dependencies
  159. and then provide a list of shared libraries that are required for an
  160. application to function. Disabling this option will makes uClibc's
  161. shared library loader a little bit smaller. Most people will answer Y.
  162. config UCLIBC_CTOR_DTOR
  163. bool "Support global constructors and destructors"
  164. default y
  165. help
  166. If you wish to build uClibc with support for global constructor
  167. (ctor) and global destructor (dtor) support, then answer Y here.
  168. When ctor/dtor support is enabled, binaries linked with uClibc must
  169. also be linked with crtbegin.o and crtend.o which are provided by gcc
  170. (the "*startfile:" and "*endfile:" settings in your gcc specs file
  171. may need to be adjusted to include these files). This support will
  172. also add a small amount of additional size to each binary compiled vs
  173. uClibc. If you will be using uClibc with C++, or if you need the gcc
  174. __attribute__((constructor)) and __attribute__((destructor)) to work,
  175. then you definitely want to answer Y here. If you don't need ctors
  176. or dtors and want your binaries to be as small as possible, then
  177. answer N.
  178. config UCLIBC_PROPOLICE
  179. bool "Support for propolice stack protection"
  180. default n
  181. help
  182. Propolice stack protection.
  183. More about it on <http://www.research.ibm.com/trl/projects/security/ssp> .
  184. To be able to use it, you'll also need a propolice patched gcc,
  185. supporting the -fstack-protector[-all] options. It is a specially patched
  186. gcc version, were __guard and __stack_smash_handler are removed from libgcc.
  187. Most people will answer N.
  188. config UCLIBC_PROFILING
  189. bool "Support gprof profiling"
  190. default y
  191. help
  192. If you wish to build uClibc with support for application profiling
  193. using the gprof tool, then you should enable this feature. Then in
  194. addition to building uClibc with profiling support, you will also
  195. need to recompile all your shared libraries with the profiling
  196. enabled version of uClibc. To add profiling support to your
  197. applications, you must compile things using the gcc options
  198. "-fprofile-arcs -pg". Then when you run your applications, a
  199. gmon.out file will be generated which can then be analyzed by
  200. 'gprof'.
  201. These exist a number of less invasive alternatives that do not
  202. require your to specially instrument your application, and recompile
  203. and relink everything.
  204. Many people have had good results using the combination of Valgrind
  205. to generate profiling information and KCachegrind for analysis:
  206. http://developer.kde.org/~sewardj/
  207. http://kcachegrind.sourceforge.net/
  208. The OProfile system-wide profiler is another alternative:
  209. http://oprofile.sourceforge.net/
  210. Prospect is another alternative based on OProfile:
  211. http://prospect.sourceforge.net/
  212. And the Linux Trace Toolkit (LTT) is also a fine tool:
  213. http://www.opersys.com/LTT/
  214. If none of these tools do what you need, you can of course enable
  215. this option, rebuild everything, and use 'gprof'. There is both a
  216. size and performance penalty to profiling your applications this way,
  217. so most people should answer N.
  218. config HAS_NO_THREADS
  219. bool
  220. default n
  221. config UCLIBC_HAS_THREADS
  222. bool "POSIX Threading Support"
  223. depends on !HAS_NO_THREADS
  224. default y
  225. help
  226. If you want to compile uClibc with pthread support, then answer Y.
  227. This will increase the size of uClibc by adding a bunch of locking
  228. to critical data structures, and adding extra code to ensure that
  229. functions are properly reentrant.
  230. If your applications require pthreads, answer Y.
  231. config PTHREADS_DEBUG_SUPPORT
  232. bool "Build pthreads debugging support"
  233. default n
  234. depends on UCLIBC_HAS_THREADS
  235. help
  236. Say Y here if you wish to be able to debug applications that use
  237. uClibc's pthreads library. By enabling this option, a library
  238. named libthread_db will be built. This library will be dlopen()'d
  239. by gdb and will allow gdb to debug the threads in your application.
  240. IMPORTANT NOTE! Because gdb must dlopen() the libthread_db library,
  241. you must compile gdb with uClibc in order for pthread debugging to
  242. work properly.
  243. If you are doing development and want to debug applications using
  244. uClibc's pthread library, answer Y. Otherwise, answer N.
  245. config UCLIBC_HAS_LFS
  246. bool "Large File Support"
  247. default y
  248. depends on !CONFIG_CRIS
  249. help
  250. If you wish to build uClibc with support for accessing large files
  251. (i.e. files greater then 2 GiB) then answer Y. Do not enable this
  252. if you are using an older Linux kernel (2.0.x) that lacks large file
  253. support. Enabling this option will increase the size of uClibc.
  254. choice
  255. prompt "Malloc Implementation"
  256. default MALLOC if ! ARCH_HAS_MMU
  257. default MALLOC_STANDARD if ARCH_HAS_MMU
  258. help
  259. "malloc" use mmap for all allocations and so works very well on MMU-less
  260. systems that do not support the brk() system call. It is pretty smart
  261. about reusing already allocated memory, and minimizing memory wastage.
  262. This is the default for uClinux MMU-less systems.
  263. "malloc-simple" was written from scratch for uClibc, and is the
  264. simplest possible (and therefore smallest) malloc implementation.
  265. This uses only the mmap() system call to allocation memory, and does
  266. not use the brk() system call at all, making it a fine choice for
  267. MMU-less systems with very limited memory. It is rather dumb, and
  268. certainly isn't the fastest. But it is 100% standards compliant,
  269. thread safe, and very small.
  270. "malloc-standard" is derived from the public domain dlmalloc
  271. implementation by Doug Lea. It is quite fast, and is pretty smart
  272. about reusing already allocated memory, and minimizing memory
  273. wastage. This uses brk() for small allocations, while using mmap()
  274. for larger allocations. This is the default malloc implementation
  275. for uClibc.
  276. If unsure, answer "malloc-standard".
  277. config MALLOC
  278. bool "malloc"
  279. config MALLOC_SIMPLE
  280. bool "malloc-simple"
  281. config MALLOC_STANDARD
  282. bool "malloc-standard"
  283. depends on ARCH_HAS_MMU
  284. endchoice
  285. config MALLOC_GLIBC_COMPAT
  286. bool "Malloc returns live pointer for malloc(0)"
  287. default n
  288. help
  289. The behavior of malloc(0) is listed as implementation-defined by
  290. SuSv3. Glibc returns a valid pointer to something, while uClibc
  291. normally return a NULL. I personally feel glibc's behavior is
  292. not particularly safe, and allows buggy applications to hide very
  293. serious problems.
  294. When this option is enabled, uClibc will act just like glibc, and
  295. return a live pointer when someone calls malloc(0). This pointer
  296. provides a malloc'ed area with a size of 1 byte. This feature is
  297. mostly useful when dealing with applications using autoconf's broken
  298. AC_FUNC_MALLOC macro (which redefines malloc as rpl_malloc if it
  299. does not detect glibc style returning-a-valid-pointer-for-malloc(0)
  300. behavior). Most people can safely answer N.
  301. config UCLIBC_DYNAMIC_ATEXIT
  302. bool "Dynamic atexit() Support"
  303. default y
  304. help
  305. When this option is enabled, uClibc will support an infinite number,
  306. of atexit() and on_exit() functions, limited only by your available
  307. memory. This can be important when uClibc is used with C++, since
  308. global destructors are implemented via atexit(), and it is quite
  309. possible to exceed the default number when this option is disabled.
  310. Enabling this option adds a few bytes, and more significantly makes
  311. atexit and on_exit depend on malloc, which can be bad when compiling
  312. static executables.
  313. Unless you use uClibc with C++, you should probably answer N.
  314. config HAS_SHADOW
  315. bool "Shadow Password Support"
  316. default y
  317. help
  318. Answer N if you do not need shadow password support.
  319. Most people will answer Y.
  320. config UNIX98PTY_ONLY
  321. bool "Support only Unix 98 PTYs"
  322. default y
  323. help
  324. If you want to support only Unix 98 PTYs enable this. Some older
  325. applications may need this disabled. For most current programs,
  326. you can generally answer Y.
  327. config ASSUME_DEVPTS
  328. bool "Assume that /dev/pts is a devpts or devfs file system"
  329. default y
  330. help
  331. Enable this if /dev/pts is on a devpts or devfs filesystem. Both
  332. these filesystems automatically manage permissions on the /dev/pts
  333. devices. You may need to mount your devpts or devfs filesystem on
  334. /dev/pts for this to work.
  335. Most people should answer Y.
  336. config UCLIBC_HAS_TM_EXTENSIONS
  337. bool "Support 'struct tm' timezone extension fields"
  338. default y
  339. help
  340. Enabling this option adds fields to 'struct tm' in time.h for
  341. tracking the number of seconds east of UTC, and an abbreviation for
  342. the current timezone. These fields are not specified by the SuSv3
  343. standard, but they are commonly used in both GNU and BSD application
  344. code.
  345. To strictly follow the SuSv3 standard, leave this disabled.
  346. Most people will probably want to answer Y.
  347. config UCLIBC_HAS_TZ_CACHING
  348. bool "Enable caching of the last valid timezone 'TZ' string"
  349. default y
  350. help
  351. Answer Y to enable caching of the last valid 'TZ' string describing
  352. the timezone setting. This allows a quick string compare to avoid
  353. repeated parsing of unchanged 'TZ' strings when tzset() is called.
  354. Most people will answer Y.
  355. config UCLIBC_HAS_TZ_FILE
  356. bool "Enable '/etc/TZ' file support to set a default timezone (uClibc-specific)"
  357. default y
  358. help
  359. Answer Y to enable the setting of a default timezone for uClibc.
  360. Ordinarily, uClibc gets the timezone information exclusively from the
  361. 'TZ' environment variable. In particular, there is no support for
  362. the zoneinfo directory tree or the /etc/timezone file used by glibc.
  363. With this option enabled, uClibc will use the value stored in the
  364. file '/etc/TZ' (default path) to obtain timezone information if the
  365. 'TZ' environment variable is missing or has an invalid value. The
  366. file consists of a single line (newline required) of text describing
  367. the timezone in the format specified for the TZ environment variable.
  368. Simply doing 'echo CST6CDT > /etc/TZ' is enough to create a valid file.
  369. See
  370. http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html
  371. for details on valid settings of 'TZ'.
  372. Most people will answer Y.
  373. config UCLIBC_HAS_TZ_FILE_READ_MANY
  374. bool "Repeatedly read the '/etc/TZ' file"
  375. depends on UCLIBC_HAS_TZ_FILE
  376. default y
  377. help
  378. Answer Y to enable repeated reading of the '/etc/TZ' file even after
  379. a valid value has been read. This incurs the overhead of an open/read/close
  380. for each tzset() call (explicit or implied). However, setting this
  381. will allows applications to update their timezone information if the contents
  382. of the file change.
  383. Most people will answer Y.
  384. config UCLIBC_TZ_FILE_PATH
  385. string "Path to the 'TZ' file for setting the global timezone"
  386. depends on UCLIBC_HAS_TZ_FILE
  387. default "/etc/TZ"
  388. help
  389. This is the path to the 'TZ' file.
  390. Most people will use the default of '/etc/TZ'.
  391. endmenu
  392. menu "Networking Support"
  393. config UCLIBC_HAS_IPV6
  394. bool "IP version 6 Support"
  395. default n
  396. help
  397. If you want to include support for the next version of the Internet
  398. Protocol (IP version 6) then answer Y.
  399. Most people should answer N.
  400. config UCLIBC_HAS_RPC
  401. bool "Remote Procedure Call (RPC) support"
  402. default n
  403. help
  404. If you want to include RPC support, enable this. RPC is rarely used
  405. for anything except for the NFS filesystem. Unless you plan to use NFS,
  406. you can probably leave this set to N and save some space. If you need
  407. to use NFS then you should answer Y.
  408. config UCLIBC_HAS_FULL_RPC
  409. bool "Full RPC support"
  410. depends on UCLIBC_HAS_RPC
  411. default y if !HAVE_SHARED
  412. help
  413. Normally we enable just enough RPC support for things like rshd and
  414. nfs mounts to work. If you find you need the rest of the RPC stuff,
  415. then enable this option. Most people can safely answer N.
  416. endmenu
  417. menu "String and Stdio Support"
  418. config UCLIBC_HAS_CTYPE_TABLES
  419. bool "Use Table Versions Of 'ctype.h' Functions."
  420. default y
  421. help
  422. Answer Y to use table versions of the 'ctype.h' functions.
  423. While the non-table versions are often smaller when building
  424. staticly linked apps, they work only in stub locale mode.
  425. Most people will answer Y.
  426. config UCLIBC_HAS_CTYPE_SIGNED
  427. bool "Support Signed Characters In 'ctype.h' Functions."
  428. depends UCLIBC_HAS_CTYPE_TABLES
  429. default y
  430. help
  431. Answer Y to enable support for passing signed char values to
  432. the 'ctype.h' functions. ANSI/ISO C99 and SUSv3 specify that
  433. these functions are only defined for unsigned char values and
  434. EOF. However, glibc allows negative signed char values as well
  435. in order to support 'broken old programs'.
  436. Most people will answer Y.
  437. choice
  438. prompt "ctype argument checking"
  439. depends UCLIBC_HAS_CTYPE_TABLES
  440. default UCLIBC_HAS_CTYPE_UNSAFE
  441. help
  442. Please select the invalid arg behavior you want for the 'ctype' functions.
  443. The 'ctype' functions are now implemented using table lookups, with
  444. the arg being the index. This can result in incorrect memory accesses
  445. or even segfaults for args outside of the allowed range.
  446. NOTE: This only affects the 'ctype' _functions_. It does not affect
  447. the macro implementations.
  448. config UCLIBC_HAS_CTYPE_UNSAFE
  449. bool "Do not check -- unsafe"
  450. config UCLIBC_HAS_CTYPE_CHECKED
  451. bool "Detect and handle appropriately"
  452. config UCLIBC_HAS_CTYPE_ENFORCED
  453. bool "Issue a diagnostic and abort()"
  454. endchoice
  455. config UCLIBC_HAS_WCHAR
  456. bool "Wide Character Support"
  457. default n
  458. help
  459. Answer Y to enable wide character support. This will make uClibc
  460. much larger. It is also currently required for locale support.
  461. Most people will answer N.
  462. config UCLIBC_HAS_LOCALE
  463. bool "Locale Support"
  464. select UCLIBC_HAS_WCHAR
  465. select UCLIBC_HAS_CTYPE_TABLES
  466. default n
  467. help
  468. uClibc now has full ANSI/ISO C99 locale support (except for
  469. wcsftime() and collating items in regex). Be aware that enabling
  470. this option will make uClibc much larger.
  471. Enabling UCLIBC_HAS_LOCALE with the default set of supported locales
  472. (169 UTF-8 locales, and 144 locales for other codesets) will enlarge
  473. uClibc by around 300k. You can reduce this size by building your own
  474. custom set of locate data (see extra/locale/LOCALES for details).
  475. uClibc's locale support is still under development. For example,
  476. codesets using shift states are not currently supported. Support is
  477. planned in the next iteration of locale support.
  478. Answer Y to enable locale support. Most people will answer N.
  479. config UCLIBC_PREGENERATED_LOCALE_DATA
  480. bool "Use Pre-generated Locale Data"
  481. depends on UCLIBC_HAS_LOCALE
  482. default n
  483. help
  484. If you are selective and only want locale data for a few particular
  485. locales, or you enjoy pain, or you are a rabid do-it-yourself sort of
  486. person, you can turn this option off and manually walk through the
  487. mostly undocumented procedure needed to generate your own locale
  488. data.
  489. Mere mortals will answer Y and use the default set of pregenerated
  490. locale data, which supports 169 UTF-8 locales, and 144 locales for
  491. other codesets (for the complete list see extra/locale/LOCALES).
  492. config UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA
  493. bool "Automagically Download the Pre-generated Locale Data (if necessary)"
  494. depends on UCLIBC_PREGENERATED_LOCALE_DATA
  495. default n
  496. help
  497. If you would like the build process to use 'wget' to automatically
  498. download the pregenerated locale data, enable this option. Otherwise
  499. you will need to obtain the locale data yourself from:
  500. http://www.uclibc.org/downloads/uClibc-locale-030818.tgz
  501. and place the uClibc-locale-030818.tgz tarball in the extra/locale/
  502. directory.
  503. Go ahead and make life easy for yourself... Answer Y.
  504. config UCLIBC_HAS_XLOCALE
  505. bool "Extended Locale Support (experimental/incomplete)"
  506. depends on UCLIBC_HAS_LOCALE
  507. default n
  508. help
  509. Answer Y to enable extended locale support similar to that provided
  510. by glibc. This is primarily intended to support libstd++ functionality.
  511. However, it also allows thread-specific locale selection via uselocale().
  512. Most people will answer N.
  513. config UCLIBC_HAS_HEXADECIMAL_FLOATS
  514. bool "Support hexadecimal float notation"
  515. depends UCLIBC_HAS_CTYPE_TABLES
  516. depends on UCLIBC_HAS_FLOATS
  517. default n
  518. help
  519. Answer Y to enable support for hexadecimal float notation in the
  520. (wchar and) char string to floating point conversion functions, as
  521. well as support for the %a and %A conversion specifiers in the
  522. *printf() and *scanf() functions.
  523. Most people will answer N.
  524. config UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  525. bool "Support glibc's \"'\" flag for allowing locale-specific digit grouping"
  526. depends on UCLIBC_HAS_LOCALE
  527. depends on UCLIBC_HAS_FLOATS
  528. default n
  529. help
  530. Answer Y to enable support for glibc's \"'\" flag for allowing locale-specific
  531. digit grouping in base 10 integer conversions and appropriate floating point
  532. conversions in the *printf() and *scanf() functions.
  533. Most people will answer N.
  534. config UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING
  535. bool "Do not require digit grouping when the \"'\" flag is specified"
  536. depends on UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  537. default y
  538. help
  539. Answer Y to make digit grouping optional when the \"'\" flag is specified.
  540. This is the standard glibc behavior. If the initial string of digits
  541. exceeds the maximum group number, the input will be treated as a normal
  542. non-grouped number.
  543. Most people will answer N.
  544. config UCLIBC_HAS_GLIBC_CUSTOM_PRINTF
  545. bool "Support glibc's register_printf_function() (glibc-compat)"
  546. depends on !USE_OLD_VFPRINTF
  547. default n
  548. help
  549. Answer Y to support glibc's register_printf_function() to allow an
  550. application to add its own printf conversion specifiers.
  551. NOTE: This implementation limits the number or registered specifiers to 10.
  552. NOTE: This implementation requires new conversion specifiers to be ASCII
  553. characters (0-0x7f). This is to avoid problems with processing
  554. format strings in locales with different multibyte conversions.
  555. Most people will answer N.
  556. config USE_OLD_VFPRINTF
  557. bool "Use the old vfprintf implementation"
  558. depends on !UCLIBC_HAS_WCHAR
  559. default n
  560. help
  561. Set to true to use the old vfprintf instead of the new. This is roughly
  562. C89 compliant with some extensions, and is much smaller. However, it does
  563. not support wide chars, positional args, or glibc custom printf specifiers.
  564. Most people will answer N.
  565. config UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS
  566. int "Maximum number of positional args. Either 0 or >= 9."
  567. depends on !USE_OLD_VFPRINTF
  568. default 9
  569. help
  570. Set the maximum number of positional args supported by the printf/scanf
  571. functions. The Single Unix Specification Version 3 requires a minimum
  572. value of 9. Setting this to a value lower than 9 will disable positional
  573. arg support and cause the NL_ARGMAX macro in limits.h to be #undef'd.
  574. WARNING! The workspace to support positional args is currently allocated
  575. on the stack. You probably don't want to set this to too high a value.
  576. Most people will answer 9.
  577. config UCLIBC_HAS_SCANF_GLIBC_A_FLAG
  578. bool "Support glibc's 'a' flag for scanf string conversions"
  579. default n
  580. help
  581. NOTE!!! Currently Not Implemented!!! Just A Place Holder!! NOTE!!!
  582. Answer Y to enable support for glibc's 'a' flag for the scanf string
  583. conversions '%s', '%[', '%ls', '%l[', and '%S'. This is used to
  584. auto-allocate sufficient memory to hold the data retrieved.
  585. Most people will answer N.
  586. choice
  587. prompt "Stdio buffer size"
  588. default UCLIBC_HAS_STDIO_BUFSIZ_4096
  589. help
  590. Please select a value for BUFSIZ. This will be used by the
  591. stdio subsystem as the default buffer size for a file, and
  592. affects fopen(), setvbuf(), etc.
  593. NOTE: Setting this to 'none' will disable buffering completely.
  594. However, BUFSIZ will still be defined in stdio.h as 256 because
  595. many applications use this value.
  596. config UCLIBC_HAS_STDIO_BUFSIZ_NONE
  597. bool "none (WARNING - BUFSIZ will be 256 in stdio.h)"
  598. depends !UCLIBC_HAS_WCHAR
  599. config UCLIBC_HAS_STDIO_BUFSIZ_256
  600. bool "256 (minimum ANSI/ISO C99 value)"
  601. config UCLIBC_HAS_STDIO_BUFSIZ_512
  602. bool "512"
  603. config UCLIBC_HAS_STDIO_BUFSIZ_1024
  604. bool "1024"
  605. config UCLIBC_HAS_STDIO_BUFSIZ_2048
  606. bool "2048"
  607. config UCLIBC_HAS_STDIO_BUFSIZ_4096
  608. bool "4096"
  609. config UCLIBC_HAS_STDIO_BUFSIZ_8192
  610. bool "8192"
  611. # If you add more choices, you will need to update uClibc_stdio.h.
  612. endchoice
  613. choice
  614. prompt "Stdio builtin buffer size (uClibc-specific)"
  615. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  616. default UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  617. help
  618. When a FILE is created with fopen(), an attempt is made to allocate
  619. a BUFSIZ buffer for it. If the allocation fails, fopen() will still
  620. succeed but the FILE will be unbuffered.
  621. This option adds a small amount of space to each FILE to act as an
  622. emergency buffer in the event of a buffer allocation failure.
  623. Most people will answer None.
  624. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  625. bool "None"
  626. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4
  627. bool "4"
  628. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8
  629. bool "8"
  630. # If you add more choices, you will need to update uClibc_stdio.h.
  631. endchoice
  632. config UCLIBC_HAS_STDIO_GETC_MACRO
  633. bool "Provide a macro version of getc()"
  634. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  635. default y
  636. help
  637. Provide a macro version of getc().
  638. Most people will answer Y.
  639. config UCLIBC_HAS_STDIO_PUTC_MACRO
  640. bool "Provide a macro version of putc()"
  641. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  642. default y
  643. help
  644. Provide a macro version of putc().
  645. Most people will answer Y.
  646. config UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION
  647. bool "Support auto-r/w transition"
  648. default y
  649. help
  650. Answer Y to enable the stdio subsystem to automaticly transition
  651. between reading and writing. This relaxes the ANSI/ISO C99 requirement:
  652. When a file is opened with update mode ('+' as the second or third character
  653. in the list of mode argument values), both input and output may be performed
  654. on the associated stream. However, output shall not be directly followed by
  655. input without an intervening call to the fflush function or to a file
  656. positioning function (fseek, fsetpos, or rewind), and input shall not be
  657. directly followed by output without an intervening call to a file positioning
  658. function, unless the input operation encounters end­of­file.
  659. Most people will answer Y.
  660. config UCLIBC_HAS_FOPEN_LARGEFILE_MODE
  661. bool "Support an fopen() 'F' flag for large file mode (uClibc-specific)"
  662. depends on UCLIBC_HAS_LFS
  663. default n
  664. help
  665. Answer Y to enable a uClibc-specific extension to allow passing an
  666. additional 'F' flag in the mode string for fopen() to specify that
  667. the file should be open()ed with the O_LARGEFILE flag set.
  668. Most people will answer N.
  669. config UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE
  670. bool "Support an fopen() 'x' flag for exclusive mode (glibc-compat)"
  671. default n
  672. help
  673. Answer Y to support a glibc extension to allow passing
  674. additional 'x' flag in the mode string for fopen() to specify that
  675. the file should be open()ed with the O_EXCL flag set.
  676. Most people will answer N.
  677. config UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
  678. bool "Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat)"
  679. default n
  680. help
  681. Answer Y to support the glibc 'custom stream' extension functions
  682. fmemopen(), open_memstream(), and fopencookie().
  683. NOTE: There are some minor differences regarding seeking behavior.
  684. Most people will answer N.
  685. config UCLIBC_HAS_PRINTF_M_SPEC
  686. bool "Support the '%m' specifier in printf format strings (glibc-compat)"
  687. default n
  688. help
  689. Answer Y to support a glibc extension to interpret '%m' in printf
  690. format strings as an instruction to output the error message string
  691. (as generated by strerror) corresponding to the current value of 'errno'.
  692. Most people will answer N.
  693. config UCLIBC_HAS_ERRNO_MESSAGES
  694. bool "Include the errno message text in the library"
  695. default y
  696. help
  697. Answer Y if you want to include the errno message text in the
  698. library. This adds about 3K to the library, but enables strerror()
  699. to generate text other than 'Unknown error <number>'.
  700. Most people will answer Y.
  701. config UCLIBC_HAS_SYS_ERRLIST
  702. bool "Support sys_errlist[] (obsolete-compat)"
  703. depends on UCLIBC_HAS_ERRNO_MESSAGES
  704. default n
  705. help
  706. Answer Y if you want to support the obsolete sys_errlist[].
  707. This adds about 0.5k to the library, except for the mips
  708. arch where it adds over 4K.
  709. WARNING! In the future, support for sys_errlist[] may be unavailable
  710. in at least some configurations. In fact, it may be removed altogether.
  711. Most people will answer N.
  712. config UCLIBC_HAS_SIGNUM_MESSAGES
  713. bool "Include the signum message text in the library"
  714. default y
  715. help
  716. Answer Y if you want to include the signum message text in the
  717. library. This adds about 0.5K to the library, but enables strsignal()
  718. to generate text other than 'Unknown signal <number>'.
  719. Most people will answer Y.
  720. config UCLIBC_HAS_SYS_SIGLIST
  721. bool "Support sys_siglist[] (bsd-compat)"
  722. depends on UCLIBC_HAS_SIGNUM_MESSAGES
  723. default n
  724. help
  725. Answer Y if you want to support sys_siglist[].
  726. WARNING! In the future, support for sys_siglist[] may be unavailable
  727. in at least some configurations. In fact, it may be removed altogether.
  728. Most people will answer N.
  729. config UCLIBC_HAS_GETTEXT_AWARENESS
  730. bool "Include gettext awareness"
  731. depends on UCLIBC_HAS_LOCALE
  732. default n
  733. help
  734. NOTE!!! Not yet integrated with strerror and strsignal. NOTE!!!
  735. Answer Y if you want to include weak stub gettext support and
  736. make the *strerror*() and strsignal() functions gettext-aware.
  737. Currently, to get functional gettext functionality you will need
  738. to use gnu gettext.
  739. Most people will answer N.
  740. config UCLIBC_HAS_GNU_GETOPT
  741. bool "Support gnu getopt"
  742. default y
  743. help
  744. Answer Y if you want to include full gnu getopt() instead of a
  745. (much smaller) SUSv3 compatible getopt().
  746. Most people will answer Y.
  747. endmenu
  748. menu "Big and Tall"
  749. config UCLIBC_HAS_REGEX
  750. bool "Regular Expression Support"
  751. default y
  752. help
  753. POSIX regular expression code is really big -- 27k all by itself.
  754. If you don't use regular expressions, turn this off and save space.
  755. Of course, if you only staticly link, leave this on, since it will
  756. only be included in your apps if you use regular expressions.
  757. config UCLIBC_HAS_WORDEXP
  758. bool "Support the wordexp() interface"
  759. default n
  760. help
  761. The SuSv3 wordexp() interface performs word expansions per the Shell
  762. and Utilities volume of IEEE Std 1003.1-2001, Section 2.6. It is
  763. intended for use by applications that want to implement all of the
  764. standard Bourne shell expansions on input data.
  765. This interface is rarely used, and very large. Unless you have a
  766. pressing need for wordexp(), you should probably answer N.
  767. config UCLIBC_HAS_FTW
  768. bool "Support the ftw() and nftw() interfaces"
  769. default n
  770. help
  771. The SuSv3 ftw() and nftw() interfaces are used to recursively descend
  772. directory paths while repeatedly calling a function.
  773. This interface is rarely used, and adds around 4.5k. Unless you have
  774. a pressing need for ftw() or nftw(), you should probably answer N.
  775. config UCLIBC_HAS_GLOB
  776. bool "Support the glob() interface"
  777. default y
  778. help
  779. The glob interface is somewhat large (weighing in at about 4k). It
  780. is used fairly often, but is an option since people wanting to go for
  781. absolute minimum size may wish to omit it.
  782. Most people will answer Y.
  783. endmenu
  784. menu "Library Installation Options"
  785. config SHARED_LIB_LOADER_PREFIX
  786. string "Shared library loader path"
  787. depends on BUILD_UCLIBC_LDSO
  788. default "$(DEVEL_PREFIX)/lib"
  789. help
  790. When using shared libraries, this path is the location where the
  791. shared library will be invoked. This value will be compiled into
  792. every binary compiled with uClibc.
  793. For a typical target system this should be set to "/lib", such that
  794. 'make install' will install /lib/ld-uClibc.so.0.
  795. BIG FAT WARNING:
  796. If you do not have a shared library loader with the correct name
  797. sitting in the directory this points to, your binaries will not
  798. run.
  799. config SYSTEM_LDSO
  800. string "System shared library loader"
  801. depends on HAVE_SHARED && !BUILD_UCLIBC_LDSO
  802. default "/lib/ld-linux.so.2"
  803. help
  804. If you are using shared libraries, but do not want/have a native
  805. uClibc shared library loader, please specify the name of your
  806. target system's shared library loader here...
  807. BIG FAT WARNING:
  808. If you do not have a shared library loader with the correct name
  809. sitting in the directory this points to, your binaries will not
  810. run.
  811. config RUNTIME_PREFIX
  812. string "uClibc runtime library directory"
  813. default "/usr/$(TARGET_ARCH)-linux-uclibc/"
  814. help
  815. RUNTIME_PREFIX is the directory into which the uClibc runtime
  816. libraries will be installed. The result will look something
  817. like the following:
  818. $(RUNTIME_PREFIX)/
  819. lib/ <contains all runtime libraries>
  820. usr/bin/ldd <the ldd utility program>
  821. sbin/ldconfig <the ldconfig utility program>
  822. This value is used by the 'make install' Makefile target. Since this
  823. directory is compiled into the shared library loader, you will need to
  824. recompile uClibc if you change this value...
  825. For a typical target system this should be set to "/", such that
  826. 'make install' will install /lib/libuClibc-<VERSION>.so
  827. config DEVEL_PREFIX
  828. string "uClibc development environment directory"
  829. default "/usr/$(TARGET_ARCH)-linux-uclibc/usr/"
  830. help
  831. DEVEL_PREFIX is the directory into which the uClibc development
  832. environment will be installed. The result will look something
  833. like the following:
  834. $(DEVEL_PREFIX)/
  835. lib/ <contains static libs>
  836. include/ <Where all the header files go>
  837. This value is used by the 'make install' Makefile target when
  838. installing a uClibc development environment.
  839. For a typical target system this should be set to "/usr", such that
  840. 'make install' will install /usr/include/<header files>.
  841. endmenu
  842. menu "uClibc development/debugging options"
  843. config DODEBUG
  844. bool "Build uClibc with debugging symbols"
  845. default n
  846. help
  847. Say Y here if you wish to compile uClibc with debugging symbols.
  848. This will allow you to use a debugger to examine uClibc internals
  849. while applications are running. This increases the size of the
  850. library considerably and should only be used when doing development.
  851. If you are doing development and want to debug uClibc, answer Y.
  852. Otherwise, answer N.
  853. config DOASSERTS
  854. bool "Build uClibc with run-time assertion testing"
  855. default n
  856. help
  857. Say Y here to include runtime assertion tests.
  858. This enables runtime assertion testing in some code, which can
  859. increase the size of the library and incur runtime overhead.
  860. If you say N, then this testing will be disabled.
  861. config SUPPORT_LD_DEBUG
  862. bool "Build the shared library loader with debugging support"
  863. depends on BUILD_UCLIBC_LDSO
  864. default n
  865. help
  866. Answer Y here to enable all the extra code needed to debug the uClibc
  867. native shared library loader. The level of debugging noise that is
  868. generated depends on the LD_DEBUG environment variable... Just set
  869. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  870. debug your application. Diagnostic messages will then be printed to
  871. the stderr.
  872. For now these debugging tokens are available:
  873. detail provide more information for some options
  874. move display copy processing
  875. symbols display symbol table processing
  876. reloc display relocation processing; detail shows the relocation patch
  877. nofixups never fixes up jump relocations
  878. bindings displays the resolve processing (function calls); detail shows the relocation patch
  879. all Enable everything!
  880. The additional environment variable:
  881. LD_DEBUG_OUTPUT=file
  882. redirects the diagnostics to an output file created using
  883. the specified name and the process id as a suffix.
  884. An excellent start is simply:
  885. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  886. or to log everything to a file named 'logfile', try this
  887. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  888. If you are doing development and want to debug uClibc's shared library
  889. loader, answer Y. Mere mortals answer N.
  890. config SUPPORT_LD_DEBUG_EARLY
  891. bool "Build the shared library loader with early debugging support"
  892. depends on BUILD_UCLIBC_LDSO
  893. default n
  894. help
  895. Answer Y here to if you find the uClibc shared library loader is
  896. crashing or otherwise not working very early on. This is typical
  897. only when starting a new port when you haven't figured out how to
  898. properly get the values for argc, argv, environ, etc. This method
  899. allows a degree of visibility into the very early shared library
  900. loader initialization process. If you are doing development and want
  901. to debug the uClibc shared library loader early initialization,
  902. answer Y. Mere mortals answer N.
  903. config UCLIBC_MALLOC_DEBUGGING
  904. bool "Build malloc with debugging support"
  905. depends MALLOC
  906. default n
  907. help
  908. Answer Y here to compile extra debugging support code into malloc.
  909. Malloc debugging output may then be enabled at runtime using the
  910. MALLOC_DEBUG environment variable.
  911. The value of MALLOC_DEBUG should be an integer, which is interpreted as
  912. a bitmask with the following bits:
  913. 1 - do extra consistency checking
  914. 2 - output messages for malloc/free calls and OS allocation calls
  915. 4 - output messages for the `MMB' layer
  916. 8 - output messages for internal malloc heap manipulation calls
  917. Because this increases the size of malloc appreciably (due to strings
  918. etc), you should say N unless you need to debug a malloc problem.
  919. config UCLIBC_MJN3_ONLY
  920. bool "Manuel's hidden warnings"
  921. default n
  922. help
  923. Answer Y here to see all Manuel's personal notes, warnings, and todos.
  924. Most people will answer N.
  925. endmenu