Config.in 37 KB

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