Config.in 36 KB

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