Config.in 39 KB

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