Config.in 66 KB

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