Config.in 39 KB

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