Config.in 74 KB

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