Config.in 73 KB

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