Config.in 63 KB

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