Config.in 33 KB

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