Config.in 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907
  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. help
  9. Stuff
  10. config TARGET_alpha
  11. bool "alpha"
  12. config TARGET_arm
  13. bool "arm"
  14. config TARGET_avr32
  15. bool "avr32"
  16. config TARGET_bfin
  17. bool "bfin"
  18. config TARGET_cris
  19. bool "cris"
  20. config TARGET_e1
  21. bool "e1 (BROKEN)"
  22. config TARGET_frv
  23. bool "frv (BROKEN)"
  24. config TARGET_h8300
  25. bool "h8300 (BROKEN)"
  26. config TARGET_hppa
  27. bool "hppa"
  28. config TARGET_i386
  29. bool "i386"
  30. config TARGET_i960
  31. bool "i960 (BROKEN)"
  32. config TARGET_ia64
  33. bool "ia64"
  34. config TARGET_m68k
  35. bool "m68k"
  36. config TARGET_microblaze
  37. bool "microblaze (BROKEN)"
  38. config TARGET_mips
  39. bool "mips"
  40. config TARGET_nios
  41. bool "nios"
  42. config TARGET_nios2
  43. bool "nios2"
  44. config TARGET_powerpc
  45. bool "powerpc"
  46. config TARGET_sh
  47. bool "superh"
  48. config TARGET_sh64
  49. bool "sh64"
  50. config TARGET_sparc
  51. bool "sparc"
  52. config TARGET_v850
  53. bool "v850 (BROKEN)"
  54. config TARGET_vax
  55. bool "vax"
  56. config TARGET_x86_64
  57. bool "x86_64"
  58. config TARGET_xtensa
  59. bool "xtensa"
  60. endchoice
  61. menu "Target Architecture Features and Options"
  62. if TARGET_alpha
  63. source "extra/Configs/Config.alpha"
  64. endif
  65. if TARGET_arm
  66. source "extra/Configs/Config.arm"
  67. endif
  68. if TARGET_avr32
  69. source "extra/Configs/Config.avr32"
  70. endif
  71. if TARGET_bfin
  72. source "extra/Configs/Config.bfin"
  73. endif
  74. if TARGET_cris
  75. source "extra/Configs/Config.cris"
  76. endif
  77. if TARGET_e1
  78. source "extra/Configs/Config.e1"
  79. endif
  80. if TARGET_frv
  81. source "extra/Configs/Config.frv"
  82. endif
  83. if TARGET_h8300
  84. source "extra/Configs/Config.h8300"
  85. endif
  86. if TARGET_hppa
  87. source "extra/Configs/Config.hppa"
  88. endif
  89. if TARGET_i386
  90. source "extra/Configs/Config.i386"
  91. endif
  92. if TARGET_i960
  93. source "extra/Configs/Config.i960"
  94. endif
  95. if TARGET_ia64
  96. source "extra/Configs/Config.ia64"
  97. endif
  98. if TARGET_m68k
  99. source "extra/Configs/Config.m68k"
  100. endif
  101. if TARGET_nios
  102. source "extra/Configs/Config.nios"
  103. endif
  104. if TARGET_nios2
  105. source "extra/Configs/Config.nios2"
  106. endif
  107. if TARGET_microblaze
  108. source "extra/Configs/Config.microblaze"
  109. endif
  110. if TARGET_mips
  111. source "extra/Configs/Config.mips"
  112. endif
  113. if TARGET_powerpc
  114. source "extra/Configs/Config.powerpc"
  115. endif
  116. if TARGET_sh
  117. source "extra/Configs/Config.sh"
  118. endif
  119. if TARGET_sh64
  120. source "extra/Configs/Config.sh64"
  121. endif
  122. if TARGET_sparc
  123. source "extra/Configs/Config.sparc"
  124. endif
  125. if TARGET_v850
  126. source "extra/Configs/Config.v850"
  127. endif
  128. if TARGET_vax
  129. source "extra/Configs/Config.vax"
  130. endif
  131. if TARGET_x86_64
  132. source "extra/Configs/Config.x86_64"
  133. endif
  134. if TARGET_xtensa
  135. source "extra/Configs/Config.xtensa"
  136. endif
  137. config TARGET_SUBARCH
  138. string
  139. default "e500" if CONFIG_E500
  140. default "classic" if CONFIG_CLASSIC
  141. default "sh4" if CONFIG_SH4
  142. default ""
  143. source "extra/Configs/Config.in.arch"
  144. endmenu
  145. menu "General Library Settings"
  146. config HAVE_NO_PIC
  147. bool
  148. default n
  149. config DOPIC
  150. bool "Generate only Position Independent Code (PIC)"
  151. default y
  152. depends !HAVE_NO_PIC
  153. help
  154. If you wish to build all of uClibc as PIC objects, then answer Y here.
  155. If you are unsure, then you should answer N.
  156. config ARCH_HAS_NO_SHARED
  157. bool
  158. default n
  159. config ARCH_HAS_NO_LDSO
  160. bool
  161. select ARCH_HAS_NO_SHARED
  162. default n
  163. config HAVE_SHARED
  164. bool "Enable support for shared libraries"
  165. depends on !ARCH_HAS_NO_SHARED
  166. default y
  167. help
  168. If you wish to build uClibc with support for shared libraries then
  169. answer Y here. If you only want to build uClibc as a static library,
  170. then answer N.
  171. config FORCE_SHAREABLE_TEXT_SEGMENTS
  172. bool "Only load shared libraries which can share their text segment"
  173. depends on HAVE_SHARED
  174. default n
  175. help
  176. If you answer Y here, the uClibc native shared library loader will
  177. only load shared libraries, which do not need to modify any non-writable
  178. segments. These libraries haven't set the DT_TEXTREL tag in the dynamic
  179. section (==> objdump). All your libraries must be compiled with
  180. -fPIC or -fpic, and all assembler function must be written as position
  181. independent code (PIC).
  182. Enabling this option will make uClibc's shared library loader a
  183. little bit smaller and guarantee that no memory will be wasted by badly
  184. coded shared libraries.
  185. config LDSO_LDD_SUPPORT
  186. bool "Native 'ldd' support"
  187. depends on HAVE_SHARED
  188. default y
  189. help
  190. Enable this to enable all the code needed to support traditional ldd,
  191. which executes the shared library loader to resolve all dependencies
  192. and then provide a list of shared libraries that are required for an
  193. application to function. Disabling this option will makes uClibc's
  194. shared library loader a little bit smaller. Most people will answer Y.
  195. config LDSO_CACHE_SUPPORT
  196. bool "Enable library loader cache (ld.so.conf)"
  197. depends on HAVE_SHARED
  198. default y
  199. help
  200. Enable this to make use of /etc/ld.so.conf, the shared library loader
  201. cache configuration file to support for non-standard library paths.
  202. After updating this file, it is necessary to run 'ldconfig' to update
  203. the /etc/ld.so.cache shared library loader cache file.
  204. config LDSO_PRELOAD_FILE_SUPPORT
  205. bool "Enable library loader preload file (ld.so.preload)"
  206. depends on HAVE_SHARED
  207. default n
  208. help
  209. Enable this to make use of /etc/ld.so.preload. This file contains a
  210. whitespace separated list of shared libraries to be loaded before
  211. the program.
  212. config LDSO_BASE_FILENAME
  213. string "Shared library loader naming prefix"
  214. depends on HAVE_SHARED && (LDSO_CACHE_SUPPORT || LDSO_PRELOAD_FILE_SUPPORT)
  215. default "ld.so"
  216. help
  217. If you wish to support both uClibc and glibc on the same system, it
  218. is necessary to set this to something other than "ld.so" to avoid
  219. conflicts with glibc, which also uses "ld.so". This prevents both
  220. libraries from using the same /etc/ld.so.* files. If you wish to
  221. support both uClibc and glibc on the same system then you should set
  222. this to "ld-uClibc.so".
  223. Most people will leave this set to the default of "ld.so".
  224. WARNING: Changing the default prefix could cause problems with
  225. binutils' ld !
  226. config UCLIBC_STATIC_LDCONFIG
  227. bool "Link ldconfig statically"
  228. depends on HAVE_SHARED
  229. default y
  230. help
  231. Enable this option to statically link the ldconfig binary.
  232. Making ldconfig static can be beneficial if you have a library
  233. problem and need to use ldconfig to recover. Sometimes, it is
  234. preferable to instead keep the size of the system down, in which
  235. case you should disable this option.
  236. config LDSO_RUNPATH
  237. bool "Enable ELF RUNPATH tag support"
  238. depends on HAVE_SHARED
  239. default y
  240. help
  241. ELF's may have dynamic RPATH/RUNPATH tags. These tags list paths
  242. which extend the library search paths. They are really only useful
  243. if a package installs libraries in non standard locations and
  244. ld.so.conf support is disabled.
  245. Usage of RUNPATH tags is not too common, so disabling this feature
  246. should be safe for most people.
  247. config UCLIBC_CTOR_DTOR
  248. bool "Support global constructors and destructors"
  249. default y
  250. help
  251. If you wish to build uClibc with support for global constructor
  252. (ctor) and global destructor (dtor) support, then answer Y here.
  253. When ctor/dtor support is enabled, binaries linked with uClibc must
  254. also be linked with crtbegin.o and crtend.o which are provided by gcc
  255. (the "*startfile:" and "*endfile:" settings in your gcc specs file
  256. may need to be adjusted to include these files). This support will
  257. also add a small amount of additional size to each binary compiled vs
  258. uClibc. If you will be using uClibc with C++, or if you need the gcc
  259. __attribute__((constructor)) and __attribute__((destructor)) to work,
  260. then you definitely want to answer Y here. If you don't need ctors
  261. or dtors and want your binaries to be as small as possible, then
  262. answer N.
  263. config LDSO_GNU_HASH_SUPPORT
  264. bool "Enable GNU hash style support"
  265. depends on HAVE_SHARED
  266. default n
  267. help
  268. Newest binutils support a new hash style named GNU-hash. The dynamic
  269. linker will use the new GNU-hash section (.gnu.hash) for symbol lookup
  270. if present into the ELF binaries, otherwise it will use the old SysV
  271. hash style (.hash). This ensures that it is completely backward compatible.
  272. Further, being the hash table implementation self-contained into each
  273. executable and shared libraries, objects with mixed hash style can
  274. peacefully coexist in the same process.
  275. If you want to use this new feature, answer Y
  276. config HAS_NO_THREADS
  277. bool
  278. default n
  279. config UCLIBC_HAS_THREADS
  280. bool "POSIX Threading support"
  281. depends on !HAS_NO_THREADS
  282. default y
  283. help
  284. If you want to compile uClibc with pthread support, then answer Y.
  285. This will increase the size of uClibc by adding a bunch of locking
  286. to critical data structures, and adding extra code to ensure that
  287. functions are properly reentrant.
  288. If your applications require pthreads, answer Y.
  289. config PTHREADS_DEBUG_SUPPORT
  290. bool "Build pthreads debugging support"
  291. default n
  292. depends on UCLIBC_HAS_THREADS
  293. help
  294. Say Y here if you wish to be able to debug applications that use
  295. uClibc's pthreads library. By enabling this option, a library
  296. named libthread_db will be built. This library will be dlopen()'d
  297. by gdb and will allow gdb to debug the threads in your application.
  298. IMPORTANT NOTE! Because gdb must dlopen() the libthread_db library,
  299. you must compile gdb with uClibc in order for pthread debugging to
  300. work properly.
  301. If you are doing development and want to debug applications using
  302. uClibc's pthread library, answer Y. Otherwise, answer N.
  303. config LINUXTHREADS_OLD
  304. bool "Use the older (stable) version of linuxthreads"
  305. default y
  306. depends on UCLIBC_HAS_THREADS
  307. help
  308. There are two versions of linuxthreads. The older (stable) version
  309. has been in uClibc for quite a long time but hasn't seen too many
  310. updates other than bugfixes.
  311. The new version has not been tested much, and lacks ports for arches
  312. which glibc does not support (like bfin/frv/etc...), but is based on
  313. the latest code from glibc, so it may be the only choice for the
  314. newer ports (like alpha/amd64/64bit arches and hppa).
  315. config UCLIBC_HAS_SYSLOG
  316. bool "Syslog support"
  317. default y
  318. depends on UCLIBC_HAS_NETWORK_SUPPORT
  319. select UCLIBC_HAS_SOCKET
  320. help
  321. Support sending messages to the system logger.
  322. This requires socket-support.
  323. config UCLIBC_HAS_LFS
  324. bool "Large File Support"
  325. default y
  326. help
  327. If you wish to build uClibc with support for accessing large files
  328. (i.e. files greater then 2 GiB) then answer Y. Do not enable this
  329. if you are using an older Linux kernel (2.0.x) that lacks large file
  330. support. Enabling this option will increase the size of uClibc.
  331. choice
  332. prompt "Malloc Implementation"
  333. default MALLOC if ! ARCH_USE_MMU
  334. default MALLOC_STANDARD if ARCH_USE_MMU
  335. help
  336. "malloc" use mmap for all allocations and so works very well on MMU-less
  337. systems that do not support the brk() system call. It is pretty smart
  338. about reusing already allocated memory, and minimizing memory wastage.
  339. This is the default for uClinux MMU-less systems.
  340. "malloc-simple" was written from scratch for uClibc, and is the
  341. simplest possible (and therefore smallest) malloc implementation.
  342. This uses only the mmap() system call to allocation memory, and does
  343. not use the brk() system call at all, making it a fine choice for
  344. MMU-less systems with very limited memory. It is rather dumb, and
  345. certainly isn't the fastest. But it is 100% standards compliant,
  346. thread safe, and very small.
  347. "malloc-standard" is derived from the public domain dlmalloc
  348. implementation by Doug Lea. It is quite fast, and is pretty smart
  349. about reusing already allocated memory, and minimizing memory
  350. wastage. This uses brk() for small allocations, while using mmap()
  351. for larger allocations. This is the default malloc implementation
  352. for uClibc.
  353. If unsure, answer "malloc-standard".
  354. config MALLOC
  355. bool "malloc"
  356. config MALLOC_SIMPLE
  357. bool "malloc-simple"
  358. config MALLOC_STANDARD
  359. bool "malloc-standard"
  360. depends on ARCH_USE_MMU
  361. endchoice
  362. config MALLOC_GLIBC_COMPAT
  363. bool "Malloc returns live pointer for malloc(0)"
  364. default n
  365. help
  366. The behavior of malloc(0) is listed as implementation-defined by
  367. SuSv3. Glibc returns a valid pointer to something, while uClibc
  368. normally returns NULL. I personally feel glibc's behavior is
  369. not particularly safe, and allows buggy applications to hide very
  370. serious problems.
  371. When this option is enabled, uClibc will act just like glibc, and
  372. return a live pointer when someone calls malloc(0). This pointer
  373. provides a malloc'ed area with a size of 1 byte. This feature is
  374. mostly useful when dealing with applications using autoconf's broken
  375. AC_FUNC_MALLOC macro (which redefines malloc as rpl_malloc if it
  376. does not detect glibc style returning-a-valid-pointer-for-malloc(0)
  377. behavior). Most people can safely answer N.
  378. config UCLIBC_DYNAMIC_ATEXIT
  379. bool "Dynamic atexit() Support"
  380. default y
  381. help
  382. When this option is enabled, uClibc will support an infinite number,
  383. of atexit() and on_exit() functions, limited only by your available
  384. memory. This can be important when uClibc is used with C++, since
  385. global destructors are implemented via atexit(), and it is quite
  386. possible to exceed the default number when this option is disabled.
  387. Enabling this option adds a few bytes, and more significantly makes
  388. atexit and on_exit depend on malloc, which can be bad when compiling
  389. static executables.
  390. Unless you use uClibc with C++, you should probably answer N.
  391. config COMPAT_ATEXIT
  392. bool "Old (visible) atexit Support"
  393. default n
  394. help
  395. Enable this option if you want to update from 0.9.28 to svn/0.9.29, else
  396. you will be missing atexit() until you rebuild all apps.
  397. config UCLIBC_SUSV3_LEGACY
  398. bool "Enable SuSv3 LEGACY functions"
  399. default n
  400. help
  401. Enable this option if you want to have SuSv3 LEGACY functions
  402. in the library, else they are replaced by SuSv3 proposed macros.
  403. Currently applies to bcopy/bzero/bcmp/index/rindex/ftime.
  404. WARNING! ABI incompatibility.
  405. config UCLIBC_SUSV3_LEGACY_MACROS
  406. bool "Enable SuSv3 LEGACY macros"
  407. default n
  408. help
  409. Enable this option if you want to have SuSv3 LEGACY macros.
  410. Currently applies to bcopy/bzero/bcmp/index/rindex et al.
  411. WARNING! ABI incompatibility.
  412. config UCLIBC_HAS_SHADOW
  413. bool "Shadow Password Support"
  414. default y
  415. help
  416. Answer N if you do not need shadow password support.
  417. Most people will answer Y.
  418. config UCLIBC_HAS_PROGRAM_INVOCATION_NAME
  419. bool "Support for program_invocation_name"
  420. default n
  421. help
  422. Support for the GNU-specific program_invocation_name and
  423. program_invocation_short_name strings. Some GNU packages
  424. (like tar and coreutils) utilize these for extra useful
  425. output, but in general are not required.
  426. At startup, these external strings are automatically set
  427. up based on the value of ARGV[0].
  428. If unsure, just answer N.
  429. config UCLIBC_HAS___PROGNAME
  430. bool "Support for __progname"
  431. default y
  432. depends on UCLIBC_HAS_PROGRAM_INVOCATION_NAME
  433. help
  434. Some packages (like openssh) like to peek into internal libc
  435. symbols to make their output a bit more user friendly.
  436. At startup, __progname is automatically set up based on the
  437. value of ARGV[0].
  438. If unsure, just answer N.
  439. config UCLIBC_HAS_PTY
  440. bool "Support for pseudo-terminals"
  441. default y
  442. help
  443. This enables support for pseudo-terminals (see man 4 pts
  444. and man 7 pty).
  445. If unsure, just answer Y.
  446. config UNIX98PTY_ONLY
  447. bool "Support only Unix 98 PTYs"
  448. default y
  449. depends on UCLIBC_HAS_PTY
  450. help
  451. If you want to support only Unix 98 PTYs enable this. Some older
  452. applications may need this disabled. For most current programs,
  453. you can generally answer Y.
  454. config UCLIBC_HAS_GETPT
  455. bool "Support getpt() (glibc-compat)"
  456. default n
  457. depends on UCLIBC_HAS_PTY
  458. help
  459. Some packages may need getpt().
  460. All of those are non-standard and can be considered
  461. GNU/libc compatibility.
  462. Either use posix_openpt() or just open /dev/ptmx yourself.
  463. If unsure, just say N.
  464. config ASSUME_DEVPTS
  465. bool "Assume that /dev/pts is a devpts or devfs file system"
  466. default y
  467. depends on UCLIBC_HAS_PTY
  468. help
  469. Enable this if /dev/pts is on a devpts or devfs filesystem. Both
  470. these filesystems automatically manage permissions on the /dev/pts
  471. devices. You may need to mount your devpts or devfs filesystem on
  472. /dev/pts for this to work.
  473. Most people should answer Y.
  474. config UCLIBC_HAS_TM_EXTENSIONS
  475. bool "Support 'struct tm' timezone extension fields"
  476. default y
  477. help
  478. Enabling this option adds fields to 'struct tm' in time.h for
  479. tracking the number of seconds east of UTC, and an abbreviation for
  480. the current timezone. These fields are not specified by the SuSv3
  481. standard, but they are commonly used in both GNU and BSD application
  482. code.
  483. To strictly follow the SuSv3 standard, leave this disabled.
  484. Most people will probably want to answer Y.
  485. config UCLIBC_HAS_TZ_CACHING
  486. bool "Enable caching of the last valid timezone 'TZ' string"
  487. default y
  488. help
  489. Answer Y to enable caching of the last valid 'TZ' string describing
  490. the timezone setting. This allows a quick string compare to avoid
  491. repeated parsing of unchanged 'TZ' strings when tzset() is called.
  492. Most people will answer Y.
  493. config UCLIBC_HAS_TZ_FILE
  494. bool "Enable '/etc/TZ' file support to set a default timezone (uClibc-specific)"
  495. default y
  496. help
  497. Answer Y to enable the setting of a default timezone for uClibc.
  498. Ordinarily, uClibc gets the timezone information exclusively from the
  499. 'TZ' environment variable. In particular, there is no support for
  500. the zoneinfo directory tree or the /etc/timezone file used by glibc.
  501. With this option enabled, uClibc will use the value stored in the
  502. file '/etc/TZ' (default path) to obtain timezone information if the
  503. 'TZ' environment variable is missing or has an invalid value. The
  504. file consists of a single line (newline required) of text describing
  505. the timezone in the format specified for the TZ environment variable.
  506. Simply doing 'echo CST6CDT > /etc/TZ' is enough to create a valid file.
  507. See
  508. http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html
  509. for details on valid settings of 'TZ'.
  510. Most people will answer Y.
  511. config UCLIBC_HAS_TZ_FILE_READ_MANY
  512. bool "Repeatedly read the '/etc/TZ' file"
  513. depends on UCLIBC_HAS_TZ_FILE
  514. default y
  515. help
  516. Answer Y to enable repeated reading of the '/etc/TZ' file even after
  517. a valid value has been read. This incurs the overhead of an open/read/close
  518. for each tzset() call (explicit or implied). However, setting this
  519. will allows applications to update their timezone information if the contents
  520. of the file change.
  521. Most people will answer Y.
  522. config UCLIBC_TZ_FILE_PATH
  523. string "Path to the 'TZ' file for setting the global timezone"
  524. depends on UCLIBC_HAS_TZ_FILE
  525. default "/etc/TZ"
  526. help
  527. This is the path to the 'TZ' file.
  528. Most people will use the default of '/etc/TZ'.
  529. endmenu
  530. menu "Advanced Library Settings"
  531. config UCLIBC_PWD_BUFFER_SIZE
  532. int "Buffer size for getpwnam() and friends"
  533. default 256
  534. range 12 1024
  535. help
  536. This sets the value of the buffer size for getpwnam() and friends.
  537. By default, this is 256. (For reference, glibc uses 1024).
  538. The value can be found using sysconf() with the _SC_GETPW_R_SIZE_MAX
  539. parameter.
  540. config UCLIBC_GRP_BUFFER_SIZE
  541. int "Buffer size for getgrnam() and friends"
  542. default 256
  543. range 256 1024
  544. help
  545. This sets the value of the buffer size for getgrnam() and friends.
  546. By default, this is 256. (For reference, glibc uses 1024).
  547. The value can be found using sysconf() with the _SC_GETGR_R_SIZE_MAX
  548. parameter.
  549. comment "Support various families of functions"
  550. config UCLIBC_LINUX_MODULE_24
  551. bool "Linux kernel module functions"
  552. default y
  553. help
  554. init_module, create_module, query_module, delete_module
  555. are used in linux (allegedly prior to 2.6) for loadable
  556. kernel modules.
  557. Say N if you do not use kernel modules.
  558. config UCLIBC_LINUX_SPECIFIC
  559. bool "Linux specific functions"
  560. default y
  561. help
  562. fstatfs(), inotify_*(), ioperm(), iopl(), madvise(), modify_ldt(),
  563. personality(), ppoll(), setresuid()
  564. config UCLIBC_HAS_GNU_ERROR
  565. bool "Support GNU extensions for error-reporting"
  566. default y
  567. help
  568. Support for the GNU-specific error(), error_at_line(),
  569. void (* error_print_progname)(), error_message_count
  570. functions and variables. Some GNU packages
  571. utilize these for extra useful output, but in general
  572. are not required.
  573. If unsure, just answer N.
  574. config UCLIBC_BSD_SPECIFIC
  575. bool "BSD specific functions"
  576. default y
  577. help
  578. mincore(), getdomainname(), setdomainname()
  579. If unsure, say N.
  580. config UCLIBC_HAS_BSD_ERR
  581. bool "BSD err functions"
  582. default y
  583. help
  584. These functions are non-standard BSD extensions.
  585. err(), errx(), warn(), warnx(), verr(), verrx(), vwarn(), vwarnx()
  586. If unsure, say N.
  587. config UCLIBC_HAS_OBSOLETE_BSD_SIGNAL
  588. bool "BSD obsolete signal functions"
  589. default n
  590. help
  591. These functions are provided as a compatibility interface for
  592. programs that make use of the historical System V signal API.
  593. This API is obsolete:
  594. new applications should use the POSIX signal API (sigaction(2),
  595. sigprocmask(2), etc.).
  596. Affected functions:
  597. sigset(), sighold(), sigrelse(), sigignore()
  598. If unsure, say N.
  599. config UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL
  600. bool "SYSV obsolete signal functions"
  601. default n
  602. help
  603. Use of sysv_signal() should be avoided; use sigaction(2) instead.
  604. If unsure, say N.
  605. config UCLIBC_NTP_LEGACY
  606. bool "ntp_*() aliases"
  607. default n
  608. help
  609. Provide legacy aliases for ntp functions:
  610. ntp_adjtime(), ntp_gettime()
  611. It is safe to say N here.
  612. config UCLIBC_SV4_DEPRECATED
  613. bool "Enable SVr4 deprecated functions"
  614. default n
  615. help
  616. These functions are DEPRECATED in System V release 4.
  617. Say N unless you desparately need one of the functions below:
  618. ustat() [use statfs(2) in your code instead]
  619. config UCLIBC_HAS_REALTIME
  620. bool "Realtime-related family of SUSv functions"
  621. default y
  622. # glitch in mq_{send,receive} currently forces this on
  623. select UCLIBC_HAS_ADVANCED_REALTIME
  624. help
  625. These functions are part of the Timers option and need not
  626. be available on all implementations.
  627. Includes AIO, message-queue, scheduler, semaphore functions:
  628. aio.h
  629. mqueue.h
  630. sched.h
  631. semaphore.h
  632. aio_cancel()
  633. aio_error()
  634. aio_fsync()
  635. aio_read()
  636. lio_listio()
  637. aio_return()
  638. aio_suspend()
  639. aio_write()
  640. clock_getres(), clock_gettime(), clock_settime()
  641. fdatasync()
  642. mlockall(), munlockall()
  643. mlock(), munlock()
  644. mq_close()
  645. mq_getattr()
  646. mq_notify()
  647. mq_open()
  648. mq_receive()
  649. mq_send()
  650. mq_setattr()
  651. mq_unlink()
  652. nanosleep()
  653. sched_getparam()
  654. sched_get_priority_max(), sched_get_priority_min()
  655. sched_getscheduler()
  656. sched_rr_get_interval()
  657. sched_setparam()
  658. sched_setscheduler()
  659. sem_close()
  660. sem_destroy()
  661. sem_getvalue()
  662. sem_init()
  663. sem_open()
  664. sem_post()
  665. sem_trywait(), sem_wait()
  666. sem_unlink()
  667. sigqueue()
  668. sigtimedwait(), sigwaitinfo()
  669. timer_create()
  670. timer_delete()
  671. timer_getoverrun(), timer_gettime(), timer_settime()
  672. config UCLIBC_HAS_ADVANCED_REALTIME
  673. bool "Advanced realtime-related family of SUSv functions"
  674. default y
  675. depends on UCLIBC_HAS_REALTIME
  676. help
  677. These functions are part of the Timers option and need not
  678. be available on all implementations.
  679. clock_getcpuclockid()
  680. clock_nanosleep()
  681. mq_timedreceive()
  682. mq_timedsend()
  683. posix_fadvise()
  684. posix_fallocate()
  685. posix_madvise()
  686. posix_memalign()
  687. posix_mem_offset()
  688. posix_spawnattr_destroy(), posix_spawnattr_init()
  689. posix_spawnattr_getflags(), posix_spawnattr_setflags()
  690. posix_spawnattr_getpgroup(), posix_spawnattr_setpgroup()
  691. posix_spawnattr_getschedparam(), posix_spawnattr_setschedparam()
  692. posix_spawnattr_getschedpolicy(), posix_spawnattr_setschedpolicy()
  693. posix_spawnattr_getsigdefault(), posix_spawnattr_setsigdefault()
  694. posix_spawnattr_getsigmask(), posix_spawnattr_setsigmask()
  695. posix_spawn_file_actions_addclose()
  696. posix_spawn_file_actions_adddup2()
  697. posix_spawn_file_actions_addopen()
  698. posix_spawn_file_actions_destroy()
  699. posix_spawn_file_actions_init()
  700. posix_spawn()
  701. posix_spawnp()
  702. posix_typed_mem_get_info()
  703. pthread_mutex_timedlock()
  704. sem_timedwait()
  705. #config UCLIBC_HAS_TERMIOS
  706. # bool "termios functions"
  707. # default y
  708. # help
  709. # Get and set terminal attributes, line control, get and set baud
  710. # rate.
  711. # termios(), tcgetattr(), tcsetattr(), tcsendbreak(), tcdrain(),
  712. # tcflush(), tcflow(), cfmakeraw(), cfgetospeed(), cfgetispeed(),
  713. # cfsetispeed(), cfsetospeed(), cfsetspeed()
  714. #
  715. # If unsure, say Y.
  716. config UCLIBC_HAS_EPOLL
  717. bool "epoll"
  718. default y
  719. help
  720. epoll_create(), epoll_ctl(), epoll_wait() functions.
  721. config UCLIBC_HAS_XATTR
  722. bool "Extended Attributes"
  723. default y
  724. help
  725. Extended Attributes support.
  726. setxattr()
  727. lsetxattr()
  728. fsetxattr()
  729. getxattr()
  730. lgetxattr()
  731. fgetxattr()
  732. listxattr()
  733. llistxattr()
  734. flistxattr()
  735. removexattr()
  736. lremovexattr()
  737. fremovexattr()
  738. Say N unless you need support for extended attributes and the
  739. filesystems do actually support them.
  740. config UCLIBC_HAS_PROFILING
  741. bool "Profiling support"
  742. default y
  743. help
  744. gcc's -finstrument-functions needs these.
  745. Most people can safely answer N.
  746. endmenu
  747. menuconfig UCLIBC_HAS_NETWORK_SUPPORT
  748. bool "Networking Support"
  749. default y
  750. help
  751. Say N here if you do not need network support.
  752. if UCLIBC_HAS_NETWORK_SUPPORT
  753. config UCLIBC_HAS_SOCKET
  754. bool "Socket support"
  755. default y
  756. help
  757. If you want to include support for sockets then answer Y.
  758. config UCLIBC_HAS_IPV4
  759. bool "IP version 4 support"
  760. default y
  761. select UCLIBC_HAS_SOCKET
  762. help
  763. If you want to include support for the Internet Protocol
  764. (IP version 4) then answer Y.
  765. Most people will say Y.
  766. config UCLIBC_HAS_IPV6
  767. bool "IP version 6 support"
  768. default n
  769. select UCLIBC_HAS_SOCKET
  770. help
  771. If you want to include support for the next version of the Internet
  772. Protocol (IP version 6) then answer Y.
  773. Most people should answer N.
  774. config UCLIBC_HAS_RPC
  775. bool "Remote Procedure Call (RPC) support"
  776. default n
  777. help
  778. If you want to include RPC support, enable this. RPC is rarely used
  779. for anything except for the NFS filesystem. Unless you plan to use NFS,
  780. you can probably leave this set to N and save some space. If you need
  781. to use NFS then you should answer Y.
  782. config UCLIBC_HAS_FULL_RPC
  783. bool "Full RPC support"
  784. depends on UCLIBC_HAS_RPC
  785. default y if !HAVE_SHARED
  786. help
  787. Normally we enable just enough RPC support for things like rshd and
  788. nfs mounts to work. If you find you need the rest of the RPC stuff,
  789. then enable this option. Most people can safely answer N.
  790. config UCLIBC_HAS_REENTRANT_RPC
  791. bool "Reentrant RPC support"
  792. depends on UCLIBC_HAS_RPC
  793. default y if !HAVE_SHARED
  794. help
  795. Most packages utilize the normal (non-reentrant) RPC functions, but
  796. some (like exportfs from nfs-utils) need these reentrant versions.
  797. Most people can safely answer N.
  798. config UCLIBC_USE_NETLINK
  799. bool "Use netlink to query interfaces"
  800. default n
  801. depends on UCLIBC_HAS_SOCKET
  802. help
  803. In newer versions of Linux (2.4.17+), support was added for querying
  804. network device information via netlink rather than the old style
  805. ioctl's. Most of the time, the older ioctl style is sufficient (and
  806. it is smaller than netlink), but if you find that not all of your
  807. devices are being returned by the if_nameindex() function, you will
  808. have to use the netlink implementation.
  809. Most people can safely answer N.
  810. config UCLIBC_HAS_BSD_RES_CLOSE
  811. bool "Support res_close() (bsd-compat)"
  812. default n
  813. help
  814. Answer Y if you desperately want to support BSD compatibility in
  815. the network code.
  816. Most people will say N.
  817. endif
  818. menu "String and Stdio Support"
  819. config UCLIBC_HAS_STRING_GENERIC_OPT
  820. bool "Use glibc generic string functions"
  821. default y
  822. help
  823. Answer Y to use the (tweaked) glibc generic string functions.
  824. In general, they are faster (but 3-5K larger) than the base
  825. uClibc string functions which are optimized solely for size.
  826. Many people will answer Y.
  827. config UCLIBC_HAS_STRING_ARCH_OPT
  828. bool "Use arch-specific string functions"
  829. default y
  830. help
  831. Answer Y to use the arch-specific string functions instead of the
  832. base uClibc versions, which are optimized exclusively for size.
  833. Most people will answer Y, as this has been default behavior
  834. for some time.
  835. config UCLIBC_HAS_CTYPE_TABLES
  836. bool "Use Table Versions Of 'ctype.h' Functions."
  837. default y
  838. help
  839. Answer Y to use table versions of the 'ctype.h' functions.
  840. While the non-table versions are often smaller when building
  841. statically linked apps, they work only in stub locale mode.
  842. Most people will answer Y.
  843. config UCLIBC_HAS_CTYPE_SIGNED
  844. bool "Support Signed Characters In 'ctype.h' Functions."
  845. depends UCLIBC_HAS_CTYPE_TABLES
  846. default y
  847. help
  848. Answer Y to enable support for passing signed char values to
  849. the 'ctype.h' functions. ANSI/ISO C99 and SUSv3 specify that
  850. these functions are only defined for unsigned char values and
  851. EOF. However, glibc allows negative signed char values as well
  852. in order to support 'broken old programs'.
  853. Most people will answer Y.
  854. choice
  855. prompt "ctype argument checking"
  856. depends UCLIBC_HAS_CTYPE_TABLES
  857. default UCLIBC_HAS_CTYPE_UNSAFE
  858. help
  859. Please select the invalid arg behavior you want for the 'ctype' functions.
  860. The 'ctype' functions are now implemented using table lookups, with
  861. the arg being the index. This can result in incorrect memory accesses
  862. or even segfaults for args outside of the allowed range.
  863. NOTE: This only affects the 'ctype' _functions_. It does not affect
  864. the macro implementations.
  865. config UCLIBC_HAS_CTYPE_UNSAFE
  866. bool "Do not check -- unsafe"
  867. config UCLIBC_HAS_CTYPE_CHECKED
  868. bool "Detect and handle appropriately"
  869. config UCLIBC_HAS_CTYPE_ENFORCED
  870. bool "Issue a diagnostic and abort()"
  871. endchoice
  872. config UCLIBC_HAS_WCHAR
  873. bool "Wide Character Support"
  874. default n
  875. help
  876. Answer Y to enable wide character support. This will make uClibc
  877. much larger. It is also currently required for locale support.
  878. Most people will answer N.
  879. config UCLIBC_HAS_LOCALE
  880. bool "Locale Support"
  881. select UCLIBC_HAS_WCHAR
  882. select UCLIBC_HAS_CTYPE_TABLES
  883. default n
  884. help
  885. uClibc now has full ANSI/ISO C99 locale support (except for
  886. wcsftime() and collating items in regex). Be aware that enabling
  887. this option will make uClibc much larger.
  888. Enabling UCLIBC_HAS_LOCALE with the default set of supported locales
  889. (169 UTF-8 locales, and 144 locales for other codesets) will enlarge
  890. uClibc by around 300k. You can reduce this size by building your own
  891. custom set of locate data (see extra/locale/LOCALES for details).
  892. uClibc's locale support is still under development. For example,
  893. codesets using shift states are not currently supported. Support is
  894. planned in the next iteration of locale support.
  895. Answer Y to enable locale support. Most people will answer N.
  896. config UCLIBC_PREGENERATED_LOCALE_DATA
  897. bool "Use Pre-generated Locale Data"
  898. depends on UCLIBC_HAS_LOCALE
  899. default n
  900. help
  901. If you are selective and only want locale data for a few particular
  902. locales, or you enjoy pain, or you are a rabid do-it-yourself sort of
  903. person, you can turn this option off and manually walk through the
  904. mostly undocumented procedure needed to generate your own locale
  905. data.
  906. Mere mortals will answer Y and use the default set of pregenerated
  907. locale data, which supports 169 UTF-8 locales, and 144 locales for
  908. other codesets (for the complete list see extra/locale/LOCALES).
  909. config UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA
  910. bool "Automagically Download the Pre-generated Locale Data (if necessary)"
  911. depends on UCLIBC_PREGENERATED_LOCALE_DATA
  912. default n
  913. help
  914. If you would like the build process to use 'wget' to automatically
  915. download the pregenerated locale data, enable this option. Otherwise
  916. you will need to obtain the locale data yourself from:
  917. http://www.uclibc.org/downloads/uClibc-locale-030818.tgz
  918. and place the uClibc-locale-030818.tgz tarball in the extra/locale/
  919. directory.
  920. Go ahead and make life easy for yourself... Answer Y.
  921. config UCLIBC_HAS_XLOCALE
  922. bool "Extended Locale Support (experimental/incomplete)"
  923. depends on UCLIBC_HAS_LOCALE
  924. default n
  925. help
  926. Answer Y to enable extended locale support similar to that provided
  927. by glibc. This is primarily intended to support libstd++ functionality.
  928. However, it also allows thread-specific locale selection via uselocale().
  929. Most people will answer N.
  930. config UCLIBC_HAS_HEXADECIMAL_FLOATS
  931. bool "Support hexadecimal float notation"
  932. depends UCLIBC_HAS_CTYPE_TABLES
  933. depends on UCLIBC_HAS_FLOATS
  934. default n
  935. help
  936. Answer Y to enable support for hexadecimal float notation in the
  937. (wchar and) char string to floating point conversion functions, as
  938. well as support for the %a and %A conversion specifiers in the
  939. *printf() and *scanf() functions.
  940. Most people will answer N.
  941. config UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  942. bool "Support glibc's \"'\" flag for allowing locale-specific digit grouping"
  943. depends on UCLIBC_HAS_LOCALE
  944. depends on UCLIBC_HAS_FLOATS
  945. default n
  946. help
  947. Answer Y to enable support for glibc's \"'\" flag for allowing locale-specific
  948. digit grouping in base 10 integer conversions and appropriate floating point
  949. conversions in the *printf() and *scanf() functions.
  950. Most people will answer N.
  951. config UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING
  952. bool "Do not require digit grouping when the \"'\" flag is specified"
  953. depends on UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  954. default y
  955. help
  956. Answer Y to make digit grouping optional when the \"'\" flag is specified.
  957. This is the standard glibc behavior. If the initial string of digits
  958. exceeds the maximum group number, the input will be treated as a normal
  959. non-grouped number.
  960. Most people will answer N.
  961. config UCLIBC_HAS_GLIBC_CUSTOM_PRINTF
  962. bool "Support glibc's register_printf_function() (glibc-compat)"
  963. depends on !USE_OLD_VFPRINTF
  964. default n
  965. help
  966. Answer Y to support glibc's register_printf_function() to allow an
  967. application to add its own printf conversion specifiers.
  968. NOTE: This implementation limits the number or registered specifiers to 10.
  969. NOTE: This implementation requires new conversion specifiers to be ASCII
  970. characters (0-0x7f). This is to avoid problems with processing
  971. format strings in locales with different multibyte conversions.
  972. Most people will answer N.
  973. config USE_OLD_VFPRINTF
  974. bool "Use the old vfprintf implementation"
  975. depends on !UCLIBC_HAS_WCHAR
  976. default n
  977. help
  978. Set to true to use the old vfprintf instead of the new. This is roughly
  979. C89 compliant with some extensions, and is much smaller. However, it does
  980. not support wide chars, positional args, or glibc custom printf specifiers.
  981. Most people will answer N.
  982. config UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS
  983. int "Maximum number of positional args. Either 0 or >= 9."
  984. depends on !USE_OLD_VFPRINTF
  985. default 9
  986. help
  987. Set the maximum number of positional args supported by the printf/scanf
  988. functions. The Single Unix Specification Version 3 requires a minimum
  989. value of 9. Setting this to a value lower than 9 will disable positional
  990. arg support and cause the NL_ARGMAX macro in limits.h to be #undef'd.
  991. WARNING! The workspace to support positional args is currently allocated
  992. on the stack. You probably don't want to set this to too high a value.
  993. Most people will answer 9.
  994. config UCLIBC_HAS_SCANF_GLIBC_A_FLAG
  995. bool "Support glibc's 'a' flag for scanf string conversions (not implemented)"
  996. default n
  997. help
  998. NOTE!!! Currently Not Implemented!!! Just A Place Holder!! NOTE!!!
  999. NOTE!!! Conflicts with an ANSI/ISO C99 scanf flag!! NOTE!!!
  1000. Answer Y to enable support for glibc's 'a' flag for the scanf string
  1001. conversions '%s', '%[', '%ls', '%l[', and '%S'. This is used to
  1002. auto-allocate sufficient memory to hold the data retrieved.
  1003. Most people will answer N.
  1004. choice
  1005. prompt "Stdio buffer size"
  1006. default UCLIBC_HAS_STDIO_BUFSIZ_4096
  1007. help
  1008. Please select a value for BUFSIZ. This will be used by the
  1009. stdio subsystem as the default buffer size for a file, and
  1010. affects fopen(), setvbuf(), etc.
  1011. NOTE: Setting this to 'none' will disable buffering completely.
  1012. However, BUFSIZ will still be defined in stdio.h as 256 because
  1013. many applications use this value.
  1014. config UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1015. bool "none (WARNING - BUFSIZ will be 256 in stdio.h)"
  1016. depends !UCLIBC_HAS_WCHAR
  1017. config UCLIBC_HAS_STDIO_BUFSIZ_256
  1018. bool "256 (minimum ANSI/ISO C99 value)"
  1019. config UCLIBC_HAS_STDIO_BUFSIZ_512
  1020. bool "512"
  1021. config UCLIBC_HAS_STDIO_BUFSIZ_1024
  1022. bool "1024"
  1023. config UCLIBC_HAS_STDIO_BUFSIZ_2048
  1024. bool "2048"
  1025. config UCLIBC_HAS_STDIO_BUFSIZ_4096
  1026. bool "4096"
  1027. config UCLIBC_HAS_STDIO_BUFSIZ_8192
  1028. bool "8192"
  1029. # If you add more choices, you will need to update uClibc_stdio.h.
  1030. endchoice
  1031. choice
  1032. prompt "Stdio builtin buffer size (uClibc-specific)"
  1033. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1034. default UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  1035. help
  1036. When a FILE is created with fopen(), an attempt is made to allocate
  1037. a BUFSIZ buffer for it. If the allocation fails, fopen() will still
  1038. succeed but the FILE will be unbuffered.
  1039. This option adds a small amount of space to each FILE to act as an
  1040. emergency buffer in the event of a buffer allocation failure.
  1041. Most people will answer None.
  1042. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  1043. bool "None"
  1044. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4
  1045. bool "4"
  1046. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8
  1047. bool "8"
  1048. # If you add more choices, you will need to update uClibc_stdio.h.
  1049. endchoice
  1050. config UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT
  1051. bool "Attempt to shutdown stdio subsystem when abort() is called."
  1052. default n
  1053. help
  1054. ANSI/ISO C99 requires abort() to be asyn-signal-safe. So there was a behavioral
  1055. change made in SUSv3. Previously, abort() was required to have the affect of
  1056. fclose() on all open streams. The wording has been changed to "may" from "shall".
  1057. Most people will answer N.
  1058. config UCLIBC_HAS_STDIO_GETC_MACRO
  1059. bool "Provide a macro version of getc()"
  1060. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1061. default y
  1062. help
  1063. Provide a macro version of getc().
  1064. Most people will answer Y.
  1065. config UCLIBC_HAS_STDIO_PUTC_MACRO
  1066. bool "Provide a macro version of putc()"
  1067. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1068. default y
  1069. help
  1070. Provide a macro version of putc().
  1071. Most people will answer Y.
  1072. config UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION
  1073. bool "Support auto-r/w transition"
  1074. default y
  1075. help
  1076. Answer Y to enable the stdio subsystem to automaticly transition
  1077. between reading and writing. This relaxes the ANSI/ISO C99 requirement:
  1078. When a file is opened with update mode ('+' as the second or third character
  1079. in the list of mode argument values), both input and output may be performed
  1080. on the associated stream. However, output shall not be directly followed by
  1081. input without an intervening call to the fflush function or to a file
  1082. positioning function (fseek, fsetpos, or rewind), and input shall not be
  1083. directly followed by output without an intervening call to a file positioning
  1084. function, unless the input operation encounters end­of­file.
  1085. Most people will answer Y.
  1086. config UCLIBC_HAS_FOPEN_LARGEFILE_MODE
  1087. bool "Support an fopen() 'F' flag for large file mode (uClibc-specific)"
  1088. depends on UCLIBC_HAS_LFS
  1089. default n
  1090. help
  1091. Answer Y to enable a uClibc-specific extension to allow passing an
  1092. additional 'F' flag in the mode string for fopen() to specify that
  1093. the file should be open()ed with the O_LARGEFILE flag set.
  1094. Most people will answer N.
  1095. config UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE
  1096. bool "Support an fopen() 'x' flag for exclusive mode (glibc-compat)"
  1097. default n
  1098. help
  1099. Answer Y to support a glibc extension to allow passing
  1100. additional 'x' flag in the mode string for fopen() to specify that
  1101. the file should be open()ed with the O_EXCL flag set.
  1102. Most people will answer N.
  1103. config UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
  1104. bool "Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat)"
  1105. default n
  1106. help
  1107. Answer Y to support the glibc 'custom stream' extension functions
  1108. fmemopen(), open_memstream(), and fopencookie().
  1109. NOTE: There are some minor differences regarding seeking behavior.
  1110. Most people will answer N.
  1111. config UCLIBC_HAS_PRINTF_M_SPEC
  1112. bool "Support the '%m' specifier in printf format strings (glibc-compat)"
  1113. default n
  1114. help
  1115. Answer Y to support a glibc extension to interpret '%m' in printf
  1116. format strings as an instruction to output the error message string
  1117. (as generated by strerror) corresponding to the current value of 'errno'.
  1118. Most people will answer N.
  1119. config UCLIBC_HAS_ERRNO_MESSAGES
  1120. bool "Include the errno message text in the library"
  1121. default y
  1122. help
  1123. Answer Y if you want to include the errno message text in the
  1124. library. This adds about 3K to the library, but enables strerror()
  1125. to generate text other than 'Unknown error <number>'.
  1126. Most people will answer Y.
  1127. config UCLIBC_HAS_SYS_ERRLIST
  1128. bool "Support sys_errlist[] (obsolete-compat)"
  1129. depends on UCLIBC_HAS_ERRNO_MESSAGES
  1130. default n
  1131. help
  1132. Answer Y if you want to support the obsolete sys_errlist[].
  1133. This adds about 0.5k to the library, except for the mips
  1134. arch where it adds over 4K.
  1135. WARNING! In the future, support for sys_errlist[] may be unavailable
  1136. in at least some configurations. In fact, it may be removed altogether.
  1137. Most people will answer N.
  1138. Application writers: use the strerror(3) function.
  1139. config UCLIBC_HAS_SIGNUM_MESSAGES
  1140. bool "Include the signum message text in the library"
  1141. default y
  1142. help
  1143. Answer Y if you want to include the signum message text in the
  1144. library. This adds about 0.5K to the library, but enables strsignal()
  1145. to generate text other than 'Unknown signal <number>'.
  1146. Most people will answer Y.
  1147. config UCLIBC_HAS_SYS_SIGLIST
  1148. bool "Support sys_siglist[] (bsd-compat)"
  1149. depends on UCLIBC_HAS_SIGNUM_MESSAGES
  1150. default n
  1151. help
  1152. Answer Y if you want to support sys_siglist[].
  1153. WARNING! In the future, support for sys_siglist[] may be unavailable
  1154. in at least some configurations. In fact, it may be removed altogether.
  1155. Most people will answer N.
  1156. config UCLIBC_HAS_GETTEXT_AWARENESS
  1157. bool "Include gettext awareness"
  1158. depends on UCLIBC_HAS_LOCALE && UCLIBC_MJN3_ONLY
  1159. default n
  1160. help
  1161. NOTE!!! Not yet integrated with strerror and strsignal. NOTE!!!
  1162. Answer Y if you want to include weak stub gettext support and
  1163. make the *strerror*() and strsignal() functions gettext-aware.
  1164. Currently, to get functional gettext functionality you will need
  1165. to use gnu gettext.
  1166. Most people will answer N.
  1167. config UCLIBC_HAS_GNU_GETOPT
  1168. bool "Support gnu getopt"
  1169. default y
  1170. help
  1171. Answer Y if you want to include full gnu getopt() instead of a
  1172. (much smaller) SUSv3 compatible getopt().
  1173. Most people will answer Y.
  1174. config UCLIBC_HAS_GETOPT_LONG
  1175. bool "Support getopt_long/getopt_long_only"
  1176. depends !UCLIBC_HAS_GNU_GETOPT
  1177. default y
  1178. help
  1179. Answer Y if you want to include getopt_long[_only() used by many
  1180. apps, even busybox.
  1181. Most people will answer Y.
  1182. config UCLIBC_HAS_GNU_GETSUBOPT
  1183. bool "Support glibc getsubopt"
  1184. default y
  1185. help
  1186. Answer Y if you want to include glibc getsubopt() instead of a
  1187. smaller SUSv3 compatible getsubopt().
  1188. Most people will answer Y.
  1189. endmenu
  1190. menu "Big and Tall"
  1191. config UCLIBC_HAS_REGEX
  1192. bool "Regular Expression Support"
  1193. default y
  1194. help
  1195. POSIX regular expression code is really big -- 53k all by itself.
  1196. If you don't use regular expressions, turn this off and save space.
  1197. Of course, if you only statically link, leave this on, since it will
  1198. only be included in your apps if you use regular expressions.
  1199. config UCLIBC_HAS_REGEX_OLD
  1200. bool "Use the older (stable) regular expression code"
  1201. depends on UCLIBC_HAS_REGEX
  1202. default y
  1203. help
  1204. There are two versions of regex. The older (stable) version has
  1205. been in uClibc for quite a long time but hasn't seen too many
  1206. updates. It also has some known issues when dealing with uncommon
  1207. corner cases and multibyte/unicode strings. However, it is quite
  1208. a bit smaller than the newer version.
  1209. If the older version has worked for you and you don't need unicode
  1210. support, then stick with the old version (and say Y here).
  1211. Otherwise, you should use the new version (and say N here).
  1212. config UCLIBC_HAS_FNMATCH
  1213. bool "fnmatch Support"
  1214. default y
  1215. help
  1216. POSIX fnmatch.
  1217. config UCLIBC_HAS_FNMATCH_OLD
  1218. bool "Use the older (stable) fnmatch code"
  1219. depends on UCLIBC_HAS_FNMATCH
  1220. default y
  1221. help
  1222. There are two versions of fnmatch. The older (stable) version has
  1223. been in uClibc for quite a long time but hasn't seen too many
  1224. updates. It also has some known issues when dealing with uncommon
  1225. corner cases and multibyte/unicode strings. However, it is quite
  1226. a bit smaller than the newer version.
  1227. If the older version has worked for you and you don't need unicode
  1228. support, then stick with the old version (and say Y here).
  1229. Otherwise, you should use the new version (and say N here).
  1230. config UCLIBC_HAS_WORDEXP
  1231. bool "Support the wordexp() interface"
  1232. depends on UCLIBC_HAS_GLOB
  1233. default n
  1234. help
  1235. The SuSv3 wordexp() interface performs word expansions per the Shell
  1236. and Utilities volume of IEEE Std 1003.1-2001, Section 2.6. It is
  1237. intended for use by applications that want to implement all of the
  1238. standard Bourne shell expansions on input data.
  1239. This interface is rarely used, and very large. Unless you have a
  1240. pressing need for wordexp(), you should probably answer N.
  1241. config UCLIBC_HAS_FTW
  1242. bool "Support the ftw() and nftw() interfaces"
  1243. default n
  1244. help
  1245. The SuSv3 ftw() and nftw() interfaces are used to recursively descend
  1246. directory paths while repeatedly calling a function.
  1247. This interface is rarely used, and adds around 4.5k. Unless you have
  1248. a pressing need for ftw() or nftw(), you should probably answer N.
  1249. config UCLIBC_HAS_GLOB
  1250. bool "Support the glob() interface"
  1251. depends on UCLIBC_HAS_FNMATCH
  1252. default y
  1253. help
  1254. The glob interface is somewhat large (weighing in at about 2,5k). It
  1255. is used fairly often, but is an option since people wanting to go for
  1256. absolute minimum size may wish to omit it.
  1257. Most people will answer Y.
  1258. config UCLIBC_HAS_GNU_GLOB
  1259. bool "Support gnu glob() interface"
  1260. depends on UCLIBC_HAS_GLOB
  1261. default n
  1262. help
  1263. The gnu glob interface is somewhat larger (weighing in at about 4,2k) than
  1264. it's SuSv3 counterpart (and is out of date). It is an old copy from glibc and
  1265. does not support all the GNU specific options.
  1266. Answer Y if you want to include full gnu glob() instead of the smaller SUSv3
  1267. compatible glob().
  1268. Most people will answer N.
  1269. endmenu
  1270. menu "Library Installation Options"
  1271. config SHARED_LIB_LOADER_PREFIX
  1272. string "Shared library loader path"
  1273. depends on HAVE_SHARED
  1274. default "$(RUNTIME_PREFIX)lib"
  1275. help
  1276. When using shared libraries, this path is the location where the
  1277. shared library will be invoked. This value will be compiled into
  1278. every binary compiled with uClibc.
  1279. For a typical target system this should be set to "/lib", such that
  1280. 'make install' will install /lib/ld-uClibc.so.0.
  1281. BIG FAT WARNING:
  1282. If you do not have a shared library loader with the correct name
  1283. sitting in the directory this points to, your binaries will not
  1284. run.
  1285. config RUNTIME_PREFIX
  1286. string "uClibc runtime library directory"
  1287. default "/usr/$(TARGET_ARCH)-linux-uclibc/"
  1288. help
  1289. RUNTIME_PREFIX is the directory into which the uClibc runtime
  1290. libraries will be installed. The result will look something
  1291. like the following:
  1292. $(RUNTIME_PREFIX)/
  1293. lib/ <contains all runtime libraries>
  1294. usr/bin/ldd <the ldd utility program>
  1295. sbin/ldconfig <the ldconfig utility program>
  1296. This value is used by the 'make install' Makefile target. Since this
  1297. directory is compiled into the shared library loader, you will need to
  1298. recompile uClibc if you change this value...
  1299. For a typical target system this should be set to "/", such that
  1300. 'make install' will install /lib/libuClibc-<VERSION>.so
  1301. config DEVEL_PREFIX
  1302. string "uClibc development environment directory"
  1303. default "/usr/$(TARGET_ARCH)-linux-uclibc/usr/"
  1304. help
  1305. DEVEL_PREFIX is the directory into which the uClibc development
  1306. environment will be installed. The result will look something
  1307. like the following:
  1308. $(DEVEL_PREFIX)/
  1309. lib/ <contains static libs>
  1310. include/ <Where all the header files go>
  1311. This value is used by the 'make install' Makefile target when
  1312. installing a uClibc development environment.
  1313. For a typical target system this should be set to "/usr", such that
  1314. 'make install' will install /usr/include/<header files>.
  1315. endmenu
  1316. menu "Security options"
  1317. config UCLIBC_BUILD_PIE
  1318. bool "Build utilities as ET_DYN/PIE executables"
  1319. depends on HAVE_SHARED
  1320. depends on TARGET_arm || TARGET_frv || TARGET_i386 || TARGET_mips || TARGET_powerpc
  1321. select FORCE_SHAREABLE_TEXT_SEGMENTS
  1322. default n
  1323. help
  1324. If you answer Y here, ldd and iconv are built as ET_DYN/PIE executables.
  1325. It requires gcc-3.4 and binutils-2.15 (for arm 2.16) or later.
  1326. More about ET_DYN/PIE binaries on <http://pax.grsecurity.net/> .
  1327. WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so all
  1328. libraries have to be built with -fPIC or -fpic, and all assembler
  1329. functions must be written as position independent code (PIC).
  1330. config UCLIBC_HAS_ARC4RANDOM
  1331. bool "Include the arc4random() function"
  1332. default n
  1333. help
  1334. Answer Y to support the OpenBSD-like arc4random() function. This
  1335. function picks a random number between 0 and N, and will always return
  1336. something even if the random driver is dead. If urandom fails then
  1337. gettimeofday(2) will be used as the random seed. This function is
  1338. designed to be more dependable than invoking /dev/urandom directly.
  1339. OpenSSL and OpenNTPD currently support this function.
  1340. Most people will answer N.
  1341. config HAVE_NO_SSP
  1342. bool
  1343. default n
  1344. config UCLIBC_HAS_SSP
  1345. bool "Support for propolice smashing stack protector"
  1346. depends on !HAVE_NO_SSP
  1347. default n
  1348. help
  1349. Add propolice smashing stack protector to the library.
  1350. This requires GCC 4.1, supporting the -fstack-protector[-all]
  1351. options. GCC does not have to provide libssp, the needed
  1352. functions are added to ldso/libc instead.
  1353. Most people will answer N.
  1354. config UCLIBC_HAS_SSP_COMPAT
  1355. bool "Support for gcc-3.x propolice smashing stack protector"
  1356. depends on UCLIBC_HAS_SSP
  1357. default n
  1358. help
  1359. Add gcc-3.x propolice smashing stack protector to the library.
  1360. This requires a patched version of GCC, supporting the
  1361. -fstack-protector[-all] options, with the __guard and
  1362. __stack_smash_handler functions removed from libgcc.
  1363. These functions are added to ldso/libc instead.
  1364. More information at:
  1365. <http://www.research.ibm.com/trl/projects/security/ssp/>
  1366. Most people will answer N.
  1367. config SSP_QUICK_CANARY
  1368. bool "Use simple guard values without accessing /dev/urandom"
  1369. depends on UCLIBC_HAS_SSP
  1370. default n
  1371. help
  1372. Use gettimeofday(2) to define the __guard without accessing
  1373. /dev/urandom.
  1374. WARNING: This makes smashing stack protector vulnerable to timing
  1375. attacks.
  1376. Most people will answer N.
  1377. choice
  1378. prompt "Propolice protection blocking signal"
  1379. depends on UCLIBC_HAS_SSP
  1380. default PROPOLICE_BLOCK_ABRT if ! DODEBUG
  1381. default PROPOLICE_BLOCK_SEGV if DODEBUG
  1382. help
  1383. "abort" use SIGABRT to block offending programs.
  1384. This is the default implementation.
  1385. "segfault" use SIGSEGV to block offending programs.
  1386. Use this for debugging.
  1387. If unsure, answer "abort".
  1388. config PROPOLICE_BLOCK_ABRT
  1389. bool "abort"
  1390. config PROPOLICE_BLOCK_SEGV
  1391. bool "segfault"
  1392. endchoice
  1393. config UCLIBC_BUILD_SSP
  1394. bool "Build uClibc with propolice protection"
  1395. depends on UCLIBC_HAS_SSP
  1396. default n
  1397. help
  1398. Build all libraries and executables with propolice protection enabled.
  1399. config UCLIBC_BUILD_RELRO
  1400. bool "Build uClibc with RELRO"
  1401. depends on HAVE_SHARED
  1402. default y
  1403. help
  1404. Build all libraries and executables with -z relro.
  1405. config UCLIBC_BUILD_NOW
  1406. bool "Build uClibc with NOW"
  1407. depends on HAVE_SHARED
  1408. default n
  1409. help
  1410. Build all libraries and executables with -z now.
  1411. config UCLIBC_BUILD_NOEXECSTACK
  1412. bool "Build uClibc with noexecstack marking"
  1413. default y
  1414. help
  1415. Mark all assembler files as noexecstack. This will result in marking
  1416. all libraries and executables built against uClibc not requiring
  1417. executable stack.
  1418. endmenu
  1419. menu "uClibc development/debugging options"
  1420. config CROSS_COMPILER_PREFIX
  1421. string "Cross-compiling toolchain prefix"
  1422. default ""
  1423. help
  1424. The prefix used to execute your cross-compiling toolchain. For
  1425. example, if you run 'arm-linux-uclibc-gcc' to compile something,
  1426. then enter 'arm-linux-uclibc-' here.
  1427. config UCLIBC_EXTRA_CFLAGS
  1428. string "Enter any extra CFLAGS to use to build uClibc"
  1429. default ""
  1430. help
  1431. Add any additional CFLAGS to be used to build uClibc.
  1432. config DODEBUG
  1433. bool "Build uClibc with debugging symbols"
  1434. default n
  1435. select EXTRA_WARNINGS
  1436. help
  1437. Say Y here if you wish to compile uClibc with debugging symbols.
  1438. This will allow you to use a debugger to examine uClibc internals
  1439. while applications are running. This increases the size of the
  1440. library considerably and should only be used when doing development.
  1441. If you are doing development and want to debug uClibc, answer Y.
  1442. Otherwise, answer N.
  1443. config DODEBUG_PT
  1444. bool "Build pthread with debugging output"
  1445. depends on UCLIBC_HAS_THREADS && LINUXTHREADS_OLD
  1446. default n
  1447. help
  1448. Enable debug output in libpthread. This is only useful when doing
  1449. development in libpthread itself.
  1450. Otherwise, answer N.
  1451. config DOSTRIP
  1452. bool "Strip libraries and executables"
  1453. default y
  1454. depends on !DODEBUG
  1455. help
  1456. Say Y here if you do wish to strip all uClibc libraries and
  1457. executables. No stripping increases the size of the binaries
  1458. considerably, but makes it possible to debug uClibc libraries.
  1459. Most people will answer Y.
  1460. config DOASSERTS
  1461. bool "Build uClibc with run-time assertion testing"
  1462. default n
  1463. help
  1464. Say Y here to include runtime assertion tests.
  1465. This enables runtime assertion testing in some code, which can
  1466. increase the size of the library and incur runtime overhead.
  1467. If you say N, then this testing will be disabled.
  1468. config SUPPORT_LD_DEBUG
  1469. bool "Build the shared library loader with debugging support"
  1470. depends on HAVE_SHARED
  1471. default n
  1472. help
  1473. Answer Y here to enable all the extra code needed to debug the uClibc
  1474. native shared library loader. The level of debugging noise that is
  1475. generated depends on the LD_DEBUG environment variable... Just set
  1476. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  1477. debug your application. Diagnostic messages will then be printed to
  1478. the stderr.
  1479. For now these debugging tokens are available:
  1480. detail provide more information for some options
  1481. move display copy processing
  1482. symbols display symbol table processing
  1483. reloc display relocation processing; detail shows the relocation patch
  1484. nofixups never fixes up jump relocations
  1485. bindings displays the resolve processing (function calls); detail shows the relocation patch
  1486. all Enable everything!
  1487. The additional environment variable:
  1488. LD_DEBUG_OUTPUT=file
  1489. redirects the diagnostics to an output file created using
  1490. the specified name and the process id as a suffix.
  1491. An excellent start is simply:
  1492. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  1493. or to log everything to a file named 'logfile', try this
  1494. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  1495. If you are doing development and want to debug uClibc's shared library
  1496. loader, answer Y. Mere mortals answer N.
  1497. config SUPPORT_LD_DEBUG_EARLY
  1498. bool "Build the shared library loader with early debugging support"
  1499. depends on HAVE_SHARED
  1500. default n
  1501. help
  1502. Answer Y here to if you find the uClibc shared library loader is
  1503. crashing or otherwise not working very early on. This is typical
  1504. only when starting a new port when you haven't figured out how to
  1505. properly get the values for argc, argv, environ, etc. This method
  1506. allows a degree of visibility into the very early shared library
  1507. loader initialization process. If you are doing development and want
  1508. to debug the uClibc shared library loader early initialization,
  1509. answer Y. Mere mortals answer N.
  1510. config UCLIBC_MALLOC_DEBUGGING
  1511. bool "Build malloc with debugging support"
  1512. depends MALLOC || MALLOC_STANDARD
  1513. default n
  1514. help
  1515. Answer Y here to compile extra debugging support code into malloc.
  1516. Malloc debugging output may then be enabled at runtime using the
  1517. MALLOC_DEBUG environment variable.
  1518. The value of MALLOC_DEBUG should be an integer, which is interpreted as
  1519. a bitmask with the following bits:
  1520. 1 - do extra consistency checking
  1521. 2 - output messages for malloc/free calls and OS allocation calls
  1522. 4 - output messages for the `MMB' layer
  1523. 8 - output messages for internal malloc heap manipulation calls
  1524. Because this increases the size of malloc appreciably (due to strings
  1525. etc), you should say N unless you need to debug a malloc problem.
  1526. config WARNINGS
  1527. string "Compiler Warnings"
  1528. default "-Wall"
  1529. help
  1530. Set this to the set of gcc warnings you wish to see while compiling.
  1531. config EXTRA_WARNINGS
  1532. bool "Enable extra annoying warnings"
  1533. default n
  1534. help
  1535. If you wish to build with extra warnings enabled, say Y here.
  1536. config DOMULTI
  1537. bool "Compile all sources at once into an object"
  1538. default n
  1539. help
  1540. Set this to compile all sources at once into an object (IMA).
  1541. config UCLIBC_MJN3_ONLY
  1542. bool "Manuel's hidden warnings"
  1543. default n
  1544. help
  1545. Answer Y here to see all Manuel's personal notes, warnings, and todos.
  1546. Most people will answer N.
  1547. endmenu