Config.in 35 KB

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