Config.in 36 KB

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