Config.in 37 KB

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