Config.in 62 KB

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