Config.in 62 KB

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