Config.in 35 KB

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