Config.in 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see extra/config/Kconfig-language.txt
  4. #
  5. mainmenu "uClibc $VERSION C Library Configuration"
  6. config DESIRED_TARGET_ARCH
  7. string
  8. option env="ARCH"
  9. config VERSION
  10. string
  11. option env="VERSION"
  12. choice
  13. prompt "Target Architecture"
  14. default TARGET_alpha if DESIRED_TARGET_ARCH = "alpha"
  15. default TARGET_arc if DESIRED_TARGET_ARCH = "arc"
  16. default TARGET_arm if DESIRED_TARGET_ARCH = "arm"
  17. default TARGET_avr32 if DESIRED_TARGET_ARCH = "avr32"
  18. default TARGET_bfin if DESIRED_TARGET_ARCH = "bfin"
  19. default TARGET_cris if DESIRED_TARGET_ARCH = "cris"
  20. default TARGET_e1 if DESIRED_TARGET_ARCH = "e1"
  21. default TARGET_frv if DESIRED_TARGET_ARCH = "frv"
  22. default TARGET_h8300 if DESIRED_TARGET_ARCH = "h8300"
  23. default TARGET_hppa if DESIRED_TARGET_ARCH = "hppa"
  24. default TARGET_i386 if DESIRED_TARGET_ARCH = "i386"
  25. default TARGET_i960 if DESIRED_TARGET_ARCH = "i960"
  26. default TARGET_ia64 if DESIRED_TARGET_ARCH = "ia64"
  27. default TARGET_m68k if DESIRED_TARGET_ARCH = "m68k"
  28. default TARGET_metag if DESIRED_TARGET_ARCH = "metag"
  29. default TARGET_microblaze if DESIRED_TARGET_ARCH = "microblaze"
  30. default TARGET_mips if DESIRED_TARGET_ARCH = "mips"
  31. default TARGET_nios if DESIRED_TARGET_ARCH = "nios"
  32. default TARGET_nios2 if DESIRED_TARGET_ARCH = "nios2"
  33. default TARGET_powerpc if DESIRED_TARGET_ARCH = "powerpc"
  34. default TARGET_sh if DESIRED_TARGET_ARCH = "sh"
  35. default TARGET_sh64 if DESIRED_TARGET_ARCH = "sh64"
  36. default TARGET_sparc if DESIRED_TARGET_ARCH = "sparc"
  37. default TARGET_v850 if DESIRED_TARGET_ARCH = "v850"
  38. default TARGET_vax if DESIRED_TARGET_ARCH = "vax"
  39. default TARGET_x86_64 if DESIRED_TARGET_ARCH = "x86_64"
  40. default TARGET_xtensa if DESIRED_TARGET_ARCH = "xtensa"
  41. help
  42. The architecture of your target.
  43. #config TARGET_alpha
  44. # bool "alpha"
  45. config TARGET_arc
  46. bool "arc"
  47. config TARGET_arm
  48. bool "arm"
  49. config TARGET_avr32
  50. bool "avr32"
  51. config TARGET_bfin
  52. bool "bfin"
  53. # someone could sync this tree:
  54. # http://linux-c6x.org/git/?p=uClibc.git;a=summary
  55. config TARGET_c6x
  56. bool "c6x"
  57. config TARGET_cris
  58. bool "cris"
  59. #config TARGET_e1
  60. # bool "e1 (BROKEN)"
  61. #config TARGET_frv
  62. # bool "frv (BROKEN)"
  63. config TARGET_h8300
  64. bool "h8300"
  65. #config TARGET_hppa
  66. # bool "hppa"
  67. config TARGET_i386
  68. bool "i386"
  69. #config TARGET_i960
  70. # bool "i960 (BROKEN)"
  71. #config TARGET_ia64
  72. # bool "ia64"
  73. config TARGET_m68k
  74. bool "m68k"
  75. #config TARGET_metag
  76. # bool "metag"
  77. config TARGET_microblaze
  78. bool "microblaze"
  79. config TARGET_mips
  80. bool "mips"
  81. #config TARGET_nios
  82. # bool "nios"
  83. config TARGET_nios2
  84. bool "nios2"
  85. config TARGET_powerpc
  86. bool "powerpc"
  87. config TARGET_sh
  88. bool "superh"
  89. #config TARGET_sh64
  90. # bool "sh64"
  91. config TARGET_sparc
  92. bool "sparc"
  93. #config TARGET_v850
  94. # bool "v850 (BROKEN)"
  95. #config TARGET_vax
  96. # bool "vax"
  97. config TARGET_x86_64
  98. bool "x86_64"
  99. config TARGET_xtensa
  100. bool "xtensa"
  101. endchoice
  102. menu "Target Architecture Features and Options"
  103. if TARGET_alpha
  104. source "extra/Configs/Config.alpha"
  105. endif
  106. if TARGET_arm
  107. source "extra/Configs/Config.arm"
  108. endif
  109. if TARGET_avr32
  110. source "extra/Configs/Config.avr32"
  111. endif
  112. if TARGET_bfin
  113. source "extra/Configs/Config.bfin"
  114. endif
  115. if TARGET_cris
  116. source "extra/Configs/Config.cris"
  117. endif
  118. if TARGET_e1
  119. source "extra/Configs/Config.e1"
  120. endif
  121. if TARGET_frv
  122. source "extra/Configs/Config.frv"
  123. endif
  124. if TARGET_h8300
  125. source "extra/Configs/Config.h8300"
  126. endif
  127. if TARGET_hppa
  128. source "extra/Configs/Config.hppa"
  129. endif
  130. if TARGET_i386
  131. source "extra/Configs/Config.i386"
  132. endif
  133. if TARGET_i960
  134. source "extra/Configs/Config.i960"
  135. endif
  136. if TARGET_ia64
  137. source "extra/Configs/Config.ia64"
  138. endif
  139. if TARGET_m68k
  140. source "extra/Configs/Config.m68k"
  141. endif
  142. if TARGET_metag
  143. source "extra/Configs/Config.metag"
  144. endif
  145. if TARGET_nios
  146. source "extra/Configs/Config.nios"
  147. endif
  148. if TARGET_nios2
  149. source "extra/Configs/Config.nios2"
  150. endif
  151. if TARGET_microblaze
  152. source "extra/Configs/Config.microblaze"
  153. endif
  154. if TARGET_mips
  155. source "extra/Configs/Config.mips"
  156. endif
  157. if TARGET_powerpc
  158. source "extra/Configs/Config.powerpc"
  159. endif
  160. if TARGET_sh
  161. source "extra/Configs/Config.sh"
  162. endif
  163. if TARGET_sh64
  164. source "extra/Configs/Config.sh64"
  165. endif
  166. if TARGET_sparc
  167. source "extra/Configs/Config.sparc"
  168. endif
  169. if TARGET_v850
  170. source "extra/Configs/Config.v850"
  171. endif
  172. if TARGET_vax
  173. source "extra/Configs/Config.vax"
  174. endif
  175. if TARGET_x86_64
  176. source "extra/Configs/Config.x86_64"
  177. endif
  178. if TARGET_xtensa
  179. source "extra/Configs/Config.xtensa"
  180. endif
  181. if TARGET_c6x
  182. source "extra/Configs/Config.c6x"
  183. endif
  184. if TARGET_arc
  185. source "extra/Configs/Config.arc"
  186. endif
  187. config TARGET_SUBARCH
  188. string
  189. default "e500" if CONFIG_E500
  190. default "classic" if CONFIG_CLASSIC
  191. default "sh4" if CONFIG_SH4
  192. default "" if CONFIG_386
  193. default "i486" if CONFIG_486
  194. default "i586" if CONFIG_586
  195. default "i686" if CONFIG_686
  196. default "arcv2" if CONFIG_ARC_CPU_HS
  197. default ""
  198. source "extra/Configs/Config.in.arch"
  199. endmenu
  200. menu "General Library Settings"
  201. config HAVE_NO_PIC
  202. bool
  203. config DOPIC
  204. bool "Generate only Position Independent Code (PIC)"
  205. default y
  206. depends on !HAVE_NO_PIC
  207. help
  208. If you wish to build all of uClibc as PIC objects, then answer Y here.
  209. If you are unsure, then you should answer N.
  210. config ARCH_HAS_NO_SHARED
  211. bool
  212. config ARCH_HAS_NO_LDSO
  213. bool
  214. select ARCH_HAS_NO_SHARED
  215. config ARCH_HAS_UCONTEXT
  216. bool
  217. config HAVE_SHARED
  218. bool "Enable shared libraries"
  219. depends on !ARCH_HAS_NO_SHARED
  220. default y
  221. help
  222. If you wish to build uClibc with support for shared libraries then
  223. answer Y here. If you only want to build uClibc as a static library,
  224. then answer N.
  225. config FORCE_SHAREABLE_TEXT_SEGMENTS
  226. bool "Only load shared libraries which can share their text segment"
  227. depends on HAVE_SHARED
  228. select DOPIC
  229. help
  230. If you answer Y here, the uClibc native shared library loader will
  231. only load shared libraries, which do not need to modify any
  232. non-writable segments. These libraries haven't set the DT_TEXTREL
  233. tag in the dynamic section (==> objdump).
  234. All your libraries must be compiled with -fPIC or -fpic, and all
  235. assembler function must be written as position independent code (PIC).
  236. Enabling this option will make uClibc's shared library loader a
  237. little bit smaller and guarantee that no memory will be wasted by
  238. badly coded shared libraries.
  239. config LDSO_LDD_SUPPORT
  240. bool "Native 'ldd' support"
  241. depends on HAVE_SHARED
  242. default y
  243. help
  244. Enable all the code needed to support traditional ldd,
  245. which executes the shared library loader to resolve all dependencies
  246. and then provide a list of shared libraries that are required for an
  247. application to function. Disabling this option will make uClibc's
  248. shared library loader a little bit smaller.
  249. Most people will answer Y.
  250. config LDSO_CACHE_SUPPORT
  251. bool "Enable library loader cache (ld.so.conf)"
  252. depends on HAVE_SHARED
  253. default y
  254. help
  255. Enable this to make use of /etc/ld.so.conf, the shared library loader
  256. cache configuration file to support for non-standard library paths.
  257. After updating this file, it is necessary to run 'ldconfig' to update
  258. the /etc/ld.so.cache shared library loader cache file.
  259. config LDSO_PRELOAD_ENV_SUPPORT
  260. bool "Enable library loader LD_PRELOAD environment"
  261. depends on HAVE_SHARED
  262. default y
  263. help
  264. Enable this to make use of LD_PRELOAD environment variable.
  265. A whitespace-separated list of additional, user-specified, ELF shared
  266. libraries to be loaded before all others. This can be used to
  267. selectively override functions in other shared libraries. For
  268. set-user-ID/set-group-ID ELF binaries, only libraries in the standard
  269. search directories that are also set-user-ID will be loaded.
  270. config LDSO_PRELOAD_FILE_SUPPORT
  271. bool "Enable library loader preload file (ld.so.preload)"
  272. depends on HAVE_SHARED
  273. help
  274. Enable this to make use of /etc/ld.so.preload. This file contains a
  275. whitespace separated list of shared libraries to be loaded before
  276. the program.
  277. config LDSO_BASE_FILENAME
  278. string "Shared library loader naming prefix"
  279. depends on HAVE_SHARED && (LDSO_CACHE_SUPPORT || LDSO_PRELOAD_FILE_SUPPORT)
  280. default "ld.so"
  281. help
  282. If you wish to support both uClibc and glibc on the same system, it
  283. is necessary to set this to something other than "ld.so" to avoid
  284. conflicts with glibc, which also uses "ld.so". This prevents both
  285. libraries from using the same /etc/ld.so.* files. If you wish to
  286. support both uClibc and glibc on the same system then you should set
  287. this to "ld-uClibc.so".
  288. Most people will leave this set to the default of "ld.so".
  289. WARNING: Changing the default prefix could cause problems with
  290. binutils' ld !
  291. config LDSO_STANDALONE_SUPPORT
  292. bool "Dynamic linker stand-alone mode support"
  293. depends on HAVE_SHARED
  294. help
  295. The dynamic linker can be run either indirectly through running some
  296. dynamically linked program or library (in which case no command line
  297. options to the dynamic linker can be passed and, in the ELF case, the
  298. dynamic linker which is stored in the .interp section of the program
  299. is executed) or directly by running:
  300. /lib/ld-uClibc.so.* [OPTIONS] [PROGRAM [ARGUMENTS]]
  301. Stand-alone execution is a prerequisite for adding prelink
  302. capabilities to uClibc dynamic linker, as well useful for testing an
  303. updated version of the dynamic linker without breaking the system.
  304. config LDSO_PRELINK_SUPPORT
  305. bool "Dynamic linker prelink support"
  306. depends on HAVE_SHARED
  307. select LDSO_STANDALONE_SUPPORT
  308. help
  309. The dynamic linker can be used in stand-alone mode by the prelink tool
  310. for prelinking ELF shared libraries and binaries to speed up startup
  311. time. It also is able to load and handle prelinked libraries and
  312. binaries at runtime.
  313. config UCLIBC_STATIC_LDCONFIG
  314. bool "Link ldconfig statically"
  315. depends on HAVE_SHARED
  316. default y
  317. help
  318. Enable this option to statically link the ldconfig binary.
  319. Making ldconfig static can be beneficial if you have a library
  320. problem and need to use ldconfig to recover. Sometimes it is
  321. preferable to instead keep the size of the system down, in which
  322. case you should disable this option.
  323. config LDSO_RUNPATH
  324. bool "Enable ELF RUNPATH tag support"
  325. depends on HAVE_SHARED
  326. default y if LDSO_CACHE_SUPPORT
  327. help
  328. ELF's may have dynamic RPATH/RUNPATH tags. These tags list paths
  329. which extend the library search paths. They are really only useful
  330. if a package installs libraries in non standard locations and
  331. ld.so.conf support is disabled.
  332. Usage of RUNPATH tags is not too common, so disabling this feature
  333. should be safe for most people.
  334. config LDSO_RUNPATH_OF_EXECUTABLE
  335. bool "Use executables RUNPATH/RPATH when searching for libraries."
  336. depends on LDSO_RUNPATH
  337. default n
  338. help
  339. Use the executables RUNPATH/RPATH to find to find libraries even
  340. though this behavour is not standard. Setting this option causes
  341. the uclibc dynamic linker behavour to match the glibc dynamic linker.
  342. config LDSO_SAFE_RUNPATH
  343. bool "Allow only RUNPATH beginning with /"
  344. depends on LDSO_RUNPATH
  345. default y
  346. help
  347. Allow only absolute path in RPATH/RUNPATH.
  348. config LDSO_SEARCH_INTERP_PATH
  349. bool "Add ldso path to lib search path"
  350. depends on HAVE_SHARED
  351. default y
  352. help
  353. The ldso is told where it is being executed from and can use that
  354. path to find related core libraries. This is useful by default,
  355. but can be annoying in a mixed development environment.
  356. i.e. if the ldso is run from /foo/boo/ldso.so, it will start its
  357. library search with /foo/boo/
  358. If unsure, simply say Y here.
  359. config LDSO_LD_LIBRARY_PATH
  360. bool "Add LD_LIBRARY_PATH to lib search path"
  361. depends on HAVE_SHARED
  362. default y
  363. help
  364. On hardened system it could be useful to disable the use of
  365. LD_LIBRARY_PATH environment variable (a colon-separated list of
  366. directories in which to search for ELF libraries at execution-time).
  367. If unsure, simply say Y here.
  368. config LDSO_NO_CLEANUP
  369. bool "Disable automatic unloading of dynamically loaded shared objects"
  370. depends on HAVE_SHARED
  371. help
  372. If you need complete allocation traces when debugging memory leaks
  373. using Valgrind in a process that dynamically loads shared objects,
  374. then answer Y here. Unlike glibc, uClibc unloads all dynamically
  375. loaded shared objects when a process exits, which prevents Valgrind
  376. from correctly resolving the symbols from the unloaded shared objects.
  377. Unless you know you need this, you should answer N.
  378. config UCLIBC_CTOR_DTOR
  379. boolean
  380. default y
  381. help
  382. If you wish to build uClibc with support for global constructor
  383. (ctor) and global destructor (dtor) support, then answer Y here.
  384. When ctor/dtor support is enabled, binaries linked with uClibc must
  385. also be linked with crtbegin.o and crtend.o which are provided by gcc
  386. (the "*startfile:" and "*endfile:" settings in your gcc specs file
  387. may need to be adjusted to include these files). This support will
  388. also add a small amount of additional size to each binary compiled vs
  389. uClibc. If you will be using uClibc with C++, or if you need the gcc
  390. __attribute__((constructor)) and __attribute__((destructor)) to work,
  391. then you definitely want to answer Y here. If you don't need ctors
  392. or dtors and want your binaries to be as small as possible, then
  393. answer N.
  394. config LDSO_GNU_HASH_SUPPORT
  395. bool "Enable GNU hash style support"
  396. depends on HAVE_SHARED
  397. help
  398. Newest binutils support a new hash style named GNU-hash. The dynamic
  399. linker will use the new GNU-hash section (.gnu.hash) for symbol lookup
  400. if present into the ELF binaries, otherwise it will use the old SysV
  401. hash style (.hash). This ensures that it is completely backward
  402. compatible.
  403. Further, being the hash table implementation self-contained into each
  404. executable and shared libraries, objects with mixed hash style can
  405. peacefully coexist in the same process.
  406. If you want to use this new feature, answer Y
  407. choice
  408. prompt "Thread support"
  409. #default UCLIBC_HAS_THREADS_NATIVE if (TARGET_alpha || TARGET_arm || TARGET_i386 || TARGET_mips || TARGET_powerpc || TARGET_sh || TARGET_sh64)
  410. default HAS_NO_THREADS
  411. help
  412. If you want to compile uClibc with pthread support, then answer Y.
  413. This will increase the size of uClibc by adding a bunch of locking
  414. to critical data structures, and adding extra code to ensure that
  415. functions are properly reentrant.
  416. config HAS_NO_THREADS
  417. bool "none"
  418. help
  419. Disable thread support.
  420. config LINUXTHREADS_OLD
  421. bool "older (stable) version of linuxthreads"
  422. # linuxthreads and linuxthreads.old need nanosleep()
  423. select UCLIBC_HAS_REALTIME
  424. depends on !TARGET_arc && \
  425. !TARGET_i386 && \
  426. !TARGET_metag && \
  427. !TARGET_mips && \
  428. !TARGET_powerpc && \
  429. !TARGET_sh && \
  430. !TARGET_sparc && \
  431. !TARGET_x86_64 && \
  432. !TARGET_xtensa
  433. help
  434. There are two versions of linuxthreads. The older (stable) version
  435. has been in uClibc for quite a long time but hasn't seen too many
  436. updates other than bugfixes.
  437. config LINUXTHREADS_NEW
  438. bool "slightly newer version of linuxthreads"
  439. depends on ARCH_HAS_DEPRECATED_SYSCALLS
  440. depends on !TARGET_arc && \
  441. !TARGET_arm && \
  442. !TARGET_i386 && \
  443. !TARGET_metag && \
  444. !TARGET_mips && \
  445. !TARGET_powerpc && \
  446. !TARGET_sh && \
  447. !TARGET_sparc && \
  448. !TARGET_x86_64 && \
  449. !TARGET_xtensa
  450. help
  451. The new version has not been tested much, and lacks ports for arches
  452. which glibc does not support (like bfin/frv/etc...), but is based on
  453. the latest code from glibc, so it may be the only choice for the
  454. newer ports (like alpha/amd64/64bit arches and hppa).
  455. config UCLIBC_HAS_THREADS_NATIVE
  456. bool "Native POSIX Threading (NPTL)"
  457. select UCLIBC_HAS_TLS
  458. select UCLIBC_HAS_STDIO_FUTEXES
  459. select UCLIBC_HAS_REALTIME
  460. # i386 has no lowlevellock support (yet) as opposed to i486 onward
  461. depends on !CONFIG_386 && \
  462. !TARGET_alpha && \
  463. !TARGET_avr32 && \
  464. !TARGET_bfin && \
  465. !TARGET_c6x && \
  466. !TARGET_cris && \
  467. !TARGET_h8300 && \
  468. !TARGET_hppa && \
  469. !TARGET_ia64 && \
  470. !TARGET_m68k && \
  471. !TARGET_microblaze && \
  472. !TARGET_nios2 && \
  473. !TARGET_vax
  474. help
  475. If you want to compile uClibc with NPTL support, then answer Y.
  476. endchoice
  477. config UCLIBC_HAS_THREADS
  478. def_bool y if !HAS_NO_THREADS
  479. config UCLIBC_HAS_TLS
  480. bool "Thread-Local Storage"
  481. depends on UCLIBC_HAS_THREADS_NATIVE
  482. help
  483. If you want to enable TLS support then answer Y.
  484. This is fast an efficient way to store per-thread local data
  485. which is not on stack. It needs __thread support enabled in
  486. gcc.
  487. config PTHREADS_DEBUG_SUPPORT
  488. bool "Build pthreads debugging support"
  489. depends on UCLIBC_HAS_THREADS
  490. help
  491. Say Y here if you wish to be able to debug applications that use
  492. uClibc's pthreads library. By enabling this option, a library
  493. named libthread_db will be built. This library will be dlopen()'d
  494. by gdb and will allow gdb to debug the threads in your application.
  495. IMPORTANT NOTE! Because gdb must dlopen() the libthread_db library,
  496. you must compile gdb with uClibc in order for pthread debugging to
  497. work properly.
  498. If you are doing development and want to debug applications using
  499. uClibc's pthread library, answer Y. Otherwise, answer N.
  500. config UCLIBC_HAS_SYSLOG
  501. bool "Syslog support"
  502. default y
  503. depends on UCLIBC_HAS_NETWORK_SUPPORT
  504. select UCLIBC_HAS_SOCKET
  505. help
  506. Support sending messages to the system logger.
  507. This requires socket-support.
  508. config UCLIBC_HAS_LFS
  509. bool "Large File Support"
  510. default y
  511. help
  512. If you wish to build uClibc with support for accessing large files
  513. (i.e. files greater then 2 GiB) then answer Y. Do not enable this
  514. if you are using an older Linux kernel (2.0.x) that lacks large file
  515. support. Enabling this option will increase the size of uClibc.
  516. choice
  517. prompt "Malloc Implementation"
  518. default MALLOC if ! ARCH_USE_MMU
  519. default MALLOC_STANDARD if ARCH_USE_MMU
  520. config MALLOC
  521. bool "malloc"
  522. help
  523. "malloc" use mmap for all allocations and so works very well on
  524. MMU-less systems that do not support the brk() system call. It is
  525. pretty smart about reusing already allocated memory, and minimizing
  526. memory wastage.
  527. This is the default for uClinux MMU-less systems.
  528. config MALLOC_SIMPLE
  529. bool "malloc-simple"
  530. help
  531. "malloc-simple" is trivially simple and slow as molasses. It
  532. was written from scratch for uClibc, and is the simplest possible
  533. (and therefore smallest) malloc implementation.
  534. This uses only the mmap() system call to allocate and free memory,
  535. and does not use the brk() system call at all, making it a fine
  536. choice for MMU-less systems with very limited memory. It's 100%
  537. standards compliant, thread safe, very small, and releases freed
  538. memory back to the OS immediately rather than keeping it in the
  539. process's heap for reallocation. It is also VERY SLOW.
  540. config MALLOC_STANDARD
  541. bool "malloc-standard"
  542. depends on ARCH_USE_MMU
  543. help
  544. "malloc-standard" is derived from the public domain dlmalloc
  545. implementation by Doug Lea. It is quite fast, and is pretty smart
  546. about reusing already allocated memory, and minimizing memory
  547. wastage. This uses brk() for small allocations, while using mmap()
  548. for larger allocations. This is the default malloc implementation
  549. for uClibc.
  550. If unsure, answer "malloc-standard".
  551. endchoice
  552. config MALLOC_GLIBC_COMPAT
  553. bool "Malloc returns live pointer for malloc(0)"
  554. help
  555. The behavior of malloc(0) is listed as implementation-defined by
  556. SuSv3. Glibc returns a valid pointer to something, while uClibc
  557. normally returns NULL. I personally feel glibc's behavior is
  558. not particularly safe, and allows buggy applications to hide very
  559. serious problems.
  560. When this option is enabled, uClibc will act just like glibc, and
  561. return a live pointer when someone calls malloc(0). This pointer
  562. provides a malloc'ed area with a size of 1 byte. This feature is
  563. mostly useful when dealing with applications using autoconf's broken
  564. AC_FUNC_MALLOC macro (which redefines malloc as rpl_malloc if it
  565. does not detect glibc style returning-a-valid-pointer-for-malloc(0)
  566. behavior). Most people can safely answer N.
  567. config UCLIBC_HAS_OBSTACK
  568. bool "Obstack Support (gnu extension)"
  569. help
  570. When this option is enabled, uClibc will provide support for obstacks.
  571. An obstack is a structure in which memory can be dynamically allocated
  572. as a 'stack of objects'. Many programs need this GNU extention and
  573. you should say Y if you are using any. Otherwise, say N to save some
  574. space.
  575. config UCLIBC_DYNAMIC_ATEXIT
  576. bool "Dynamic atexit() Support"
  577. default y
  578. help
  579. When this option is enabled, uClibc will support an infinite number,
  580. of atexit() and on_exit() functions, limited only by your available
  581. memory. This can be important when uClibc is used with C++, since
  582. global destructors are implemented via atexit(), and it is quite
  583. possible to exceed the default number when this option is disabled.
  584. Enabling this option adds a few bytes, and more significantly makes
  585. atexit and on_exit depend on malloc, which can be bad when compiling
  586. static executables.
  587. Unless you use uClibc with C++, you should probably answer N.
  588. config COMPAT_ATEXIT
  589. bool "Old (visible) atexit Support"
  590. help
  591. Enable this option if you want to update from 0.9.28 to git/0.9.29,
  592. else you will be missing atexit() until you rebuild all apps.
  593. config UCLIBC_HAS_UTMPX
  594. bool "utmpx based support for tracking login/logouts to/from the system"
  595. help
  596. Answer y to enable support for accessing user accounting database.
  597. It can be used to track all login/logout to the system.
  598. config UCLIBC_HAS_UTMP
  599. bool "utmp support (XPG2 compat, SVr4 compat)"
  600. depends on UCLIBC_HAS_UTMPX
  601. help
  602. Answer y to enable legacy SVID support for accessing
  603. user accounting database:
  604. getutent(), getutid(), getutline(), pututline(),
  605. setutent(), endutent(), utmpname() in utmp.h
  606. It can be used to track all login/logout to the system.
  607. If unsure, answer N and use corresponding POSIX functions
  608. from utmpx.h
  609. config UCLIBC_SUSV2_LEGACY
  610. bool "Enable SuSv2 LEGACY functions"
  611. help
  612. Enable this option if you want to have SuSv2 LEGACY functions
  613. Currently applies to:
  614. valloc
  615. WARNING! ABI incompatibility.
  616. config UCLIBC_SUSV3_LEGACY
  617. bool "Enable SuSv3 LEGACY functions"
  618. #vfork,
  619. # h_errno
  620. # gethostbyaddr
  621. # gethostbyname
  622. help
  623. Enable this option if you want to have SuSv3 LEGACY functions
  624. in the library, else they are replaced by SuSv3 proposed macros.
  625. Currently applies to:
  626. bcmp, bcopy, bzero, index, rindex, ftime,
  627. bsd_signal, (ecvt), (fcvt), gcvt, (getcontext),
  628. (getwd), (makecontext),
  629. mktemp, (pthread_attr_getstackaddr), (pthread_attr_setstackaddr),
  630. scalb, (setcontext), (swapcontext), ualarm, usleep,
  631. wcswcs.
  632. WARNING! ABI incompatibility.
  633. config UCLIBC_HAS_CONTEXT_FUNCS
  634. bool "Use obsolescent context control functions"
  635. depends on UCLIBC_SUSV3_LEGACY && ARCH_HAS_UCONTEXT
  636. help
  637. Add into library the SuSv3 obsolescent functions used for context
  638. control. The setcontext family allows the implementation in C of
  639. advanced control flow patterns such as iterators, fibers, and
  640. coroutines. They may be viewed as an advanced version of
  641. setjmp/longjmp; whereas the latter allows only a single non-local jump
  642. up the stack, setcontext allows the creation of multiple cooperative
  643. threads of control, each with its own stack.
  644. These functions are: setcontext, getcontext, makecontext, swapcontext.
  645. config UCLIBC_SUSV3_LEGACY_MACROS
  646. bool "Enable SuSv3 LEGACY macros"
  647. help
  648. Enable this option if you want to have SuSv3 LEGACY macros.
  649. Currently applies to bcopy/bzero/bcmp/index/rindex et al.
  650. WARNING! ABI incompatibility.
  651. config UCLIBC_SUSV4_LEGACY
  652. bool "Enable SuSv4 LEGACY or obsolescent functions"
  653. help
  654. Enable this option if you want to have SuSv4 LEGACY functions
  655. and macros in the library.
  656. Currently applies to:
  657. - XSI functions:
  658. _longjmp, _setjmp, _tolower, _toupper, ftw, getitimer,
  659. gettimeofday, isascii, pthread_getconcurrency,
  660. pthread_setconcurrency, setitimer, setpgrp, sighold,
  661. sigignore, sigpause, sigrelse, sigset, siginterrupt,
  662. tempnam, toascii, ulimit.
  663. - Base functions:
  664. asctime, asctime_r, ctime, ctime_r, gets, rand_r,
  665. tmpnam, utime.
  666. WARNING! ABI incompatibility.
  667. config UCLIBC_STRICT_HEADERS
  668. bool "Hide structures and constants for unsupported features"
  669. help
  670. Hide structures and constants in headers that should not be used,
  671. because the respective feature is disabled.
  672. WARNING! enabling this option requires to patch many faulty apps,
  673. since they make (wrongly) use of these structures/constants,
  674. although the feature was disabled.
  675. config UCLIBC_HAS_STUBS
  676. bool "Provide stubs for unavailable functionality"
  677. help
  678. With this option uClibc provides non-functional stubs for
  679. functions which are impossible to implement on the target
  680. architecture. Otherwise, such functions are simply omitted.
  681. config UCLIBC_HAS_SHADOW
  682. bool "Shadow Password Support"
  683. default y
  684. help
  685. Answer N if you do not need shadow password support.
  686. Most people will answer Y.
  687. config UCLIBC_HAS_PROGRAM_INVOCATION_NAME
  688. bool "Support for program_invocation_name"
  689. help
  690. Support for the GNU-specific program_invocation_name and
  691. program_invocation_short_name strings. Some GNU packages
  692. (like tar and coreutils) utilize these for extra useful
  693. output, but in general are not required.
  694. At startup, these external strings are automatically set
  695. up based on the value of ARGV[0].
  696. If unsure, just answer N.
  697. config UCLIBC_HAS___PROGNAME
  698. bool "Support for __progname"
  699. default y
  700. help
  701. Some packages (like openssh) like to peek into internal libc
  702. symbols to make their output a bit more user friendly.
  703. At startup, __progname is automatically set up based on the
  704. value of ARGV[0].
  705. If unsure, just answer N.
  706. config UCLIBC_HAS_PTY
  707. bool "Support for pseudo-terminals"
  708. default y
  709. help
  710. This enables support for pseudo-terminals (see man 4 pts
  711. and man 7 pty).
  712. If unsure, just answer Y.
  713. config ASSUME_DEVPTS
  714. bool "Assume that /dev/pts is a devpts or devfs file system"
  715. default y
  716. depends on UCLIBC_HAS_PTY
  717. help
  718. Enable this if /dev/pts is on a devpts or devfs filesystem. Both
  719. these filesystems automatically manage permissions on the /dev/pts
  720. devices. You may need to mount your devpts or devfs filesystem on
  721. /dev/pts for this to work.
  722. Most people should answer Y.
  723. config UNIX98PTY_ONLY
  724. bool "Support only Unix 98 PTYs"
  725. default y
  726. depends on UCLIBC_HAS_PTY
  727. help
  728. If you want to support only Unix 98 PTYs enable this. Some older
  729. applications may need this disabled and will thus use legacy BSD
  730. style PTY handling which is more complex and also bigger than
  731. Unix 98 PTY handling.
  732. For most current programs, you can generally answer Y.
  733. if UNIX98PTY_ONLY
  734. config UCLIBC_HAS_GETPT
  735. bool "Support getpt() (glibc-compat)"
  736. depends on UCLIBC_HAS_PTY
  737. help
  738. Some packages may need getpt().
  739. All of those are non-standard and can be considered
  740. GNU/libc compatibility.
  741. Either use posix_openpt() or just open /dev/ptmx yourself.
  742. If unsure, just say N.
  743. endif
  744. if !UNIX98PTY_ONLY
  745. # Have to use __libc_ptyname{1,2}[] and related bloat
  746. config UCLIBC_HAS_GETPT
  747. def_bool y
  748. endif
  749. config UCLIBC_HAS_LIBUTIL
  750. bool "Provide libutil library and functions"
  751. depends on UCLIBC_HAS_PTY
  752. help
  753. Provide a libutil library.
  754. This non-standard conforming library provides the following
  755. utility functions:
  756. forkpty(): combines openpty(), fork(2), and login_tty() to
  757. create a new process operating in a pseudo-terminal.
  758. login(): write utmp and wtmp entries
  759. login_tty(): prepares for a login on the tty fd by creating a
  760. new session, making fd the controlling terminal for
  761. the calling process, setting fd to be the standard
  762. input, output, and error streams of the current
  763. process, and closing fd.
  764. logout(): write utmp and wtmp entries
  765. logwtmp(): constructs a utmp structure and calls updwtmp() to
  766. append the structure to the utmp file.
  767. openpty(): finds an available pseudo-terminal and returns
  768. file descriptors for the master and slave
  769. This library adds about 3k-4k to your system.
  770. config UCLIBC_HAS_TM_EXTENSIONS
  771. bool "Support 'struct tm' timezone extension fields"
  772. default y
  773. help
  774. Enabling this option adds fields to 'struct tm' in time.h for
  775. tracking the number of seconds east of UTC, and an abbreviation for
  776. the current timezone. These fields are not specified by the SuSv3
  777. standard, but they are commonly used in both GNU and BSD application
  778. code.
  779. To strictly follow the SuSv3 standard, leave this disabled.
  780. Most people will probably want to answer Y.
  781. config UCLIBC_HAS_TZ_CACHING
  782. bool "Enable caching of the last valid timezone 'TZ' string"
  783. default y
  784. help
  785. Answer Y to enable caching of the last valid 'TZ' string describing
  786. the timezone setting. This allows a quick string compare to avoid
  787. repeated parsing of unchanged 'TZ' strings when tzset() is called.
  788. Most people will answer Y.
  789. config UCLIBC_HAS_TZ_FILE
  790. bool "Enable '/etc/TZ' file support to set a default timezone (uClibc-specific)"
  791. default y
  792. help
  793. Answer Y to enable the setting of a default timezone for uClibc.
  794. Ordinarily, uClibc gets the timezone information exclusively from the
  795. 'TZ' environment variable. In particular, there is no support for
  796. the zoneinfo directory tree or the /etc/timezone file used by glibc.
  797. With this option enabled, uClibc will use the value stored in the
  798. file '/etc/TZ' (default path) to obtain timezone information if the
  799. 'TZ' environment variable is missing or has an invalid value. The
  800. file consists of a single line (newline required) of text describing
  801. the timezone in the format specified for the TZ environment variable.
  802. Doing 'echo CST6CDT > /etc/TZ' is enough to create a valid file.
  803. See
  804. http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html
  805. for details on valid settings of 'TZ'.
  806. Most people will answer Y.
  807. config UCLIBC_HAS_TZ_FILE_READ_MANY
  808. bool "Repeatedly read the '/etc/TZ' file"
  809. depends on UCLIBC_HAS_TZ_FILE
  810. default y
  811. help
  812. Answer Y to enable repeated reading of the '/etc/TZ' file even after
  813. a valid value has been read. This incurs the overhead of an
  814. open/read/close for each tzset() call (explicit or implied). However,
  815. setting this will allow applications to update their timezone
  816. information if the contents of the file change.
  817. Most people will answer Y.
  818. config UCLIBC_TZ_FILE_PATH
  819. string "Path to the 'TZ' file for setting the global timezone"
  820. depends on UCLIBC_HAS_TZ_FILE
  821. default "/etc/TZ"
  822. help
  823. This is the path to the 'TZ' file.
  824. Most people will use the default of '/etc/TZ'.
  825. config UCLIBC_FALLBACK_TO_ETC_LOCALTIME
  826. bool "Use /etc/localtime as a fallback"
  827. depends on UCLIBC_HAS_TZ_FILE
  828. default y
  829. help
  830. Answer Y to try to use /etc/localtime file.
  831. On glibc systems this file (if it is in TZif2 format)
  832. contains timezone string at the end.
  833. Most people will answer Y.
  834. endmenu
  835. menu "Advanced Library Settings"
  836. config UCLIBC_PWD_BUFFER_SIZE
  837. int "Buffer size for getpwnam() and friends"
  838. default 256
  839. range 12 1024
  840. help
  841. This sets the value of the buffer size for getpwnam() and friends.
  842. By default, this is 256. (For reference, glibc uses 1024).
  843. The value can be found using sysconf() with the _SC_GETPW_R_SIZE_MAX
  844. parameter.
  845. config UCLIBC_GRP_BUFFER_SIZE
  846. int "Buffer size for getgrnam() and friends"
  847. default 256
  848. range 12 1024
  849. help
  850. This sets the value of the buffer size for getgrnam() and friends.
  851. By default, this is 256. (For reference, glibc uses 1024).
  852. The value can be found using sysconf() with the _SC_GETGR_R_SIZE_MAX
  853. parameter.
  854. comment "Support various families of functions"
  855. config UCLIBC_LINUX_MODULE_26
  856. bool "Linux kernel module functions (2.6)"
  857. default y
  858. help
  859. delete_module, init_module
  860. are used in linux for loadable kernel modules.
  861. Say N if you do not use kernel modules.
  862. config UCLIBC_LINUX_MODULE_24
  863. bool "Linux kernel module functions (<2.6)"
  864. depends on !TARGET_bfin && !TARGET_c6x
  865. help
  866. create_module, query_module
  867. are used in linux (prior to 2.6) for loadable kernel modules.
  868. Say N if you do not use kernel modules, or you only support
  869. Linux 2.6+.
  870. config UCLIBC_LINUX_SPECIFIC
  871. bool "Linux specific functions"
  872. default y
  873. help
  874. accept4(), bdflush(),
  875. capget(), capset(), eventfd(), fallocate(),
  876. fstatfs(), getrandom(), inotify_*(), ioperm(), iopl(),
  877. madvise(), modify_ldt(), pipe2(), personality(),
  878. prctl()/arch_prctl(), pivot_root(), modify_ldt(),
  879. ppoll(), readahead(), reboot(), remap_file_pages(),
  880. sched_getaffinity(), sched_setaffinity(), sendfile(),
  881. setfsgid(), setfsuid(), setresgid(), setresuid(),
  882. splice(), vmsplice(), tee(), signalfd(), statfs(),
  883. swapoff(), swapon(), sync_file_range(), _sysctl(),
  884. sysinfo(), timerfd_*(), vhangup(), umount(), umount2()
  885. config UCLIBC_HAS_GNU_ERROR
  886. bool "Support GNU extensions for error-reporting"
  887. default y
  888. help
  889. Support for the GNU-specific error(), error_at_line(),
  890. void (* error_print_progname)(), error_message_count
  891. functions and variables. Some GNU packages
  892. utilize these for extra useful output, but in general
  893. are not required.
  894. If unsure, just answer N.
  895. config UCLIBC_BSD_SPECIFIC
  896. bool "BSD specific functions"
  897. default y
  898. help
  899. mincore(), getdomainname(), setdomainname()
  900. If unsure, say N.
  901. config UCLIBC_HAS_BSD_ERR
  902. bool "BSD err functions"
  903. default y
  904. help
  905. These functions are non-standard BSD extensions.
  906. err(), errx(), warn(), warnx(), verr(), verrx(), vwarn(), vwarnx()
  907. If unsure, say N.
  908. config UCLIBC_HAS_OBSOLETE_BSD_SIGNAL
  909. bool "BSD obsolete signal functions"
  910. help
  911. These functions are provided as a compatibility interface for
  912. programs that make use of the historical System V signal API.
  913. This API is obsolete:
  914. new applications should use the POSIX signal API (sigaction(2),
  915. sigprocmask(2), etc.).
  916. Affected functions:
  917. sigset(), sighold(), sigrelse(), sigignore()
  918. If unsure, say N.
  919. config UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL
  920. bool "SYSV obsolete signal functions"
  921. help
  922. Use of sysv_signal() should be avoided; use sigaction(2) instead.
  923. If unsure, say N.
  924. config UCLIBC_NTP_LEGACY
  925. bool "ntp_*() aliases"
  926. help
  927. Provide legacy aliases for ntp functions:
  928. ntp_adjtime(), ntp_gettime()
  929. It is safe to say N here.
  930. config UCLIBC_SV4_DEPRECATED
  931. bool "Enable SVr4 deprecated functions"
  932. help
  933. These functions are DEPRECATED in System V release 4.
  934. Say N unless you desparately need one of the functions below:
  935. ustat() [use statfs(2) in your code instead]
  936. config UCLIBC_HAS_REALTIME
  937. bool "Realtime-related family of SUSv functions"
  938. default y
  939. help
  940. These functions are part of the Timers option and need not
  941. be available on all implementations.
  942. Includes AIO, message-queue, scheduler, semaphore functions:
  943. aio.h
  944. mqueue.h
  945. sched.h
  946. semaphore.h
  947. aio_cancel()
  948. aio_error()
  949. aio_fsync()
  950. aio_read()
  951. lio_listio()
  952. aio_return()
  953. aio_suspend()
  954. aio_write()
  955. clock_getres(), clock_gettime(), clock_settime()
  956. fdatasync()
  957. mlockall(), munlockall()
  958. mlock(), munlock()
  959. mq_close()
  960. mq_getattr()
  961. mq_notify()
  962. mq_open()
  963. mq_receive()
  964. mq_send()
  965. mq_setattr()
  966. mq_unlink()
  967. nanosleep()
  968. sched_getparam()
  969. sched_get_priority_max(), sched_get_priority_min()
  970. sched_getscheduler()
  971. sched_rr_get_interval()
  972. sched_setparam()
  973. sched_setscheduler()
  974. sem_close()
  975. sem_destroy()
  976. sem_getvalue()
  977. sem_init()
  978. sem_open()
  979. sem_post()
  980. sem_trywait(), sem_wait()
  981. sem_unlink()
  982. sigqueue()
  983. sigtimedwait(), sigwaitinfo()
  984. timer_create()
  985. timer_delete()
  986. timer_getoverrun(), timer_gettime(), timer_settime()
  987. config UCLIBC_HAS_ADVANCED_REALTIME
  988. bool "Advanced realtime-related family of SUSv functions"
  989. default y
  990. depends on UCLIBC_HAS_REALTIME
  991. help
  992. These functions are part of the Timers option and need not
  993. be available on all implementations.
  994. clock_getcpuclockid()
  995. clock_nanosleep()
  996. mq_timedreceive()
  997. mq_timedsend()
  998. posix_fadvise()
  999. posix_fallocate()
  1000. posix_madvise()
  1001. posix_memalign()
  1002. posix_mem_offset()
  1003. posix_spawnattr_destroy(), posix_spawnattr_init()
  1004. posix_spawnattr_getflags(), posix_spawnattr_setflags()
  1005. posix_spawnattr_getpgroup(), posix_spawnattr_setpgroup()
  1006. posix_spawnattr_getschedparam(), posix_spawnattr_setschedparam()
  1007. posix_spawnattr_getschedpolicy(), posix_spawnattr_setschedpolicy()
  1008. posix_spawnattr_getsigdefault(), posix_spawnattr_setsigdefault()
  1009. posix_spawnattr_getsigmask(), posix_spawnattr_setsigmask()
  1010. posix_spawn_file_actions_addclose()
  1011. posix_spawn_file_actions_adddup2()
  1012. posix_spawn_file_actions_addopen()
  1013. posix_spawn_file_actions_destroy()
  1014. posix_spawn_file_actions_init()
  1015. posix_spawn()
  1016. posix_spawnp()
  1017. posix_typed_mem_get_info()
  1018. pthread_mutex_timedlock()
  1019. sem_timedwait()
  1020. #config UCLIBC_HAS_TERMIOS
  1021. # bool "termios functions"
  1022. # default y
  1023. # help
  1024. # Get and set terminal attributes, line control, get and set baud
  1025. # rate.
  1026. # termios(), tcgetattr(), tcsetattr(), tcsendbreak(), tcdrain(),
  1027. # tcflush(), tcflow(), cfmakeraw(), cfgetospeed(), cfgetispeed(),
  1028. # cfsetispeed(), cfsetospeed(), cfsetspeed()
  1029. #
  1030. # If unsure, say Y.
  1031. config UCLIBC_HAS_EPOLL
  1032. bool "epoll"
  1033. default y
  1034. help
  1035. epoll_create(), epoll_ctl(), epoll_wait() functions.
  1036. config UCLIBC_HAS_XATTR
  1037. bool "Extended Attributes"
  1038. default y
  1039. help
  1040. Extended Attributes support.
  1041. setxattr()
  1042. lsetxattr()
  1043. fsetxattr()
  1044. getxattr()
  1045. lgetxattr()
  1046. fgetxattr()
  1047. listxattr()
  1048. llistxattr()
  1049. flistxattr()
  1050. removexattr()
  1051. lremovexattr()
  1052. fremovexattr()
  1053. Say N unless you need support for extended attributes and the
  1054. filesystems do actually support them.
  1055. config UCLIBC_HAS_PROFILING
  1056. bool "Profiling support"
  1057. default y
  1058. help
  1059. gcc's -finstrument-functions needs these.
  1060. Most people can safely answer N.
  1061. config UCLIBC_HAS_CRYPT_IMPL
  1062. bool "libcrypt support"
  1063. default y
  1064. help
  1065. libcrypt contains crypt(), setkey() and encrypt()
  1066. config UCLIBC_HAS_SHA256_CRYPT_IMPL
  1067. bool "libcrypt SHA256 support"
  1068. depends on UCLIBC_HAS_CRYPT_IMPL
  1069. help
  1070. This adds support for SHA256 password hashing via the crypt() function.
  1071. Say N here if you do not need SHA256 crypt support.
  1072. config UCLIBC_HAS_SHA512_CRYPT_IMPL
  1073. bool "libcrypt SHA512 support"
  1074. depends on UCLIBC_HAS_CRYPT_IMPL
  1075. help
  1076. This adds support for SHA512 password hashing via the crypt() function.
  1077. Say N here if you do not need SHA512 crypt support.
  1078. config UCLIBC_HAS_CRYPT_STUB
  1079. bool "libcrypt stubs"
  1080. default y
  1081. depends on !UCLIBC_HAS_CRYPT_IMPL
  1082. help
  1083. Standards mandate that crypt(3) provides a stub if it is unavailable.
  1084. If you enable this option then stubs for
  1085. crypt(), setkey() and encrypt()
  1086. will be provided in a small libcrypt.
  1087. config UCLIBC_HAS_CRYPT
  1088. def_bool y
  1089. depends on UCLIBC_HAS_CRYPT_IMPL || UCLIBC_HAS_CRYPT_STUB
  1090. endmenu
  1091. menuconfig UCLIBC_HAS_NETWORK_SUPPORT
  1092. bool "Networking Support"
  1093. default y
  1094. help
  1095. Say N here if you do not need network support.
  1096. if UCLIBC_HAS_NETWORK_SUPPORT
  1097. config UCLIBC_HAS_SOCKET
  1098. bool "Socket support"
  1099. default y
  1100. help
  1101. If you want to include support for sockets then answer Y.
  1102. config UCLIBC_HAS_IPV4
  1103. bool "IP version 4 support"
  1104. default y
  1105. select UCLIBC_HAS_SOCKET
  1106. help
  1107. If you want to include support for the Internet Protocol
  1108. (IP version 4) then answer Y.
  1109. Most people will say Y.
  1110. config UCLIBC_HAS_IPV6
  1111. bool "IP version 6 support"
  1112. select UCLIBC_HAS_SOCKET
  1113. help
  1114. If you want to include support for the next version of the Internet
  1115. Protocol (IP version 6) then answer Y.
  1116. Most people should answer N.
  1117. config UCLIBC_HAS_RPC
  1118. bool "Remote Procedure Call (RPC) support"
  1119. # RPC+socket-ipvX doesn't currently work.
  1120. depends on UCLIBC_HAS_IPV4 || UCLIBC_HAS_IPV6
  1121. help
  1122. If you want to include RPC support, enable this. RPC is rarely used
  1123. for anything except for the NFS filesystem. Unless you plan to use
  1124. NFS, you can probably leave this set to N and save some space.
  1125. If you need to use NFS then you should answer Y.
  1126. config UCLIBC_HAS_FULL_RPC
  1127. bool "Full RPC support"
  1128. depends on UCLIBC_HAS_RPC
  1129. default y if !HAVE_SHARED
  1130. help
  1131. Normally we enable just enough RPC support for things like rshd and
  1132. nfs mounts to work. If you find you need the rest of the RPC stuff,
  1133. then enable this option. Most people can safely answer N.
  1134. config UCLIBC_HAS_REENTRANT_RPC
  1135. bool "Reentrant RPC support"
  1136. depends on UCLIBC_HAS_RPC
  1137. default y if !HAVE_SHARED
  1138. help
  1139. Most packages utilize the normal (non-reentrant) RPC functions, but
  1140. some (like exportfs from nfs-utils) need these reentrant versions.
  1141. Most people can safely answer N.
  1142. config UCLIBC_USE_NETLINK
  1143. bool "Use netlink to query interfaces"
  1144. depends on UCLIBC_HAS_SOCKET
  1145. help
  1146. In newer versions of Linux (2.4.17+), support was added for querying
  1147. network device information via netlink rather than the old style
  1148. ioctl's. Most of the time, the older ioctl style is sufficient (and
  1149. it is smaller than netlink), but if you find that not all of your
  1150. devices are being returned by the if_nameindex() function, you will
  1151. have to use the netlink implementation.
  1152. Most people can safely answer N.
  1153. config UCLIBC_SUPPORT_AI_ADDRCONFIG
  1154. bool "Support the AI_ADDRCONFIG flag"
  1155. depends on UCLIBC_USE_NETLINK
  1156. help
  1157. The implementation of AI_ADDRCONFIG is aligned with the glibc
  1158. implementation using netlink to query interfaces to find both
  1159. ipv4 and ipv6 support. This is only needed if an application uses
  1160. the AI_ADDRCONFIG flag.
  1161. Most people can safely answer N.
  1162. config UCLIBC_HAS_BSD_RES_CLOSE
  1163. bool "Support res_close() (bsd-compat)"
  1164. help
  1165. Answer Y if you desperately want to support BSD compatibility in
  1166. the network code.
  1167. Most people will say N.
  1168. config UCLIBC_HAS_COMPAT_RES_STATE
  1169. bool "Use compatible but bloated _res"
  1170. default y
  1171. help
  1172. Answer Y if you build network utilities and they muck with resolver
  1173. internals a lot (_res global structure). uclibc does not use most
  1174. of _res.XXX fields, and with this option OFF they won't even exist.
  1175. Which will make e.g. dig build fail.
  1176. Answering N saves around 400 bytes in bss.
  1177. config UCLIBC_HAS_EXTRA_COMPAT_RES_STATE
  1178. bool "Use extra compatible but extra bloated _res"
  1179. help
  1180. Answer Y if selecting UCLIBC_HAS_COMPAT_RES_STATE is not enough.
  1181. As far as I can say, this should never be needed.
  1182. config UCLIBC_HAS_RESOLVER_SUPPORT
  1183. bool "DNS resolver functions"
  1184. select UCLIBC_HAS_COMPAT_RES_STATE
  1185. depends on UCLIBC_HAS_IPV4 || UCLIBC_HAS_IPV6
  1186. help
  1187. Provide implementations for DNS resolver functions.
  1188. In particular, the following functions will be added to the
  1189. library:
  1190. ns_skiprr, ns_initparse, ns_parserr, ns_msg_getflag,
  1191. res_mkquery, res_init, res_ninit, res_close, res_nclose
  1192. res_query, res_search, res_querydomain,
  1193. dn_expand, dn_comp,
  1194. ns_name_uncompress, ns_name_ntop, ns_name_pton, ns_name_unpack,
  1195. ns_name_pack, ns_name_compress, ns_name_skip, dn_skipname,
  1196. ns_get16, ns_get32, ns_put16, ns_put32
  1197. config UCLIBC_HAS_LIBRESOLV_STUB
  1198. bool "Provide libresolv stub"
  1199. help
  1200. Provide a dummy resolv library.
  1201. config UCLIBC_HAS_LIBNSL_STUB
  1202. bool "Provide libnsl stub"
  1203. help
  1204. Provide a dummy nsl library.
  1205. endif
  1206. menu "String and Stdio Support"
  1207. config UCLIBC_HAS_STRING_GENERIC_OPT
  1208. bool "Use faster (but larger) generic string functions"
  1209. default y
  1210. help
  1211. Answer Y to use the (tweaked) glibc generic string functions.
  1212. In general, they are faster (but 3-5K larger) than the base
  1213. uClibc string functions which are optimized solely for size.
  1214. Many people will answer Y.
  1215. config UCLIBC_HAS_STRING_ARCH_OPT
  1216. bool "Use arch-specific assembly string functions (where available)"
  1217. default y
  1218. help
  1219. Answer Y to use any archtecture-specific assembly language string
  1220. functions available for this target plaform.
  1221. Note that assembly implementations are not available for all string
  1222. functions, so some generic (written in C) string functions may
  1223. still be used.
  1224. These are small and fast, the only reason _not_ to say Y here is
  1225. for debugging purposes.
  1226. config UCLIBC_HAS_STDIO_FUTEXES
  1227. bool "Use futexes for multithreaded I/O locking"
  1228. depends on UCLIBC_HAS_THREADS_NATIVE
  1229. help
  1230. If you want to compile uClibc to use futexes for low-level
  1231. I/O locking, answer Y. Otherwise, answer N.
  1232. config UCLIBC_HAS_CTYPE_TABLES
  1233. bool "Use Table Versions Of 'ctype.h' Functions."
  1234. default y
  1235. help
  1236. Answer Y to use table versions of the 'ctype.h' functions.
  1237. While the non-table versions are often smaller when building
  1238. statically linked apps, they work only in stub locale mode.
  1239. Most people will answer Y.
  1240. config UCLIBC_HAS_CTYPE_SIGNED
  1241. bool "Support Signed Characters In 'ctype.h' Functions."
  1242. depends on UCLIBC_HAS_CTYPE_TABLES
  1243. default y
  1244. help
  1245. Answer Y to enable support for passing signed char values to
  1246. the 'ctype.h' functions. ANSI/ISO C99 and SUSv3 specify that
  1247. these functions are only defined for unsigned char values and
  1248. EOF. However, glibc allows negative signed char values as well
  1249. in order to support 'broken old programs'.
  1250. Most people will answer Y.
  1251. choice
  1252. prompt "ctype argument checking"
  1253. depends on UCLIBC_HAS_CTYPE_TABLES
  1254. default UCLIBC_HAS_CTYPE_UNSAFE
  1255. help
  1256. Please select the invalid arg behavior you want for the 'ctype'
  1257. functions.
  1258. The 'ctype' functions are now implemented using table lookups, with
  1259. the arg being the index. This can result in incorrect memory accesses
  1260. or even segfaults for args outside of the allowed range.
  1261. NOTE: This only affects the 'ctype' _functions_. It does not affect
  1262. the macro implementations.
  1263. config UCLIBC_HAS_CTYPE_UNSAFE
  1264. bool "Do not check -- unsafe"
  1265. config UCLIBC_HAS_CTYPE_CHECKED
  1266. bool "Detect and handle appropriately"
  1267. config UCLIBC_HAS_CTYPE_ENFORCED
  1268. bool "Issue a diagnostic and abort()"
  1269. endchoice
  1270. config UCLIBC_HAS_WCHAR
  1271. bool "Wide Character Support"
  1272. help
  1273. Answer Y to enable wide character support. This will make uClibc
  1274. much larger. It is also currently required for locale support.
  1275. Most people will answer N.
  1276. config UCLIBC_HAS_LOCALE
  1277. bool "Locale Support"
  1278. select UCLIBC_HAS_WCHAR
  1279. select UCLIBC_HAS_CTYPE_TABLES
  1280. help
  1281. uClibc now has full ANSI/ISO C99 locale support (except for
  1282. wcsftime() and collating items in regex). Be aware that enabling
  1283. this option will make uClibc much larger.
  1284. Enabling UCLIBC_HAS_LOCALE with the default set of supported locales
  1285. (169 UTF-8 locales, and 144 locales for other codesets) will enlarge
  1286. uClibc by around 300k. You can reduce this size by building your own
  1287. custom set of locate data (see extra/locale/LOCALES for details).
  1288. uClibc's locale support is still under development. For example,
  1289. codesets using shift states are not currently supported. Support is
  1290. planned in the next iteration of locale support.
  1291. Answer Y to enable locale support. Most people will answer N.
  1292. choice
  1293. prompt "Locale data"
  1294. depends on UCLIBC_HAS_LOCALE
  1295. default UCLIBC_BUILD_ALL_LOCALE
  1296. config UCLIBC_BUILD_ALL_LOCALE
  1297. bool "All locales"
  1298. depends on UCLIBC_HAS_LOCALE
  1299. help
  1300. This builds all the locales that are available on your
  1301. host-box.
  1302. config UCLIBC_BUILD_MINIMAL_LOCALE
  1303. bool "Only selected locales"
  1304. depends on UCLIBC_HAS_LOCALE
  1305. help
  1306. If you do not need all locales that are available on your
  1307. host-box, then set this to 'Y'.
  1308. config UCLIBC_PREGENERATED_LOCALE_DATA
  1309. bool "Use Pre-generated Locale Data"
  1310. depends on UCLIBC_HAS_LOCALE && !TARGET_metag
  1311. help
  1312. Use pre-built locale data.
  1313. Note that these pregenerated locales are sensitive to your
  1314. target architecture (endianess, bitcount).
  1315. Saying N here is highly recommended.
  1316. endchoice
  1317. config UCLIBC_BUILD_MINIMAL_LOCALES
  1318. string "locales to use"
  1319. depends on UCLIBC_BUILD_MINIMAL_LOCALE
  1320. default "en_US"
  1321. help
  1322. Space separated list of locales to use.
  1323. E.g.:
  1324. en_US en_GB de_AT
  1325. default:
  1326. en_US
  1327. config UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA
  1328. bool "Automagically Download the Pre-generated Locale Data (if necessary)"
  1329. depends on UCLIBC_PREGENERATED_LOCALE_DATA
  1330. help
  1331. If you would like the build process to use 'wget' to automatically
  1332. download the pregenerated locale data, enable this option. Otherwise
  1333. you will need to obtain the locale data yourself from:
  1334. http://www.uclibc.org/downloads/uClibc-locale-*.tgz
  1335. and place the uClibc-locale-*.tgz tarball in the extra/locale/
  1336. directory.
  1337. Note that the use of pregenerated locale data is discouraged.
  1338. config UCLIBC_HAS_XLOCALE
  1339. bool "Extended Locale Support (experimental/incomplete)"
  1340. depends on UCLIBC_HAS_LOCALE
  1341. help
  1342. Answer Y to enable extended locale support similar to that provided
  1343. by glibc. This is primarily intended to support libstd++
  1344. functionality.
  1345. However, it also allows thread-specific locale selection via
  1346. uselocale().
  1347. Most people will answer N.
  1348. config UCLIBC_HAS_HEXADECIMAL_FLOATS
  1349. bool "Support hexadecimal float notation"
  1350. depends on UCLIBC_HAS_CTYPE_TABLES
  1351. depends on UCLIBC_HAS_FLOATS
  1352. help
  1353. Answer Y to enable support for hexadecimal float notation in the
  1354. (wchar and) char string to floating point conversion functions, as
  1355. well as support for the %a and %A conversion specifiers in the
  1356. *printf() and *scanf() functions.
  1357. Most people will answer N.
  1358. config UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  1359. bool "Support glibc's \"'\" flag for allowing locale-specific digit grouping"
  1360. depends on UCLIBC_HAS_LOCALE
  1361. depends on UCLIBC_HAS_FLOATS
  1362. help
  1363. Answer Y to enable support for glibc's \"'\" flag for allowing
  1364. locale-specific digit grouping in base 10 integer conversions and
  1365. appropriate floating point conversions in the *printf() and *scanf()
  1366. functions.
  1367. Most people will answer N.
  1368. config UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING
  1369. bool "Do not require digit grouping when the \"'\" flag is specified"
  1370. depends on UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  1371. default y
  1372. help
  1373. Answer Y to make digit grouping optional when the \"'\" flag is
  1374. specified.
  1375. This is the standard glibc behavior. If the initial string of digits
  1376. exceeds the maximum group number, the input will be treated as a
  1377. normal non-grouped number.
  1378. Most people will answer N.
  1379. config UCLIBC_HAS_GLIBC_CUSTOM_PRINTF
  1380. bool "Support glibc's register_printf_function() (glibc-compat)"
  1381. depends on !USE_OLD_VFPRINTF
  1382. help
  1383. Answer Y to support glibc's register_printf_function() to allow an
  1384. application to add its own printf conversion specifiers.
  1385. parse_printf_format() is also enabled.
  1386. NOTE: Limits the number or registered specifiers to 10.
  1387. NOTE: Requires new conversion specifiers to be ASCII
  1388. characters (0-0x7f). This is to avoid problems with processing
  1389. format strings in locales with different multibyte conversions.
  1390. Most people will answer N.
  1391. config USE_OLD_VFPRINTF
  1392. bool "Use the old vfprintf implementation"
  1393. depends on !UCLIBC_HAS_WCHAR
  1394. help
  1395. Set to true to use the old vfprintf instead of the new. This is
  1396. roughly C89 compliant with some extensions, and is much smaller.
  1397. However, it does not support wide chars, positional args, or glibc
  1398. custom printf specifiers.
  1399. Most people will answer N.
  1400. config UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS
  1401. int "Maximum number of positional args. Either 0 or >= 9."
  1402. depends on !USE_OLD_VFPRINTF
  1403. default 9
  1404. help
  1405. Set the maximum number of positional args supported by the
  1406. printf/scanf functions. The Single Unix Specification Version 3
  1407. requires a minimum value of 9. Setting this to a value lower than
  1408. 9 will disable positional arg support and cause the NL_ARGMAX macro
  1409. in limits.h to be #undef'd.
  1410. WARNING! The workspace to support positional args is currently
  1411. allocated on the stack. You probably don't want to set
  1412. this to too high a value.
  1413. Most people will answer 9.
  1414. choice
  1415. prompt "Stdio buffer size"
  1416. default UCLIBC_HAS_STDIO_BUFSIZ_4096
  1417. help
  1418. Please select a value for BUFSIZ. This will be used by the
  1419. stdio subsystem as the default buffer size for a file, and
  1420. affects fopen(), setvbuf(), etc.
  1421. NOTE: Setting this to 'none' will disable buffering completely.
  1422. However, BUFSIZ will still be defined in stdio.h as 256 because
  1423. many applications use this value.
  1424. config UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1425. bool "none (WARNING - BUFSIZ will be 256 in stdio.h)"
  1426. depends on !UCLIBC_HAS_WCHAR
  1427. config UCLIBC_HAS_STDIO_BUFSIZ_256
  1428. bool "256 (minimum ANSI/ISO C99 value)"
  1429. config UCLIBC_HAS_STDIO_BUFSIZ_512
  1430. bool "512"
  1431. config UCLIBC_HAS_STDIO_BUFSIZ_1024
  1432. bool "1024"
  1433. config UCLIBC_HAS_STDIO_BUFSIZ_2048
  1434. bool "2048"
  1435. config UCLIBC_HAS_STDIO_BUFSIZ_4096
  1436. bool "4096"
  1437. config UCLIBC_HAS_STDIO_BUFSIZ_8192
  1438. bool "8192"
  1439. # If you add more choices, you will need to update uClibc_stdio.h.
  1440. endchoice
  1441. choice
  1442. prompt "Stdio builtin buffer size (uClibc-specific)"
  1443. depends on !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1444. default UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  1445. help
  1446. When a FILE is created with fopen(), an attempt is made to allocate
  1447. a BUFSIZ buffer for it. If the allocation fails, fopen() will still
  1448. succeed but the FILE will be unbuffered.
  1449. This option adds a small amount of space to each FILE to act as an
  1450. emergency buffer in the event of a buffer allocation failure.
  1451. Most people will answer None.
  1452. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  1453. bool "None"
  1454. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4
  1455. bool "4"
  1456. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8
  1457. bool "8"
  1458. # If you add more choices, you will need to update uClibc_stdio.h.
  1459. endchoice
  1460. config UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT
  1461. bool "Attempt to shutdown stdio subsystem when abort() is called."
  1462. help
  1463. ANSI/ISO C99 requires abort() to be asyn-signal-safe. So there was
  1464. a behavioral change made in SUSv3. Previously, abort() was required
  1465. to have the affect of fclose() on all open streams. The wording has
  1466. been changed to "may" from "shall".
  1467. Most people will answer N.
  1468. config UCLIBC_HAS_STDIO_GETC_MACRO
  1469. bool "Provide a macro version of getc()"
  1470. depends on !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1471. default y
  1472. help
  1473. Provide a macro version of getc().
  1474. Most people will answer Y.
  1475. config UCLIBC_HAS_STDIO_PUTC_MACRO
  1476. bool "Provide a macro version of putc()"
  1477. depends on !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1478. default y
  1479. help
  1480. Provide a macro version of putc().
  1481. Most people will answer Y.
  1482. config UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION
  1483. bool "Support auto-r/w transition"
  1484. default y
  1485. help
  1486. Answer Y to enable the stdio subsystem to automaticly transition
  1487. between reading and writing. This relaxes the ANSI/ISO C99
  1488. requirement:
  1489. When a file is opened with update mode ('+' as the second or third
  1490. character in the list of mode argument values), both input and output
  1491. may be performed on the associated stream. However, output shall not
  1492. be directly followed by input without an intervening call to the
  1493. fflush function or to a file positioning function (fseek, fsetpos,
  1494. or rewind), and input shall not be directly followed by output without
  1495. an intervening call to a file positioning function, unless the input
  1496. operation encounters end­of­file.
  1497. Most people will answer Y.
  1498. config UCLIBC_HAS_FOPEN_LARGEFILE_MODE
  1499. bool "Support an fopen() 'F' flag for large file mode (uClibc-specific)"
  1500. depends on UCLIBC_HAS_LFS
  1501. help
  1502. Answer Y to enable a uClibc-specific extension to allow passing an
  1503. additional 'F' flag in the mode string for fopen() to specify that
  1504. the file should be open()ed with the O_LARGEFILE flag set.
  1505. Most people will answer N.
  1506. config UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE
  1507. bool "Support an fopen() 'x' flag for exclusive mode (glibc-compat)"
  1508. help
  1509. Answer Y to support a glibc extension to allow passing
  1510. additional 'x' flag in the mode string for fopen() to specify that
  1511. the file should be open()ed with the O_EXCL flag set.
  1512. Most people will answer N.
  1513. config UCLIBC_HAS_FOPEN_CLOSEEXEC_MODE
  1514. bool "Support an fopen() 'e' flag for close-on-exec mode (glibc-compat)"
  1515. help
  1516. Answer Y to support a glibc extension to allow passing
  1517. additional 'e' flag in the mode string for fopen() to specify that
  1518. the file should be open()ed with the O_CLOEXEC flag set.
  1519. Most people will answer N.
  1520. config UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
  1521. bool "Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat)"
  1522. help
  1523. Answer Y to support the glibc 'custom stream' extension functions
  1524. fmemopen(), open_memstream(), and fopencookie().
  1525. NOTE: There are some minor differences regarding seeking behavior.
  1526. Most people will answer N.
  1527. config UCLIBC_HAS_PRINTF_M_SPEC
  1528. bool "Support the '%m' specifier in printf format strings (glibc-compat)"
  1529. help
  1530. Answer Y to support a glibc extension to interpret '%m' in printf
  1531. format strings as an instruction to output the error message string
  1532. (as generated by strerror) corresponding to the current value of
  1533. 'errno'.
  1534. Most people will answer N.
  1535. config UCLIBC_HAS_ERRNO_MESSAGES
  1536. bool "Include the errno message text in the library"
  1537. default y
  1538. help
  1539. Answer Y if you want to include the errno message text in the
  1540. library. This adds about 3K to the library, but enables strerror()
  1541. to generate text other than 'Unknown error <number>'.
  1542. Most people will answer Y.
  1543. config UCLIBC_HAS_SYS_ERRLIST
  1544. bool "Support sys_errlist[] (obsolete-compat)"
  1545. depends on UCLIBC_HAS_ERRNO_MESSAGES
  1546. help
  1547. Answer Y if you want to support the obsolete sys_errlist[].
  1548. This adds about 0.5k to the library, except for the mips
  1549. arch where it adds over 4K.
  1550. WARNING! In the future, support for sys_errlist[] may be unavailable
  1551. in at least some configurations. In fact, it may be removed
  1552. altogether.
  1553. Most people will answer N.
  1554. Application writers: use the strerror(3) function.
  1555. config UCLIBC_HAS_SIGNUM_MESSAGES
  1556. bool "Include the signum message text in the library"
  1557. default y
  1558. help
  1559. Answer Y if you want to include the signum message text in the
  1560. library. This adds about 0.5K to the library, but enables strsignal()
  1561. to generate text other than 'Unknown signal <number>'.
  1562. Most people will answer Y.
  1563. config UCLIBC_HAS_SYS_SIGLIST
  1564. bool "Support sys_siglist[] (bsd-compat)"
  1565. depends on UCLIBC_HAS_SIGNUM_MESSAGES
  1566. help
  1567. Answer Y if you want to support sys_siglist[].
  1568. WARNING! In the future, support for sys_siglist[] may be unavailable
  1569. in at least some configurations. In fact, it may be removed
  1570. altogether.
  1571. Most people will answer N.
  1572. config UCLIBC_HAS_GETTEXT_AWARENESS
  1573. bool "Include gettext awareness"
  1574. depends on UCLIBC_HAS_LOCALE && UCLIBC_MJN3_ONLY
  1575. help
  1576. NOTE!!! Not yet integrated with strerror and strsignal. NOTE!!!
  1577. Answer Y if you want to include weak stub gettext support and
  1578. make the *strerror*() and strsignal() functions gettext-aware.
  1579. Currently, to get functional gettext functionality you will need
  1580. to use gnu gettext.
  1581. Most people will answer N.
  1582. config UCLIBC_HAS_GNU_GETOPT
  1583. bool "Support gnu getopt"
  1584. default y
  1585. help
  1586. Answer Y if you want to include full gnu getopt() instead of a
  1587. (much smaller) SUSv3 compatible getopt().
  1588. Note that getopt_long, getopt_long_only as well as getsubopt
  1589. are implemented on top of this choice.
  1590. Most people will answer Y.
  1591. config UCLIBC_HAS_GETOPT_LONG
  1592. bool "Support getopt_long/getopt_long_only (glibc-compat)"
  1593. default y
  1594. help
  1595. Answer Y if you want to include getopt_long[_only()] used by many
  1596. apps.
  1597. Most people will answer Y.
  1598. config UCLIBC_HAS_GNU_GETSUBOPT
  1599. bool "Support getsubopt"
  1600. default y
  1601. help
  1602. Answer Y if you want to include getsubopt().
  1603. Most people will answer Y.
  1604. endmenu
  1605. menu "Big and Tall"
  1606. config UCLIBC_HAS_REGEX
  1607. bool "Regular Expression Support"
  1608. default y
  1609. help
  1610. POSIX regular expression code is really big -- 53k all by itself.
  1611. If you don't use regular expressions, turn this off and save space.
  1612. Of course, if you only statically link, leave this on, since it will
  1613. only be included in your apps if you use regular expressions.
  1614. config UCLIBC_HAS_REGEX_OLD
  1615. bool "Use the older (stable) regular expression code"
  1616. depends on UCLIBC_HAS_REGEX
  1617. default y
  1618. help
  1619. There are two versions of regex. The older (stable) version has
  1620. been in uClibc for quite a long time but hasn't seen too many
  1621. updates. It also has some known issues when dealing with uncommon
  1622. corner cases and multibyte/unicode strings. However, it is quite
  1623. a bit smaller than the newer version.
  1624. If the older version has worked for you and you don't need unicode
  1625. support, then stick with the old version (and say Y here).
  1626. Otherwise, you should use the new version (and say N here).
  1627. config UCLIBC_HAS_FNMATCH
  1628. bool "fnmatch Support"
  1629. default y
  1630. help
  1631. POSIX fnmatch.
  1632. config UCLIBC_HAS_FNMATCH_OLD
  1633. bool "Use the older (stable) fnmatch code"
  1634. depends on UCLIBC_HAS_FNMATCH
  1635. default y
  1636. help
  1637. There are two versions of fnmatch. The older (stable) version has
  1638. been in uClibc for quite a long time but hasn't seen too many
  1639. updates. It also has some known issues when dealing with uncommon
  1640. corner cases and multibyte/unicode strings. However, it is quite
  1641. a bit smaller than the newer version.
  1642. If the older version has worked for you and you don't need unicode
  1643. support, then stick with the old version (and say Y here).
  1644. Otherwise, you should use the new version (and say N here).
  1645. config UCLIBC_HAS_WORDEXP
  1646. bool "Support the wordexp() interface"
  1647. depends on UCLIBC_HAS_GLOB
  1648. help
  1649. The SuSv3 wordexp() interface performs word expansions per the Shell
  1650. and Utilities volume of IEEE Std 1003.1-2001, Section 2.6. It is
  1651. intended for use by applications that want to implement all of the
  1652. standard Bourne shell expansions on input data.
  1653. This interface is rarely used, and very large. Unless you have a
  1654. pressing need for wordexp(), you should probably answer N.
  1655. config UCLIBC_HAS_NFTW
  1656. bool "Support the nftw() interface"
  1657. help
  1658. The SuSv3 nftw() interface is used to recursively descend
  1659. directory paths while repeatedly calling a function.
  1660. This interface is rarely used, and adds around 4.5k. Unless you have
  1661. a pressing need for nftw(), you should probably answer N.
  1662. config UCLIBC_HAS_FTW
  1663. bool "Support the ftw() interface (SUSv4-obsolete)"
  1664. depends on UCLIBC_SUSV4_LEGACY
  1665. help
  1666. The SuSv3 ftw() interface is used to recursively descend
  1667. directory paths while repeatedly calling a function.
  1668. This interface is rarely used, and adds around 4.5k. Unless you have
  1669. a pressing need for ftw(), you should probably answer N.
  1670. config UCLIBC_HAS_FTS
  1671. bool "Support the fts() interface (bsd-compat)"
  1672. help
  1673. The fts functions are provided for traversing UNIX file hierarchies.
  1674. This interface is currently used by the elfutils and adds
  1675. around 7.5k.
  1676. You should port your application to use the POSIX nftw()
  1677. interface.
  1678. Unless you need to build/use elfutils, you should prolly answer N.
  1679. config UCLIBC_HAS_GLOB
  1680. bool "Support the glob() interface"
  1681. depends on UCLIBC_HAS_FNMATCH
  1682. default y
  1683. help
  1684. The glob interface is somewhat large (weighing in at about 2,5k). It
  1685. is used fairly often, but is an option since people wanting to go for
  1686. absolute minimum size may wish to omit it.
  1687. Most people will answer Y.
  1688. config UCLIBC_HAS_GNU_GLOB
  1689. bool "Support gnu glob() interface"
  1690. depends on UCLIBC_HAS_GLOB
  1691. help
  1692. The gnu glob interface is somewhat larger (weighing in at about 4,2k)
  1693. than it's SuSv3 counterpart (and is out of date). It is an old copy
  1694. from glibc and does not support all the GNU specific options.
  1695. Answer Y if you want to include full gnu glob() instead of the smaller
  1696. SUSv3 compatible glob().
  1697. Most people will answer N.
  1698. endmenu
  1699. menu "Library Installation Options"
  1700. config RUNTIME_PREFIX
  1701. string "uClibc runtime library directory"
  1702. default "/usr/$(TARGET_ARCH)-linux-uclibc/"
  1703. help
  1704. RUNTIME_PREFIX is the directory into which the uClibc runtime
  1705. libraries will be installed. The result will look something
  1706. like the following:
  1707. $(RUNTIME_PREFIX)/
  1708. lib/ <contains all runtime libraries>
  1709. usr/bin/ldd <the ldd utility program>
  1710. sbin/ldconfig <the ldconfig utility program>
  1711. This value is used by the 'make install' Makefile target. Since this
  1712. directory is compiled into the shared library loader, you will need to
  1713. recompile uClibc if you change this value...
  1714. For a typical target system this should be set to "/", such that
  1715. 'make install' will install /lib/libuClibc-<VERSION>.so
  1716. config DEVEL_PREFIX
  1717. string "uClibc development environment directory"
  1718. default "/usr/$(TARGET_ARCH)-linux-uclibc/usr/"
  1719. help
  1720. DEVEL_PREFIX is the directory into which the uClibc development
  1721. environment will be installed. The result will look something
  1722. like the following:
  1723. $(DEVEL_PREFIX)/
  1724. lib/ <contains static libs>
  1725. include/ <Where all the header files go>
  1726. This value is used by the 'make install' Makefile target when
  1727. installing a uClibc development environment.
  1728. For a typical target system this should be set to "/usr", such that
  1729. 'make install' will install /usr/include/<header files>.
  1730. config MULTILIB_DIR
  1731. string "library path component"
  1732. default "lib"
  1733. help
  1734. Path component where libraries reside.
  1735. For a typical target system this should be set to "lib", such that
  1736. 'make install' will install libraries to "/lib" and "/usr/lib"
  1737. respectively
  1738. DEVEL_PREFIX/MULTILIB_DIR
  1739. RUNTIME_PREFIX/MULTILIB_DIR
  1740. Other settings may include "lib32" or "lib64".
  1741. config HARDWIRED_ABSPATH
  1742. bool "Hardwire absolute paths into linker scripts"
  1743. default y
  1744. help
  1745. This prepends absolute paths to the libraries mentioned in linker
  1746. scripts such as libc.so.
  1747. This is a build time optimization. It has no impact on dynamic
  1748. linking at runtime, which doesn't use linker scripts.
  1749. You must disable this to use uClibc with old non-sysroot toolchains,
  1750. such as the prebuilt binary cross compilers at:
  1751. http://uclibc.org/downloads/binaries
  1752. The amount of time saved by this optimization is actually too small to
  1753. measure. The linker just had to search the library path to find the
  1754. linker script, so the dentries are cache hot if it has to search the
  1755. same path again. But it's what glibc does, so we do it too.
  1756. endmenu
  1757. menu "Security options"
  1758. config UCLIBC_BUILD_PIE
  1759. bool "Build utilities as ET_DYN/PIE executables"
  1760. depends on HAVE_SHARED
  1761. depends on TARGET_arm || TARGET_frv || TARGET_i386 || TARGET_mips || TARGET_powerpc
  1762. select FORCE_SHAREABLE_TEXT_SEGMENTS
  1763. help
  1764. If you answer Y here, ldd and iconv are built as ET_DYN/PIE
  1765. executables.
  1766. It requires gcc-3.4 and binutils-2.15 (for arm 2.16) or later.
  1767. More about ET_DYN/PIE binaries on <http://pax.grsecurity.net/> .
  1768. WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so
  1769. all libraries have to be built with -fPIC or -fpic, and all
  1770. assembler functions must be written as position independent
  1771. code (PIC).
  1772. config UCLIBC_HAS_ARC4RANDOM
  1773. bool "Include the arc4random() function"
  1774. help
  1775. Answer Y to support the OpenBSD-like arc4random() function. This
  1776. function picks a random number between 0 and N, and will always return
  1777. something even if the random driver is dead. If urandom fails then
  1778. gettimeofday(2) will be used as the random seed. This function is
  1779. designed to be more dependable than invoking /dev/urandom directly.
  1780. OpenSSL and OpenNTPD currently support this function.
  1781. Most people will answer N.
  1782. config ARC4RANDOM_USES_NODEV
  1783. bool "Do not use /dev/urandom with arc4random()"
  1784. depends on UCLIBC_HAS_ARC4RANDOM
  1785. help
  1786. Answer Y to use gettimeofday(2) and getpid(2) exclusively for
  1787. arc4random(). This is not a bad idea for a diskless system, but
  1788. it uses a lot of syscalls to stir each array element.
  1789. Most people will answer N.
  1790. config HAVE_NO_SSP
  1791. bool
  1792. config UCLIBC_HAS_SSP
  1793. bool "Support for GCC stack smashing protector"
  1794. depends on !HAVE_NO_SSP
  1795. help
  1796. Add code to support GCC's -fstack-protector[-all] option to uClibc.
  1797. This requires GCC 4.1 or newer. GCC does not have to provide libssp,
  1798. the needed functions are added to ldso/libc instead.
  1799. GCC's stack protector is a reimplementation of IBM's propolice.
  1800. See http://www.trl.ibm.com/projects/security/ssp/ and
  1801. http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
  1802. for details.
  1803. Note that NOEXECSTACK on a kernel with address space randomization
  1804. is generally sufficient to prevent most buffer overflow exploits
  1805. without increasing code size. This option essentially adds debugging
  1806. code to catch them.
  1807. Most people will answer N.
  1808. config UCLIBC_HAS_SSP_COMPAT
  1809. bool "Support for gcc-3.x propolice smashing stack protector"
  1810. depends on UCLIBC_HAS_SSP
  1811. help
  1812. Add gcc-3.x propolice smashing stack protector to the library.
  1813. This requires a patched version of GCC, supporting the
  1814. -fstack-protector[-all] options, with the __guard and
  1815. __stack_smash_handler functions removed from libgcc.
  1816. These functions are added to ldso/libc instead.
  1817. More information at:
  1818. <http://www.research.ibm.com/trl/projects/security/ssp/>
  1819. Most people will answer N.
  1820. config SSP_QUICK_CANARY
  1821. bool "Use simple guard values without accessing /dev/urandom"
  1822. depends on UCLIBC_HAS_SSP
  1823. help
  1824. Use gettimeofday(2) to define the __guard without accessing
  1825. /dev/urandom.
  1826. WARNING: This makes smashing stack protector vulnerable to timing
  1827. attacks.
  1828. Most people will answer N.
  1829. choice
  1830. prompt "Propolice protection blocking signal"
  1831. depends on UCLIBC_HAS_SSP
  1832. depends on DODEBUG
  1833. default PROPOLICE_BLOCK_SEGV
  1834. help
  1835. "abort" use SIGABRT to block offending programs.
  1836. This is the default implementation.
  1837. "segfault" use SIGSEGV to block offending programs.
  1838. Use this for debugging.
  1839. If unsure, answer "abort".
  1840. config PROPOLICE_BLOCK_ABRT
  1841. bool "abort"
  1842. config PROPOLICE_BLOCK_SEGV
  1843. bool "segfault"
  1844. endchoice
  1845. config UCLIBC_BUILD_SSP
  1846. bool "Build uClibc with -fstack-protector"
  1847. depends on UCLIBC_HAS_SSP
  1848. help
  1849. Build all uClibc libraries and executables with -fstack-protector,
  1850. adding extra stack overflow checking to most uClibc functions.
  1851. config UCLIBC_BUILD_RELRO
  1852. bool "Build uClibc with linker option -z RELRO"
  1853. depends on HAVE_SHARED
  1854. default y
  1855. help
  1856. Build all libraries and executables with "ld -z relro".
  1857. This tells the linker to mark chunks of an executable or shared
  1858. library read-only after applying dynamic relocations. (This comes
  1859. up when a global const variable is initialized to the address of a
  1860. function or the value of another global variable.)
  1861. This is a fairly obscure option the ld man page doesn't even bother
  1862. to document properly. It's a security paranoia issue that's more
  1863. likely to consume memory (by allocating an extra page) rather than
  1864. save it.
  1865. This is explained in more depth at
  1866. http://www.airs.com/blog/archives/189
  1867. Nobody is likely to care whether you say Y or N here.
  1868. config UCLIBC_BUILD_NOW
  1869. bool "Build uClibc with linker option -z NOW"
  1870. depends on HAVE_SHARED
  1871. help
  1872. Build all libraries and executables with "ld -z now".
  1873. This tells the linker to resolve all symbols when the library is
  1874. first loaded, rather than when each function is first called. This
  1875. increases start-up latency by a few microseconds and may do
  1876. unnecessary work (resolving symbols that are never used), but the
  1877. realtime people like it for making microbenchmark timings slightly
  1878. more predictable and in some cases it can be slightly faster due to
  1879. CPU cache behavior (not having to fault the linker back in to do
  1880. lazy symbol resolution).
  1881. Most people can't tell the difference between selecting Y or N here.
  1882. config UCLIBC_BUILD_NOEXECSTACK
  1883. bool "Build uClibc with noexecstack marking"
  1884. default y
  1885. help
  1886. Mark all assembler files as noexecstack, which will mark uClibc
  1887. as not requiring an executable stack. (This doesn't prevent other
  1888. files you link against from claiming to need an executable stack, it
  1889. just won't cause uClibc to request it unnecessarily.)
  1890. This is a security thing to make buffer overflows harder to exploit.
  1891. By itself, it's kind of useless, as Linus Torvalds explained in 1998:
  1892. http://old.lwn.net/1998/0806/a/linus-noexec.html
  1893. It only actually provides any security when combined with address
  1894. space randomization, explained here: http://lwn.net/Articles/121845/
  1895. Address space randomization is on by default in current linux
  1896. kernels (although it can be disabled using the option
  1897. CONFIG_COMPAT_BRK).
  1898. You should probably say Y.
  1899. endmenu
  1900. menu "Development/debugging options"
  1901. config CROSS_COMPILER_PREFIX
  1902. string "Cross-compiling toolchain prefix"
  1903. default ""
  1904. help
  1905. The prefix used to execute your cross-compiling toolchain. For
  1906. example, if you run 'arm-linux-uclibc-gcc' to compile something,
  1907. then enter 'arm-linux-uclibc-' here.
  1908. config UCLIBC_EXTRA_CFLAGS
  1909. string "Extra CFLAGS"
  1910. default ""
  1911. help
  1912. Add any additional CFLAGS to be used to build uClibc.
  1913. config DODEBUG
  1914. bool "Enable debugging symbols"
  1915. select EXTRA_WARNINGS
  1916. help
  1917. Say Y here if you wish to compile uClibc with debugging symbols.
  1918. This will allow you to use a debugger to examine uClibc internals
  1919. while applications are running. This increases the size of the
  1920. library considerably and should only be used when doing development.
  1921. If you are doing development and want to debug uClibc, answer Y.
  1922. Otherwise, answer N.
  1923. config DODEBUG_PT
  1924. bool "Build pthread with debugging output"
  1925. depends on UCLIBC_HAS_THREADS && LINUXTHREADS_OLD
  1926. help
  1927. Enable debug output in libpthread. This is only useful when doing
  1928. development in libpthread itself.
  1929. Otherwise, answer N.
  1930. config DOSTRIP
  1931. bool "Strip libraries and executables"
  1932. default y
  1933. depends on !DODEBUG
  1934. help
  1935. Say Y here if you do wish to strip all uClibc libraries and
  1936. executables. No stripping increases the size of the binaries
  1937. considerably, but makes it possible to debug uClibc libraries.
  1938. Most people will answer Y.
  1939. config DOASSERTS
  1940. bool "Build with run-time assertion testing"
  1941. help
  1942. Say Y here to include runtime assertion tests.
  1943. This enables runtime assertion testing in some code, which can
  1944. increase the size of the library and incur runtime overhead.
  1945. If you say N, then this testing will be disabled.
  1946. config SUPPORT_LD_DEBUG
  1947. bool "Build the shared library loader with debugging support"
  1948. depends on HAVE_SHARED
  1949. help
  1950. Answer Y here to enable all the extra code needed to debug the uClibc
  1951. native shared library loader. The level of debugging noise that is
  1952. generated depends on the LD_DEBUG environment variable... Just set
  1953. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  1954. debug your application. Diagnostic messages will then be printed to
  1955. the stderr.
  1956. For now these debugging tokens are available:
  1957. detail provide more information for some options
  1958. move display copy processing
  1959. symbols display symbol table processing
  1960. reloc display relocation processing; detail shows the
  1961. relocation patch
  1962. nofixups never fixes up jump relocations
  1963. bindings displays the resolve processing (function calls);
  1964. detail shows the relocation patch
  1965. all Enable everything!
  1966. The additional environment variable:
  1967. LD_DEBUG_OUTPUT=file
  1968. redirects the diagnostics to an output file created using
  1969. the specified name and the process id as a suffix.
  1970. An excellent start is simply:
  1971. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  1972. or to log everything to a file named 'logfile', try this
  1973. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  1974. If you are doing development and want to debug uClibc's shared library
  1975. loader, answer Y. Mere mortals answer N.
  1976. config SUPPORT_LD_DEBUG_EARLY
  1977. bool "Build the shared library loader with early debugging support"
  1978. depends on HAVE_SHARED
  1979. help
  1980. Answer Y here to if you find the uClibc shared library loader is
  1981. crashing or otherwise not working very early on. This is typical
  1982. only when starting a new port when you haven't figured out how to
  1983. properly get the values for argc, argv, environ, etc. This method
  1984. allows a degree of visibility into the very early shared library
  1985. loader initialization process. If you are doing development and want
  1986. to debug the uClibc shared library loader early initialization,
  1987. answer Y. Mere mortals answer N.
  1988. config UCLIBC_MALLOC_DEBUGGING
  1989. bool "Build malloc with debugging support"
  1990. depends on MALLOC || MALLOC_STANDARD
  1991. select DOASSERTS
  1992. help
  1993. Answer Y here to compile extra debugging support code into malloc.
  1994. Malloc debugging output may then be enabled at runtime using the
  1995. MALLOC_DEBUG environment variable.
  1996. The value of MALLOC_DEBUG should be an integer, which is interpreted
  1997. as a bitmask with the following bits:
  1998. 1 - do extra consistency checking
  1999. 2 - output messages for malloc/free calls and OS
  2000. allocation calls
  2001. 4 - output messages for the `MMB' layer
  2002. 8 - output messages for internal malloc heap manipulation
  2003. calls
  2004. Because this increases the size of malloc appreciably (due to strings
  2005. etc), you should say N unless you need to debug a malloc problem.
  2006. config UCLIBC_HAS_BACKTRACE
  2007. bool "Add support for application self-debugging"
  2008. depends on HAVE_SHARED
  2009. help
  2010. Answer Y here to compile support for application self-debugging, by adding
  2011. a new shared object "libubacktrace.so" that provides the following new
  2012. functions:
  2013. backtrace, backtrace_symbols, backtrace_symbols_fd
  2014. The backtrace functionality is currently supported on SH platform, and it
  2015. based on dwarf2 informations to properly work, so any application that
  2016. want to use backtrace needs to be built with -fexceptions flag.
  2017. The symbol names may be unavailable without the use of special linker
  2018. options. For systems using the GNU linker, it is necessary to use the
  2019. -rdynamic linker option too. Note that names of "static" functions are not
  2020. exposed, and won't be available in the backtrace.
  2021. config WARNINGS
  2022. string "Compiler Warnings"
  2023. default "-Wall"
  2024. help
  2025. Set this to the set of compiler warnings you wish to see while compiling.
  2026. config EXTRA_WARNINGS
  2027. bool "Enable extra annoying warnings"
  2028. help
  2029. If you wish to build with extra warnings enabled, say Y here.
  2030. config DOMULTI
  2031. bool "Compile all sources at once into an object"
  2032. help
  2033. Set this to compile all sources at once into an object (IMA).
  2034. This mode of compilation uses alot of memory but may produce
  2035. smaller binaries.
  2036. Note that you need a very recent GCC for this to work, like
  2037. gcc >= 4.3 plus eventually some patches.
  2038. If unsure, keep the default of N.
  2039. endmenu