Config.in 70 KB

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