Config.in 77 KB

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