Config.in 36 KB

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