Config.in 38 KB

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