Config.in 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314
  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 UCLIBC_HAS_ARC4RANDOM
  1635. bool "Include the arc4random() function"
  1636. help
  1637. Answer Y to support the OpenBSD-like arc4random() function. This
  1638. function picks a random number between 0 and N, and will always return
  1639. something even if the random driver is dead. If urandom fails then
  1640. gettimeofday(2) will be used as the random seed. This function is
  1641. designed to be more dependable than invoking /dev/urandom directly.
  1642. OpenSSL and OpenNTPD currently support this function.
  1643. Most people will answer N.
  1644. config ARC4RANDOM_USES_NODEV
  1645. bool "Do not use /dev/urandom with arc4random()"
  1646. depends on UCLIBC_HAS_ARC4RANDOM
  1647. help
  1648. Answer Y to use gettimeofday(2) and getpid(2) exclusively for
  1649. arc4random(). This is not a bad idea for a diskless system, but
  1650. it uses a lot of syscalls to stir each array element.
  1651. Most people will answer N.
  1652. config HAVE_NO_SSP
  1653. bool
  1654. config UCLIBC_HAS_SSP
  1655. bool "Support for GCC stack smashing protector"
  1656. depends on !HAVE_NO_SSP
  1657. help
  1658. Add code to support GCC's -fstack-protector[-all] option to uClibc.
  1659. This requires GCC 4.1 or newer. GCC does not have to provide libssp,
  1660. the needed functions are added to ldso/libc instead.
  1661. GCC's stack protector is a reimplementation of IBM's propolice.
  1662. See http://www.trl.ibm.com/projects/security/ssp/ and
  1663. http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
  1664. for details.
  1665. Note that NOEXECSTACK on a kernel with address space randomization
  1666. is generally sufficient to prevent most buffer overflow exploits
  1667. without increasing code size. This option essentially adds debugging
  1668. code to catch them.
  1669. Most people will answer N.
  1670. config SSP_QUICK_CANARY
  1671. bool "Use simple guard values without accessing /dev/urandom"
  1672. depends on UCLIBC_HAS_SSP
  1673. help
  1674. Use gettimeofday(2) to define the __guard without accessing
  1675. /dev/urandom.
  1676. WARNING: This makes smashing stack protector vulnerable to timing
  1677. attacks.
  1678. Most people will answer N.
  1679. choice
  1680. prompt "Propolice protection blocking signal"
  1681. depends on UCLIBC_HAS_SSP
  1682. depends on DODEBUG
  1683. default PROPOLICE_BLOCK_SEGV
  1684. help
  1685. "abort" use SIGABRT to block offending programs.
  1686. This is the default implementation.
  1687. "segfault" use SIGSEGV to block offending programs.
  1688. Use this for debugging.
  1689. If unsure, answer "abort".
  1690. config PROPOLICE_BLOCK_ABRT
  1691. bool "abort"
  1692. config PROPOLICE_BLOCK_SEGV
  1693. bool "segfault"
  1694. endchoice
  1695. config UCLIBC_BUILD_SSP
  1696. bool "Build uClibc with -fstack-protector"
  1697. depends on UCLIBC_HAS_SSP
  1698. help
  1699. Build all uClibc libraries and executables with -fstack-protector,
  1700. adding extra stack overflow checking to most uClibc functions.
  1701. config UCLIBC_BUILD_RELRO
  1702. bool "Build uClibc with linker option -z RELRO"
  1703. depends on HAVE_SHARED
  1704. default y
  1705. help
  1706. Build all libraries and executables with "ld -z relro".
  1707. This tells the linker to mark chunks of an executable or shared
  1708. library read-only after applying dynamic relocations. (This comes
  1709. up when a global const variable is initialized to the address of a
  1710. function or the value of another global variable.)
  1711. This is a fairly obscure option the ld man page doesn't even bother
  1712. to document properly. It's a security paranoia issue that's more
  1713. likely to consume memory (by allocating an extra page) rather than
  1714. save it.
  1715. This is explained in more depth at
  1716. http://www.airs.com/blog/archives/189
  1717. Nobody is likely to care whether you say Y or N here.
  1718. config UCLIBC_BUILD_NOW
  1719. bool "Build uClibc with linker option -z NOW"
  1720. depends on HAVE_SHARED
  1721. help
  1722. Build all libraries and executables with "ld -z now".
  1723. This tells the linker to resolve all symbols when the library is
  1724. first loaded, rather than when each function is first called. This
  1725. increases start-up latency by a few microseconds and may do
  1726. unnecessary work (resolving symbols that are never used), but the
  1727. realtime people like it for making microbenchmark timings slightly
  1728. more predictable and in some cases it can be slightly faster due to
  1729. CPU cache behavior (not having to fault the linker back in to do
  1730. lazy symbol resolution).
  1731. Most people can't tell the difference between selecting Y or N here.
  1732. config UCLIBC_BUILD_NOEXECSTACK
  1733. bool "Build uClibc with noexecstack marking"
  1734. default y
  1735. help
  1736. Mark all assembler files as noexecstack, which will mark uClibc
  1737. as not requiring an executable stack. (This doesn't prevent other
  1738. files you link against from claiming to need an executable stack, it
  1739. just won't cause uClibc to request it unnecessarily.)
  1740. This is a security thing to make buffer overflows harder to exploit.
  1741. By itself, it's kind of useless, as Linus Torvalds explained in 1998:
  1742. http://old.lwn.net/1998/0806/a/linus-noexec.html
  1743. It only actually provides any security when combined with address
  1744. space randomization, explained here: http://lwn.net/Articles/121845/
  1745. Address space randomization is on by default in current linux
  1746. kernels (although it can be disabled using the option
  1747. CONFIG_COMPAT_BRK).
  1748. You should probably say Y.
  1749. endmenu
  1750. menu "Development/debugging options"
  1751. config CROSS_COMPILER_PREFIX
  1752. string "Cross-compiling toolchain prefix"
  1753. default ""
  1754. help
  1755. The prefix used to execute your cross-compiling toolchain. For
  1756. example, if you run 'arm-linux-uclibc-gcc' to compile something,
  1757. then enter 'arm-linux-uclibc-' here.
  1758. config UCLIBC_EXTRA_CFLAGS
  1759. string "Extra CFLAGS"
  1760. default ""
  1761. help
  1762. Add any additional CFLAGS to be used to build uClibc.
  1763. config DODEBUG
  1764. bool "Enable debugging symbols"
  1765. select EXTRA_WARNINGS
  1766. help
  1767. Say Y here if you wish to compile uClibc with debugging symbols.
  1768. This will allow you to use a debugger to examine uClibc internals
  1769. while applications are running. This increases the size of the
  1770. library considerably and should only be used when doing development.
  1771. If you are doing development and want to debug uClibc, answer Y.
  1772. Otherwise, answer N.
  1773. config DODEBUG_PT
  1774. bool "Build pthread with debugging output"
  1775. depends on UCLIBC_HAS_THREADS && UCLIBC_HAS_LINUXTHREADS
  1776. help
  1777. Enable debug output in libpthread. This is only useful when doing
  1778. development in libpthread itself.
  1779. Otherwise, answer N.
  1780. config DOSTRIP
  1781. bool "Strip libraries and executables"
  1782. default y
  1783. depends on !DODEBUG
  1784. help
  1785. Say Y here if you do wish to strip all uClibc libraries and
  1786. executables. No stripping increases the size of the binaries
  1787. considerably, but makes it possible to debug uClibc libraries.
  1788. Most people will answer Y.
  1789. config DOASSERTS
  1790. bool "Build with run-time assertion testing"
  1791. help
  1792. Say Y here to include runtime assertion tests.
  1793. This enables runtime assertion testing in some code, which can
  1794. increase the size of the library and incur runtime overhead.
  1795. If you say N, then this testing will be disabled.
  1796. config SUPPORT_LD_DEBUG
  1797. bool "Build the shared library loader with debugging support"
  1798. depends on HAVE_SHARED
  1799. help
  1800. Answer Y here to enable all the extra code needed to debug the uClibc
  1801. native shared library loader. The level of debugging noise that is
  1802. generated depends on the LD_DEBUG environment variable... Just set
  1803. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  1804. debug your application. Diagnostic messages will then be printed to
  1805. the stderr.
  1806. For now these debugging tokens are available:
  1807. detail provide more information for some options
  1808. move display copy processing
  1809. symbols display symbol table processing
  1810. reloc display relocation processing; detail shows the
  1811. relocation patch
  1812. nofixups never fixes up jump relocations
  1813. bindings displays the resolve processing (function calls);
  1814. detail shows the relocation patch
  1815. all Enable everything!
  1816. The additional environment variable:
  1817. LD_DEBUG_OUTPUT=file
  1818. redirects the diagnostics to an output file created using
  1819. the specified name and the process id as a suffix.
  1820. An excellent start is simply:
  1821. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  1822. or to log everything to a file named 'logfile', try this
  1823. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  1824. If you are doing development and want to debug uClibc's shared library
  1825. loader, answer Y. Mere mortals answer N.
  1826. config SUPPORT_LD_DEBUG_EARLY
  1827. bool "Build the shared library loader with early debugging support"
  1828. depends on HAVE_SHARED
  1829. help
  1830. Answer Y here to if you find the uClibc shared library loader is
  1831. crashing or otherwise not working very early on. This is typical
  1832. only when starting a new port when you haven't figured out how to
  1833. properly get the values for argc, argv, environ, etc. This method
  1834. allows a degree of visibility into the very early shared library
  1835. loader initialization process. If you are doing development and want
  1836. to debug the uClibc shared library loader early initialization,
  1837. answer Y. Mere mortals answer N.
  1838. config UCLIBC_MALLOC_DEBUGGING
  1839. bool "Build malloc with debugging support"
  1840. depends on MALLOC || MALLOC_STANDARD
  1841. select DOASSERTS
  1842. help
  1843. Answer Y here to compile extra debugging support code into malloc.
  1844. Malloc debugging output may then be enabled at runtime using the
  1845. MALLOC_DEBUG environment variable.
  1846. The value of MALLOC_DEBUG should be an integer, which is interpreted
  1847. as a bitmask with the following bits:
  1848. 1 - do extra consistency checking
  1849. 2 - output messages for malloc/free calls and OS
  1850. allocation calls
  1851. 4 - output messages for the `MMB' layer
  1852. 8 - output messages for internal malloc heap manipulation
  1853. calls
  1854. Because this increases the size of malloc appreciably (due to strings
  1855. etc), you should say N unless you need to debug a malloc problem.
  1856. config UCLIBC_HAS_BACKTRACE
  1857. bool "Add support for application self-debugging"
  1858. depends on HAVE_SHARED
  1859. help
  1860. Answer Y here to compile support for application self-debugging that
  1861. provides the following new functions:
  1862. backtrace, backtrace_symbols, backtrace_symbols_fd
  1863. The backtrace functionality is currently supported on some platforms, and it
  1864. based on dwarf2 informations to properly work, so any application that
  1865. want to use backtrace needs to be built with -fexceptions flag.
  1866. The symbol names may be unavailable without the use of special linker
  1867. options. For systems using the GNU linker, it is necessary to use the
  1868. -rdynamic linker option too. Note that names of "static" functions are not
  1869. exposed, and won't be available in the backtrace.
  1870. config WARNINGS
  1871. string "Compiler Warnings"
  1872. default "-Wall"
  1873. help
  1874. Set this to the set of compiler warnings you wish to see while compiling.
  1875. config EXTRA_WARNINGS
  1876. bool "Enable extra annoying warnings"
  1877. help
  1878. If you wish to build with extra warnings enabled, say Y here.
  1879. endmenu