Config.in 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624
  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 ""
  142. source "extra/Configs/Config.in.arch"
  143. endmenu
  144. menu "General Library Settings"
  145. config HAVE_NO_PIC
  146. bool
  147. default n
  148. config DOPIC
  149. bool "Generate only Position Independent Code (PIC)"
  150. default y
  151. depends !HAVE_NO_PIC
  152. help
  153. If you wish to build all of uClibc as PIC objects, then answer Y here.
  154. If you are unsure, then you should answer N.
  155. config HAVE_NO_SHARED
  156. bool
  157. default n
  158. config ARCH_HAS_NO_LDSO
  159. bool
  160. select HAVE_NO_SHARED
  161. default n
  162. config HAVE_SHARED
  163. bool "Enable support for shared libraries"
  164. depends on !HAVE_NO_SHARED
  165. default y
  166. help
  167. If you wish to build uClibc with support for shared libraries then
  168. answer Y here. If you only want to build uClibc as a static library,
  169. then answer N.
  170. config FORCE_SHAREABLE_TEXT_SEGMENTS
  171. bool "Only load shared libraries which can share their text segment"
  172. depends on HAVE_SHARED
  173. default n
  174. help
  175. If you answer Y here, the uClibc native shared library loader will
  176. only load shared libraries, which do not need to modify any non-writable
  177. segments. These libraries haven't set the DT_TEXTREL tag in the dynamic
  178. section (==> objdump). All your libraries must be compiled with
  179. -fPIC or -fpic, and all assembler function must be written as position
  180. independent code (PIC).
  181. Enabling this option will make uClibc's shared library loader a
  182. little bit smaller and guarantee that no memory will be wasted by badly
  183. coded shared libraries.
  184. config LDSO_LDD_SUPPORT
  185. bool "Native 'ldd' support"
  186. depends on HAVE_SHARED
  187. default y
  188. help
  189. Enable this to enable all the code needed to support traditional ldd,
  190. which executes the shared library loader to resolve all dependencies
  191. and then provide a list of shared libraries that are required for an
  192. application to function. Disabling this option will makes uClibc's
  193. shared library loader a little bit smaller. Most people will answer Y.
  194. config LDSO_CACHE_SUPPORT
  195. bool "Enable library loader cache (ld.so.conf)"
  196. depends on HAVE_SHARED
  197. default y
  198. help
  199. Enable this to make use of /etc/ld.so.conf, the shared library loader
  200. cache configuration file to support for non-standard library paths.
  201. After updating this file, it is necessary to run 'ldconfig' to update
  202. the /etc/ld.so.cache shared library loader cache file.
  203. config LDSO_PRELOAD_FILE_SUPPORT
  204. bool "Enable library loader preload file (ld.so.preload)"
  205. depends on HAVE_SHARED
  206. default n
  207. help
  208. Enable this to make use of /etc/ld.so.preload. This file contains a
  209. whitespace separated list of shared libraries to be loaded before
  210. the program.
  211. config LDSO_BASE_FILENAME
  212. string "Shared library loader naming prefix"
  213. depends on HAVE_SHARED && (LDSO_CACHE_SUPPORT || LDSO_PRELOAD_FILE_SUPPORT)
  214. default "ld.so"
  215. help
  216. If you wish to support both uClibc and glibc on the same system, it
  217. is necessary to set this to something other than "ld.so" to avoid
  218. conflicts with glibc, which also uses "ld.so". This prevents both
  219. libraries from using the same /etc/ld.so.* files. If you wish to
  220. support both uClibc and glibc on the same system then you should set
  221. this to "ld-uClibc.so".
  222. Most people will leave this set to the default of "ld.so".
  223. WARNING: Changing the default prefix could cause problems with
  224. binutils' ld !
  225. config UCLIBC_STATIC_LDCONFIG
  226. bool "Link ldconfig statically"
  227. depends on HAVE_SHARED
  228. default y
  229. help
  230. Enable this option to statically link the ldconfig binary.
  231. Making ldconfig static can be beneficial if you have a library
  232. problem and need to use ldconfig to recover. Sometimes, it is
  233. preferable to instead keep the size of the system down, in which
  234. case you should disable this option.
  235. config LDSO_RUNPATH
  236. bool "Enable ELF RUNPATH tag support"
  237. depends on HAVE_SHARED
  238. default y
  239. help
  240. ELF's may have dynamic RPATH/RUNPATH tags. These tags list paths
  241. which extend the library search paths. They are really only useful
  242. if a package installs libraries in non standard locations and
  243. ld.so.conf support is disabled.
  244. Usage of RUNPATH tags is not too common, so disabling this feature
  245. should be safe for most people.
  246. config UCLIBC_CTOR_DTOR
  247. bool "Support global constructors and destructors"
  248. default y
  249. help
  250. If you wish to build uClibc with support for global constructor
  251. (ctor) and global destructor (dtor) support, then answer Y here.
  252. When ctor/dtor support is enabled, binaries linked with uClibc must
  253. also be linked with crtbegin.o and crtend.o which are provided by gcc
  254. (the "*startfile:" and "*endfile:" settings in your gcc specs file
  255. may need to be adjusted to include these files). This support will
  256. also add a small amount of additional size to each binary compiled vs
  257. uClibc. If you will be using uClibc with C++, or if you need the gcc
  258. __attribute__((constructor)) and __attribute__((destructor)) to work,
  259. then you definitely want to answer Y here. If you don't need ctors
  260. or dtors and want your binaries to be as small as possible, then
  261. answer N.
  262. config LDSO_GNU_HASH_SUPPORT
  263. bool "Enable GNU hash style support"
  264. depends on HAVE_SHARED
  265. default n
  266. help
  267. Newest binutils support a new hash style named GNU-hash. The dynamic
  268. linker will use the new GNU-hash section (.gnu.hash) for symbol lookup
  269. if present into the ELF binaries, otherwise it will use the old SysV
  270. hash style (.hash). This ensures that it is completely backward compatible.
  271. Further, being the hash table implementation self-contained into each
  272. executable and shared libraries, objects with mixed hash style can
  273. peacefully coexist in the same process.
  274. If you want to use this new feature, answer Y
  275. config HAS_NO_THREADS
  276. bool
  277. default n
  278. config UCLIBC_HAS_THREADS
  279. bool "POSIX Threading Support"
  280. depends on !HAS_NO_THREADS
  281. default y
  282. help
  283. If you want to compile uClibc with pthread support, then answer Y.
  284. This will increase the size of uClibc by adding a bunch of locking
  285. to critical data structures, and adding extra code to ensure that
  286. functions are properly reentrant.
  287. If your applications require pthreads, answer Y.
  288. config PTHREADS_DEBUG_SUPPORT
  289. bool "Build pthreads debugging support"
  290. default n
  291. depends on UCLIBC_HAS_THREADS
  292. help
  293. Say Y here if you wish to be able to debug applications that use
  294. uClibc's pthreads library. By enabling this option, a library
  295. named libthread_db will be built. This library will be dlopen()'d
  296. by gdb and will allow gdb to debug the threads in your application.
  297. IMPORTANT NOTE! Because gdb must dlopen() the libthread_db library,
  298. you must compile gdb with uClibc in order for pthread debugging to
  299. work properly.
  300. If you are doing development and want to debug applications using
  301. uClibc's pthread library, answer Y. Otherwise, answer N.
  302. config LINUXTHREADS_OLD
  303. bool "Use the older (stable) version of linuxthreads"
  304. default y
  305. depends on UCLIBC_HAS_THREADS
  306. help
  307. There are two versions of linuxthreads. The older (stable) version
  308. has been in uClibc for quite a long time but hasn't seen too many
  309. updates other than bugfixes.
  310. The new version has not been tested much, and lacks ports for arches
  311. which glibc does not support (like bfin/frv/etc...), but is based on
  312. the latest code from glibc, so it may be the only choice for the
  313. newer ports (like alpha/amd64/64bit arches and hppa).
  314. config UCLIBC_HAS_LFS
  315. bool "Large File Support"
  316. default y
  317. help
  318. If you wish to build uClibc with support for accessing large files
  319. (i.e. files greater then 2 GiB) then answer Y. Do not enable this
  320. if you are using an older Linux kernel (2.0.x) that lacks large file
  321. support. Enabling this option will increase the size of uClibc.
  322. choice
  323. prompt "Malloc Implementation"
  324. default MALLOC if ! ARCH_USE_MMU
  325. default MALLOC_STANDARD if ARCH_USE_MMU
  326. help
  327. "malloc" use mmap for all allocations and so works very well on MMU-less
  328. systems that do not support the brk() system call. It is pretty smart
  329. about reusing already allocated memory, and minimizing memory wastage.
  330. This is the default for uClinux MMU-less systems.
  331. "malloc-simple" was written from scratch for uClibc, and is the
  332. simplest possible (and therefore smallest) malloc implementation.
  333. This uses only the mmap() system call to allocation memory, and does
  334. not use the brk() system call at all, making it a fine choice for
  335. MMU-less systems with very limited memory. It is rather dumb, and
  336. certainly isn't the fastest. But it is 100% standards compliant,
  337. thread safe, and very small.
  338. "malloc-standard" is derived from the public domain dlmalloc
  339. implementation by Doug Lea. It is quite fast, and is pretty smart
  340. about reusing already allocated memory, and minimizing memory
  341. wastage. This uses brk() for small allocations, while using mmap()
  342. for larger allocations. This is the default malloc implementation
  343. for uClibc.
  344. If unsure, answer "malloc-standard".
  345. config MALLOC
  346. bool "malloc"
  347. config MALLOC_SIMPLE
  348. bool "malloc-simple"
  349. config MALLOC_STANDARD
  350. bool "malloc-standard"
  351. depends on ARCH_USE_MMU
  352. endchoice
  353. config MALLOC_GLIBC_COMPAT
  354. bool "Malloc returns live pointer for malloc(0)"
  355. default n
  356. help
  357. The behavior of malloc(0) is listed as implementation-defined by
  358. SuSv3. Glibc returns a valid pointer to something, while uClibc
  359. normally returns NULL. I personally feel glibc's behavior is
  360. not particularly safe, and allows buggy applications to hide very
  361. serious problems.
  362. When this option is enabled, uClibc will act just like glibc, and
  363. return a live pointer when someone calls malloc(0). This pointer
  364. provides a malloc'ed area with a size of 1 byte. This feature is
  365. mostly useful when dealing with applications using autoconf's broken
  366. AC_FUNC_MALLOC macro (which redefines malloc as rpl_malloc if it
  367. does not detect glibc style returning-a-valid-pointer-for-malloc(0)
  368. behavior). Most people can safely answer N.
  369. config UCLIBC_DYNAMIC_ATEXIT
  370. bool "Dynamic atexit() Support"
  371. default y
  372. help
  373. When this option is enabled, uClibc will support an infinite number,
  374. of atexit() and on_exit() functions, limited only by your available
  375. memory. This can be important when uClibc is used with C++, since
  376. global destructors are implemented via atexit(), and it is quite
  377. possible to exceed the default number when this option is disabled.
  378. Enabling this option adds a few bytes, and more significantly makes
  379. atexit and on_exit depend on malloc, which can be bad when compiling
  380. static executables.
  381. Unless you use uClibc with C++, you should probably answer N.
  382. config COMPAT_ATEXIT
  383. bool "Old (visible) atexit Support"
  384. default n
  385. help
  386. Enable this option if you want to update from 0.9.28 to svn/0.9.29, else
  387. you will be missing atexit() until you rebuild all apps.
  388. config UCLIBC_SUSV3_LEGACY
  389. bool "Enable SuSv3 LEGACY functions"
  390. default n
  391. help
  392. Enable this option if you want to have SuSv3 LEGACY functions
  393. in the library, else they are replaced by SuSv3 proposed macros.
  394. Currently applies to bcopy/bzero/bcmp/index/rindex.
  395. WARNING! ABI incompatibility.
  396. config UCLIBC_SUSV3_LEGACY_MACROS
  397. bool "Enable SuSv3 LEGACY macros"
  398. default n
  399. help
  400. Enable this option if you want to have SuSv3 LEGACY macros.
  401. Currently applies to bcopy/bzero/bcmp/index/rindex et al.
  402. WARNING! ABI incompatibility.
  403. config UCLIBC_HAS_SHADOW
  404. bool "Shadow Password Support"
  405. default y
  406. help
  407. Answer N if you do not need shadow password support.
  408. Most people will answer Y.
  409. config UCLIBC_HAS_PROGRAM_INVOCATION_NAME
  410. bool "Support for program_invocation_name"
  411. default n
  412. help
  413. Support for the GNU-specific program_invocation_name and
  414. program_invocation_short_name strings. Some GNU packages
  415. (like tar and coreutils) utilize these for extra useful
  416. output, but in general are not required.
  417. At startup, these external strings are automatically set
  418. up based on the value of ARGV[0].
  419. If unsure, just answer N.
  420. config UCLIBC_HAS___PROGNAME
  421. bool "Support for __progname"
  422. default y
  423. depends on UCLIBC_HAS_PROGRAM_INVOCATION_NAME
  424. help
  425. Some packages (like openssh) like to peek into internal libc
  426. symbols to make their output a bit more user friendly.
  427. At startup, __progname is automatically set up based on the
  428. value of ARGV[0].
  429. If unsure, just answer N.
  430. config UNIX98PTY_ONLY
  431. bool "Support only Unix 98 PTYs"
  432. default y
  433. help
  434. If you want to support only Unix 98 PTYs enable this. Some older
  435. applications may need this disabled. For most current programs,
  436. you can generally answer Y.
  437. config ASSUME_DEVPTS
  438. bool "Assume that /dev/pts is a devpts or devfs file system"
  439. default y
  440. help
  441. Enable this if /dev/pts is on a devpts or devfs filesystem. Both
  442. these filesystems automatically manage permissions on the /dev/pts
  443. devices. You may need to mount your devpts or devfs filesystem on
  444. /dev/pts for this to work.
  445. Most people should answer Y.
  446. config UCLIBC_HAS_TM_EXTENSIONS
  447. bool "Support 'struct tm' timezone extension fields"
  448. default y
  449. help
  450. Enabling this option adds fields to 'struct tm' in time.h for
  451. tracking the number of seconds east of UTC, and an abbreviation for
  452. the current timezone. These fields are not specified by the SuSv3
  453. standard, but they are commonly used in both GNU and BSD application
  454. code.
  455. To strictly follow the SuSv3 standard, leave this disabled.
  456. Most people will probably want to answer Y.
  457. config UCLIBC_HAS_TZ_CACHING
  458. bool "Enable caching of the last valid timezone 'TZ' string"
  459. default y
  460. help
  461. Answer Y to enable caching of the last valid 'TZ' string describing
  462. the timezone setting. This allows a quick string compare to avoid
  463. repeated parsing of unchanged 'TZ' strings when tzset() is called.
  464. Most people will answer Y.
  465. config UCLIBC_HAS_TZ_FILE
  466. bool "Enable '/etc/TZ' file support to set a default timezone (uClibc-specific)"
  467. default y
  468. help
  469. Answer Y to enable the setting of a default timezone for uClibc.
  470. Ordinarily, uClibc gets the timezone information exclusively from the
  471. 'TZ' environment variable. In particular, there is no support for
  472. the zoneinfo directory tree or the /etc/timezone file used by glibc.
  473. With this option enabled, uClibc will use the value stored in the
  474. file '/etc/TZ' (default path) to obtain timezone information if the
  475. 'TZ' environment variable is missing or has an invalid value. The
  476. file consists of a single line (newline required) of text describing
  477. the timezone in the format specified for the TZ environment variable.
  478. Simply doing 'echo CST6CDT > /etc/TZ' is enough to create a valid file.
  479. See
  480. http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html
  481. for details on valid settings of 'TZ'.
  482. Most people will answer Y.
  483. config UCLIBC_HAS_TZ_FILE_READ_MANY
  484. bool "Repeatedly read the '/etc/TZ' file"
  485. depends on UCLIBC_HAS_TZ_FILE
  486. default y
  487. help
  488. Answer Y to enable repeated reading of the '/etc/TZ' file even after
  489. a valid value has been read. This incurs the overhead of an open/read/close
  490. for each tzset() call (explicit or implied). However, setting this
  491. will allows applications to update their timezone information if the contents
  492. of the file change.
  493. Most people will answer Y.
  494. config UCLIBC_TZ_FILE_PATH
  495. string "Path to the 'TZ' file for setting the global timezone"
  496. depends on UCLIBC_HAS_TZ_FILE
  497. default "/etc/TZ"
  498. help
  499. This is the path to the 'TZ' file.
  500. Most people will use the default of '/etc/TZ'.
  501. endmenu
  502. menu "Advanced Library Settings"
  503. config UCLIBC_PWD_BUFFER_SIZE
  504. int "Buffer size for getpwnam() and friends"
  505. default 256
  506. range 12 1024
  507. help
  508. This sets the value of the buffer size for getpwnam() and friends.
  509. By default, this is 256. (For reference, glibc uses 1024).
  510. The value can be found using sysconf() with the _SC_GETPW_R_SIZE_MAX
  511. parameter.
  512. config UCLIBC_GRP_BUFFER_SIZE
  513. int "Buffer size for getgrnam() and friends"
  514. default 256
  515. range 256 1024
  516. help
  517. This sets the value of the buffer size for getgrnam() and friends.
  518. By default, this is 256. (For reference, glibc uses 1024).
  519. The value can be found using sysconf() with the _SC_GETGR_R_SIZE_MAX
  520. parameter.
  521. endmenu
  522. menu "Networking Support"
  523. config UCLIBC_HAS_IPV6
  524. bool "IP version 6 Support"
  525. default n
  526. help
  527. If you want to include support for the next version of the Internet
  528. Protocol (IP version 6) then answer Y.
  529. Most people should answer N.
  530. config UCLIBC_HAS_RPC
  531. bool "Remote Procedure Call (RPC) support"
  532. default n
  533. help
  534. If you want to include RPC support, enable this. RPC is rarely used
  535. for anything except for the NFS filesystem. Unless you plan to use NFS,
  536. you can probably leave this set to N and save some space. If you need
  537. to use NFS then you should answer Y.
  538. config UCLIBC_HAS_FULL_RPC
  539. bool "Full RPC support"
  540. depends on UCLIBC_HAS_RPC
  541. default y if !HAVE_SHARED
  542. help
  543. Normally we enable just enough RPC support for things like rshd and
  544. nfs mounts to work. If you find you need the rest of the RPC stuff,
  545. then enable this option. Most people can safely answer N.
  546. config UCLIBC_HAS_REENTRANT_RPC
  547. bool "Reentrant RPC support"
  548. depends on UCLIBC_HAS_RPC
  549. default y if !HAVE_SHARED
  550. help
  551. Most packages utilize the normal (non-reentrant) RPC functions, but
  552. some (like exportfs from nfs-utils) need these reentrant versions.
  553. Most people can safely answer N.
  554. config UCLIBC_USE_NETLINK
  555. bool "Use netlink to query interfaces"
  556. default n
  557. help
  558. In newer versions of Linux (2.4.17+), support was added for querying
  559. network device information via netlink rather than the old style
  560. ioctl's. Most of the time, the older ioctl style is sufficient (and
  561. it is smaller than netlink), but if you find that not all of your
  562. devices are being returned by the if_nameindex() function, you will
  563. have to use the netlink implementation.
  564. Most people can safely answer N.
  565. config UCLIBC_HAS_BSD_RES_CLOSE
  566. bool "Support res_close() (bsd-compat)"
  567. default n
  568. help
  569. Answer Y if you desperately want to support BSD compatibility in
  570. the network code.
  571. Most people will say N.
  572. endmenu
  573. menu "String and Stdio Support"
  574. config UCLIBC_HAS_STRING_GENERIC_OPT
  575. bool "Use glibc generic string functions"
  576. default y
  577. help
  578. Answer Y to use the (tweaked) glibc generic string functions.
  579. In general, they are faster (but 3-5K larger) than the base
  580. uClibc string functions which are optimized solely for size.
  581. Many people will answer Y.
  582. config UCLIBC_HAS_STRING_ARCH_OPT
  583. bool "Use arch-specific string functions"
  584. default y
  585. help
  586. Answer Y to use the arch-specific string functions instead of the
  587. base uClibc versions, which are optimized exclusively for size.
  588. Most people will answer Y, as this has been default behavior
  589. for some time.
  590. config UCLIBC_HAS_CTYPE_TABLES
  591. bool "Use Table Versions Of 'ctype.h' Functions."
  592. default y
  593. help
  594. Answer Y to use table versions of the 'ctype.h' functions.
  595. While the non-table versions are often smaller when building
  596. statically linked apps, they work only in stub locale mode.
  597. Most people will answer Y.
  598. config UCLIBC_HAS_CTYPE_SIGNED
  599. bool "Support Signed Characters In 'ctype.h' Functions."
  600. depends UCLIBC_HAS_CTYPE_TABLES
  601. default y
  602. help
  603. Answer Y to enable support for passing signed char values to
  604. the 'ctype.h' functions. ANSI/ISO C99 and SUSv3 specify that
  605. these functions are only defined for unsigned char values and
  606. EOF. However, glibc allows negative signed char values as well
  607. in order to support 'broken old programs'.
  608. Most people will answer Y.
  609. choice
  610. prompt "ctype argument checking"
  611. depends UCLIBC_HAS_CTYPE_TABLES
  612. default UCLIBC_HAS_CTYPE_UNSAFE
  613. help
  614. Please select the invalid arg behavior you want for the 'ctype' functions.
  615. The 'ctype' functions are now implemented using table lookups, with
  616. the arg being the index. This can result in incorrect memory accesses
  617. or even segfaults for args outside of the allowed range.
  618. NOTE: This only affects the 'ctype' _functions_. It does not affect
  619. the macro implementations.
  620. config UCLIBC_HAS_CTYPE_UNSAFE
  621. bool "Do not check -- unsafe"
  622. config UCLIBC_HAS_CTYPE_CHECKED
  623. bool "Detect and handle appropriately"
  624. config UCLIBC_HAS_CTYPE_ENFORCED
  625. bool "Issue a diagnostic and abort()"
  626. endchoice
  627. config UCLIBC_HAS_WCHAR
  628. bool "Wide Character Support"
  629. default n
  630. help
  631. Answer Y to enable wide character support. This will make uClibc
  632. much larger. It is also currently required for locale support.
  633. Most people will answer N.
  634. config UCLIBC_HAS_LOCALE
  635. bool "Locale Support"
  636. select UCLIBC_HAS_WCHAR
  637. select UCLIBC_HAS_CTYPE_TABLES
  638. default n
  639. help
  640. uClibc now has full ANSI/ISO C99 locale support (except for
  641. wcsftime() and collating items in regex). Be aware that enabling
  642. this option will make uClibc much larger.
  643. Enabling UCLIBC_HAS_LOCALE with the default set of supported locales
  644. (169 UTF-8 locales, and 144 locales for other codesets) will enlarge
  645. uClibc by around 300k. You can reduce this size by building your own
  646. custom set of locate data (see extra/locale/LOCALES for details).
  647. uClibc's locale support is still under development. For example,
  648. codesets using shift states are not currently supported. Support is
  649. planned in the next iteration of locale support.
  650. Answer Y to enable locale support. Most people will answer N.
  651. config UCLIBC_PREGENERATED_LOCALE_DATA
  652. bool "Use Pre-generated Locale Data"
  653. depends on UCLIBC_HAS_LOCALE
  654. default n
  655. help
  656. If you are selective and only want locale data for a few particular
  657. locales, or you enjoy pain, or you are a rabid do-it-yourself sort of
  658. person, you can turn this option off and manually walk through the
  659. mostly undocumented procedure needed to generate your own locale
  660. data.
  661. Mere mortals will answer Y and use the default set of pregenerated
  662. locale data, which supports 169 UTF-8 locales, and 144 locales for
  663. other codesets (for the complete list see extra/locale/LOCALES).
  664. config UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA
  665. bool "Automagically Download the Pre-generated Locale Data (if necessary)"
  666. depends on UCLIBC_PREGENERATED_LOCALE_DATA
  667. default n
  668. help
  669. If you would like the build process to use 'wget' to automatically
  670. download the pregenerated locale data, enable this option. Otherwise
  671. you will need to obtain the locale data yourself from:
  672. http://www.uclibc.org/downloads/uClibc-locale-030818.tgz
  673. and place the uClibc-locale-030818.tgz tarball in the extra/locale/
  674. directory.
  675. Go ahead and make life easy for yourself... Answer Y.
  676. config UCLIBC_HAS_XLOCALE
  677. bool "Extended Locale Support (experimental/incomplete)"
  678. depends on UCLIBC_HAS_LOCALE
  679. default n
  680. help
  681. Answer Y to enable extended locale support similar to that provided
  682. by glibc. This is primarily intended to support libstd++ functionality.
  683. However, it also allows thread-specific locale selection via uselocale().
  684. Most people will answer N.
  685. config UCLIBC_HAS_HEXADECIMAL_FLOATS
  686. bool "Support hexadecimal float notation"
  687. depends UCLIBC_HAS_CTYPE_TABLES
  688. depends on UCLIBC_HAS_FLOATS
  689. default n
  690. help
  691. Answer Y to enable support for hexadecimal float notation in the
  692. (wchar and) char string to floating point conversion functions, as
  693. well as support for the %a and %A conversion specifiers in the
  694. *printf() and *scanf() functions.
  695. Most people will answer N.
  696. config UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  697. bool "Support glibc's \"'\" flag for allowing locale-specific digit grouping"
  698. depends on UCLIBC_HAS_LOCALE
  699. depends on UCLIBC_HAS_FLOATS
  700. default n
  701. help
  702. Answer Y to enable support for glibc's \"'\" flag for allowing locale-specific
  703. digit grouping in base 10 integer conversions and appropriate floating point
  704. conversions in the *printf() and *scanf() functions.
  705. Most people will answer N.
  706. config UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING
  707. bool "Do not require digit grouping when the \"'\" flag is specified"
  708. depends on UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  709. default y
  710. help
  711. Answer Y to make digit grouping optional when the \"'\" flag is specified.
  712. This is the standard glibc behavior. If the initial string of digits
  713. exceeds the maximum group number, the input will be treated as a normal
  714. non-grouped number.
  715. Most people will answer N.
  716. config UCLIBC_HAS_GLIBC_CUSTOM_PRINTF
  717. bool "Support glibc's register_printf_function() (glibc-compat)"
  718. depends on !USE_OLD_VFPRINTF
  719. default n
  720. help
  721. Answer Y to support glibc's register_printf_function() to allow an
  722. application to add its own printf conversion specifiers.
  723. NOTE: This implementation limits the number or registered specifiers to 10.
  724. NOTE: This implementation requires new conversion specifiers to be ASCII
  725. characters (0-0x7f). This is to avoid problems with processing
  726. format strings in locales with different multibyte conversions.
  727. Most people will answer N.
  728. config USE_OLD_VFPRINTF
  729. bool "Use the old vfprintf implementation"
  730. depends on !UCLIBC_HAS_WCHAR
  731. default n
  732. help
  733. Set to true to use the old vfprintf instead of the new. This is roughly
  734. C89 compliant with some extensions, and is much smaller. However, it does
  735. not support wide chars, positional args, or glibc custom printf specifiers.
  736. Most people will answer N.
  737. config UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS
  738. int "Maximum number of positional args. Either 0 or >= 9."
  739. depends on !USE_OLD_VFPRINTF
  740. default 9
  741. help
  742. Set the maximum number of positional args supported by the printf/scanf
  743. functions. The Single Unix Specification Version 3 requires a minimum
  744. value of 9. Setting this to a value lower than 9 will disable positional
  745. arg support and cause the NL_ARGMAX macro in limits.h to be #undef'd.
  746. WARNING! The workspace to support positional args is currently allocated
  747. on the stack. You probably don't want to set this to too high a value.
  748. Most people will answer 9.
  749. config UCLIBC_HAS_SCANF_GLIBC_A_FLAG
  750. bool "Support glibc's 'a' flag for scanf string conversions (not implemented)"
  751. default n
  752. help
  753. NOTE!!! Currently Not Implemented!!! Just A Place Holder!! NOTE!!!
  754. NOTE!!! Conflicts with an ANSI/ISO C99 scanf flag!! NOTE!!!
  755. Answer Y to enable support for glibc's 'a' flag for the scanf string
  756. conversions '%s', '%[', '%ls', '%l[', and '%S'. This is used to
  757. auto-allocate sufficient memory to hold the data retrieved.
  758. Most people will answer N.
  759. choice
  760. prompt "Stdio buffer size"
  761. default UCLIBC_HAS_STDIO_BUFSIZ_4096
  762. help
  763. Please select a value for BUFSIZ. This will be used by the
  764. stdio subsystem as the default buffer size for a file, and
  765. affects fopen(), setvbuf(), etc.
  766. NOTE: Setting this to 'none' will disable buffering completely.
  767. However, BUFSIZ will still be defined in stdio.h as 256 because
  768. many applications use this value.
  769. config UCLIBC_HAS_STDIO_BUFSIZ_NONE
  770. bool "none (WARNING - BUFSIZ will be 256 in stdio.h)"
  771. depends !UCLIBC_HAS_WCHAR
  772. config UCLIBC_HAS_STDIO_BUFSIZ_256
  773. bool "256 (minimum ANSI/ISO C99 value)"
  774. config UCLIBC_HAS_STDIO_BUFSIZ_512
  775. bool "512"
  776. config UCLIBC_HAS_STDIO_BUFSIZ_1024
  777. bool "1024"
  778. config UCLIBC_HAS_STDIO_BUFSIZ_2048
  779. bool "2048"
  780. config UCLIBC_HAS_STDIO_BUFSIZ_4096
  781. bool "4096"
  782. config UCLIBC_HAS_STDIO_BUFSIZ_8192
  783. bool "8192"
  784. # If you add more choices, you will need to update uClibc_stdio.h.
  785. endchoice
  786. choice
  787. prompt "Stdio builtin buffer size (uClibc-specific)"
  788. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  789. default UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  790. help
  791. When a FILE is created with fopen(), an attempt is made to allocate
  792. a BUFSIZ buffer for it. If the allocation fails, fopen() will still
  793. succeed but the FILE will be unbuffered.
  794. This option adds a small amount of space to each FILE to act as an
  795. emergency buffer in the event of a buffer allocation failure.
  796. Most people will answer None.
  797. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  798. bool "None"
  799. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4
  800. bool "4"
  801. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8
  802. bool "8"
  803. # If you add more choices, you will need to update uClibc_stdio.h.
  804. endchoice
  805. config UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT
  806. bool "Attempt to shutdown stdio subsystem when abort() is called."
  807. default n
  808. help
  809. ANSI/ISO C99 requires abort() to be asyn-signal-safe. So there was a behavioral
  810. change made in SUSv3. Previously, abort() was required to have the affect of
  811. fclose() on all open streams. The wording has been changed to "may" from "shall".
  812. Most people will answer N.
  813. config UCLIBC_HAS_STDIO_GETC_MACRO
  814. bool "Provide a macro version of getc()"
  815. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  816. default y
  817. help
  818. Provide a macro version of getc().
  819. Most people will answer Y.
  820. config UCLIBC_HAS_STDIO_PUTC_MACRO
  821. bool "Provide a macro version of putc()"
  822. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  823. default y
  824. help
  825. Provide a macro version of putc().
  826. Most people will answer Y.
  827. config UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION
  828. bool "Support auto-r/w transition"
  829. default y
  830. help
  831. Answer Y to enable the stdio subsystem to automaticly transition
  832. between reading and writing. This relaxes the ANSI/ISO C99 requirement:
  833. When a file is opened with update mode ('+' as the second or third character
  834. in the list of mode argument values), both input and output may be performed
  835. on the associated stream. However, output shall not be directly followed by
  836. input without an intervening call to the fflush function or to a file
  837. positioning function (fseek, fsetpos, or rewind), and input shall not be
  838. directly followed by output without an intervening call to a file positioning
  839. function, unless the input operation encounters end­of­file.
  840. Most people will answer Y.
  841. config UCLIBC_HAS_FOPEN_LARGEFILE_MODE
  842. bool "Support an fopen() 'F' flag for large file mode (uClibc-specific)"
  843. depends on UCLIBC_HAS_LFS
  844. default n
  845. help
  846. Answer Y to enable a uClibc-specific extension to allow passing an
  847. additional 'F' flag in the mode string for fopen() to specify that
  848. the file should be open()ed with the O_LARGEFILE flag set.
  849. Most people will answer N.
  850. config UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE
  851. bool "Support an fopen() 'x' flag for exclusive mode (glibc-compat)"
  852. default n
  853. help
  854. Answer Y to support a glibc extension to allow passing
  855. additional 'x' flag in the mode string for fopen() to specify that
  856. the file should be open()ed with the O_EXCL flag set.
  857. Most people will answer N.
  858. config UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
  859. bool "Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat)"
  860. default n
  861. help
  862. Answer Y to support the glibc 'custom stream' extension functions
  863. fmemopen(), open_memstream(), and fopencookie().
  864. NOTE: There are some minor differences regarding seeking behavior.
  865. Most people will answer N.
  866. config UCLIBC_HAS_PRINTF_M_SPEC
  867. bool "Support the '%m' specifier in printf format strings (glibc-compat)"
  868. default n
  869. help
  870. Answer Y to support a glibc extension to interpret '%m' in printf
  871. format strings as an instruction to output the error message string
  872. (as generated by strerror) corresponding to the current value of 'errno'.
  873. Most people will answer N.
  874. config UCLIBC_HAS_ERRNO_MESSAGES
  875. bool "Include the errno message text in the library"
  876. default y
  877. help
  878. Answer Y if you want to include the errno message text in the
  879. library. This adds about 3K to the library, but enables strerror()
  880. to generate text other than 'Unknown error <number>'.
  881. Most people will answer Y.
  882. config UCLIBC_HAS_SYS_ERRLIST
  883. bool "Support sys_errlist[] (obsolete-compat)"
  884. depends on UCLIBC_HAS_ERRNO_MESSAGES
  885. default n
  886. help
  887. Answer Y if you want to support the obsolete sys_errlist[].
  888. This adds about 0.5k to the library, except for the mips
  889. arch where it adds over 4K.
  890. WARNING! In the future, support for sys_errlist[] may be unavailable
  891. in at least some configurations. In fact, it may be removed altogether.
  892. Most people will answer N.
  893. Application writers: use the strerror(3) function.
  894. config UCLIBC_HAS_SIGNUM_MESSAGES
  895. bool "Include the signum message text in the library"
  896. default y
  897. help
  898. Answer Y if you want to include the signum message text in the
  899. library. This adds about 0.5K to the library, but enables strsignal()
  900. to generate text other than 'Unknown signal <number>'.
  901. Most people will answer Y.
  902. config UCLIBC_HAS_SYS_SIGLIST
  903. bool "Support sys_siglist[] (bsd-compat)"
  904. depends on UCLIBC_HAS_SIGNUM_MESSAGES
  905. default n
  906. help
  907. Answer Y if you want to support sys_siglist[].
  908. WARNING! In the future, support for sys_siglist[] may be unavailable
  909. in at least some configurations. In fact, it may be removed altogether.
  910. Most people will answer N.
  911. config UCLIBC_HAS_GETTEXT_AWARENESS
  912. bool "Include gettext awareness"
  913. depends on UCLIBC_HAS_LOCALE && UCLIBC_MJN3_ONLY
  914. default n
  915. help
  916. NOTE!!! Not yet integrated with strerror and strsignal. NOTE!!!
  917. Answer Y if you want to include weak stub gettext support and
  918. make the *strerror*() and strsignal() functions gettext-aware.
  919. Currently, to get functional gettext functionality you will need
  920. to use gnu gettext.
  921. Most people will answer N.
  922. config UCLIBC_HAS_GNU_GETOPT
  923. bool "Support gnu getopt"
  924. default y
  925. help
  926. Answer Y if you want to include full gnu getopt() instead of a
  927. (much smaller) SUSv3 compatible getopt().
  928. Most people will answer Y.
  929. config UCLIBC_HAS_GETOPT_LONG
  930. bool "Support getopt_long/getopt_long_only"
  931. depends !UCLIBC_HAS_GNU_GETOPT
  932. default y
  933. help
  934. Answer Y if you want to include getopt_long[_only() used by many
  935. apps, even busybox.
  936. Most people will answer Y.
  937. config UCLIBC_HAS_GNU_GETSUBOPT
  938. bool "Support glibc getsubopt"
  939. default y
  940. help
  941. Answer Y if you want to include glibc getsubopt() instead of a
  942. smaller SUSv3 compatible getsubopt().
  943. Most people will answer Y.
  944. endmenu
  945. menu "Big and Tall"
  946. config UCLIBC_HAS_REGEX
  947. bool "Regular Expression Support"
  948. default y
  949. help
  950. POSIX regular expression code is really big -- 53k all by itself.
  951. If you don't use regular expressions, turn this off and save space.
  952. Of course, if you only statically link, leave this on, since it will
  953. only be included in your apps if you use regular expressions.
  954. config UCLIBC_HAS_REGEX_OLD
  955. bool "Use the older (stable) regular expression code"
  956. depends on UCLIBC_HAS_REGEX
  957. default y
  958. help
  959. There are two versions of regex. The older (stable) version has
  960. been in uClibc for quite a long time but hasn't seen too many
  961. updates. It also has some known issues when dealing with uncommon
  962. corner cases and multibyte/unicode strings. However, it is quite
  963. a bit smaller than the newer version.
  964. If the older version has worked for you and you don't need unicode
  965. support, then stick with the old version (and say Y here).
  966. Otherwise, you should use the new version (and say N here).
  967. config UCLIBC_HAS_FNMATCH
  968. bool "fnmatch Support"
  969. default y
  970. help
  971. POSIX fnmatch.
  972. config UCLIBC_HAS_FNMATCH_OLD
  973. bool "Use the older (stable) fnmatch code"
  974. depends on UCLIBC_HAS_FNMATCH
  975. default y
  976. help
  977. There are two versions of fnmatch. The older (stable) version has
  978. been in uClibc for quite a long time but hasn't seen too many
  979. updates. It also has some known issues when dealing with uncommon
  980. corner cases and multibyte/unicode strings. However, it is quite
  981. a bit smaller than the newer version.
  982. If the older version has worked for you and you don't need unicode
  983. support, then stick with the old version (and say Y here).
  984. Otherwise, you should use the new version (and say N here).
  985. config UCLIBC_HAS_WORDEXP
  986. bool "Support the wordexp() interface"
  987. depends on UCLIBC_HAS_GLOB
  988. default n
  989. help
  990. The SuSv3 wordexp() interface performs word expansions per the Shell
  991. and Utilities volume of IEEE Std 1003.1-2001, Section 2.6. It is
  992. intended for use by applications that want to implement all of the
  993. standard Bourne shell expansions on input data.
  994. This interface is rarely used, and very large. Unless you have a
  995. pressing need for wordexp(), you should probably answer N.
  996. config UCLIBC_HAS_FTW
  997. bool "Support the ftw() and nftw() interfaces"
  998. default n
  999. help
  1000. The SuSv3 ftw() and nftw() interfaces are used to recursively descend
  1001. directory paths while repeatedly calling a function.
  1002. This interface is rarely used, and adds around 4.5k. Unless you have
  1003. a pressing need for ftw() or nftw(), you should probably answer N.
  1004. config UCLIBC_HAS_GLOB
  1005. bool "Support the glob() interface"
  1006. depends on UCLIBC_HAS_FNMATCH
  1007. default y
  1008. help
  1009. The glob interface is somewhat large (weighing in at about 2,5k). It
  1010. is used fairly often, but is an option since people wanting to go for
  1011. absolute minimum size may wish to omit it.
  1012. Most people will answer Y.
  1013. config UCLIBC_HAS_GNU_GLOB
  1014. bool "Support gnu glob() interface"
  1015. depends on UCLIBC_HAS_GLOB
  1016. default n
  1017. help
  1018. The gnu glob interface is somewhat larger (weighing in at about 4,2k) than
  1019. it's SuSv3 counterpart (and is out of date). It is an old copy from glibc and
  1020. does not support all the GNU specific options.
  1021. Answer Y if you want to include full gnu glob() instead of the smaller SUSv3
  1022. compatible glob().
  1023. Most people will answer N.
  1024. endmenu
  1025. menu "Library Installation Options"
  1026. config SHARED_LIB_LOADER_PREFIX
  1027. string "Shared library loader path"
  1028. depends on HAVE_SHARED
  1029. default "$(RUNTIME_PREFIX)lib"
  1030. help
  1031. When using shared libraries, this path is the location where the
  1032. shared library will be invoked. This value will be compiled into
  1033. every binary compiled with uClibc.
  1034. For a typical target system this should be set to "/lib", such that
  1035. 'make install' will install /lib/ld-uClibc.so.0.
  1036. BIG FAT WARNING:
  1037. If you do not have a shared library loader with the correct name
  1038. sitting in the directory this points to, your binaries will not
  1039. run.
  1040. config RUNTIME_PREFIX
  1041. string "uClibc runtime library directory"
  1042. default "/usr/$(TARGET_ARCH)-linux-uclibc/"
  1043. help
  1044. RUNTIME_PREFIX is the directory into which the uClibc runtime
  1045. libraries will be installed. The result will look something
  1046. like the following:
  1047. $(RUNTIME_PREFIX)/
  1048. lib/ <contains all runtime libraries>
  1049. usr/bin/ldd <the ldd utility program>
  1050. sbin/ldconfig <the ldconfig utility program>
  1051. This value is used by the 'make install' Makefile target. Since this
  1052. directory is compiled into the shared library loader, you will need to
  1053. recompile uClibc if you change this value...
  1054. For a typical target system this should be set to "/", such that
  1055. 'make install' will install /lib/libuClibc-<VERSION>.so
  1056. config DEVEL_PREFIX
  1057. string "uClibc development environment directory"
  1058. default "/usr/$(TARGET_ARCH)-linux-uclibc/usr/"
  1059. help
  1060. DEVEL_PREFIX is the directory into which the uClibc development
  1061. environment will be installed. The result will look something
  1062. like the following:
  1063. $(DEVEL_PREFIX)/
  1064. lib/ <contains static libs>
  1065. include/ <Where all the header files go>
  1066. This value is used by the 'make install' Makefile target when
  1067. installing a uClibc development environment.
  1068. For a typical target system this should be set to "/usr", such that
  1069. 'make install' will install /usr/include/<header files>.
  1070. endmenu
  1071. menu "Security options"
  1072. config UCLIBC_BUILD_PIE
  1073. bool "Build utilities as ET_DYN/PIE executables"
  1074. depends on HAVE_SHARED
  1075. depends on TARGET_arm || TARGET_frv || TARGET_i386 || TARGET_mips || TARGET_powerpc
  1076. select FORCE_SHAREABLE_TEXT_SEGMENTS
  1077. default n
  1078. help
  1079. If you answer Y here, ldd and iconv are built as ET_DYN/PIE executables.
  1080. It requires gcc-3.4 and binutils-2.15 (for arm 2.16) or later.
  1081. More about ET_DYN/PIE binaries on <http://pax.grsecurity.net/> .
  1082. WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so all
  1083. libraries have to be built with -fPIC or -fpic, and all assembler
  1084. functions must be written as position independent code (PIC).
  1085. config UCLIBC_HAS_ARC4RANDOM
  1086. bool "Include the arc4random() function"
  1087. default n
  1088. help
  1089. Answer Y to support the OpenBSD-like arc4random() function. This
  1090. function picks a random number between 0 and N, and will always return
  1091. something even if the random driver is dead. If urandom fails then
  1092. gettimeofday(2) will be used as the random seed. This function is
  1093. designed to be more dependable than invoking /dev/urandom directly.
  1094. OpenSSL and OpenNTPD currently support this function.
  1095. Most people will answer N.
  1096. config HAVE_NO_SSP
  1097. bool
  1098. default n
  1099. config UCLIBC_HAS_SSP
  1100. bool "Support for propolice smashing stack protector"
  1101. depends on !HAVE_NO_SSP
  1102. default n
  1103. help
  1104. Add propolice smashing stack protector to the library.
  1105. This requires GCC 4.1, supporting the -fstack-protector[-all]
  1106. options. GCC does not have to provide libssp, the needed
  1107. functions are added to ldso/libc instead.
  1108. Most people will answer N.
  1109. config UCLIBC_HAS_SSP_COMPAT
  1110. bool "Support for gcc-3.x propolice smashing stack protector"
  1111. depends on UCLIBC_HAS_SSP
  1112. default n
  1113. help
  1114. Add gcc-3.x propolice smashing stack protector to the library.
  1115. This requires a patched version of GCC, supporting the
  1116. -fstack-protector[-all] options, with the __guard and
  1117. __stack_smash_handler functions removed from libgcc.
  1118. These functions are added to ldso/libc instead.
  1119. More information at:
  1120. <http://www.research.ibm.com/trl/projects/security/ssp/>
  1121. Most people will answer N.
  1122. config SSP_QUICK_CANARY
  1123. bool "Use simple guard values without accessing /dev/urandom"
  1124. depends on UCLIBC_HAS_SSP
  1125. default n
  1126. help
  1127. Use gettimeofday(2) to define the __guard without accessing
  1128. /dev/urandom.
  1129. WARNING: This makes smashing stack protector vulnerable to timing
  1130. attacks.
  1131. Most people will answer N.
  1132. choice
  1133. prompt "Propolice protection blocking signal"
  1134. depends on UCLIBC_HAS_SSP
  1135. default PROPOLICE_BLOCK_ABRT if ! DODEBUG
  1136. default PROPOLICE_BLOCK_SEGV if DODEBUG
  1137. help
  1138. "abort" use SIGABRT to block offending programs.
  1139. This is the default implementation.
  1140. "segfault" use SIGSEGV to block offending programs.
  1141. Use this for debugging.
  1142. If unsure, answer "abort".
  1143. config PROPOLICE_BLOCK_ABRT
  1144. bool "abort"
  1145. config PROPOLICE_BLOCK_SEGV
  1146. bool "segfault"
  1147. endchoice
  1148. config UCLIBC_BUILD_SSP
  1149. bool "Build uClibc with propolice protection"
  1150. depends on UCLIBC_HAS_SSP
  1151. default n
  1152. help
  1153. Build all libraries and executables with propolice protection enabled.
  1154. config UCLIBC_BUILD_RELRO
  1155. bool "Build uClibc with RELRO"
  1156. depends on HAVE_SHARED
  1157. default y
  1158. help
  1159. Build all libraries and executables with -z relro.
  1160. config UCLIBC_BUILD_NOW
  1161. bool "Build uClibc with NOW"
  1162. depends on HAVE_SHARED
  1163. default n
  1164. help
  1165. Build all libraries and executables with -z now.
  1166. config UCLIBC_BUILD_NOEXECSTACK
  1167. bool "Build uClibc with noexecstack marking"
  1168. default y
  1169. help
  1170. Mark all assembler files as noexecstack. This will result in marking
  1171. all libraries and executables built against uClibc not requiring
  1172. executable stack.
  1173. endmenu
  1174. menu "uClibc development/debugging options"
  1175. config CROSS_COMPILER_PREFIX
  1176. string "Cross-compiling toolchain prefix"
  1177. default ""
  1178. help
  1179. The prefix used to execute your cross-compiling toolchain. For
  1180. example, if you run 'arm-linux-uclibc-gcc' to compile something,
  1181. then enter 'arm-linux-uclibc-' here.
  1182. config UCLIBC_EXTRA_CFLAGS
  1183. string "Enter any extra CFLAGS to use to build uClibc"
  1184. default ""
  1185. help
  1186. Add any additional CFLAGS to be used to build uClibc.
  1187. config DODEBUG
  1188. bool "Build uClibc with debugging symbols"
  1189. default n
  1190. select EXTRA_WARNINGS
  1191. help
  1192. Say Y here if you wish to compile uClibc with debugging symbols.
  1193. This will allow you to use a debugger to examine uClibc internals
  1194. while applications are running. This increases the size of the
  1195. library considerably and should only be used when doing development.
  1196. If you are doing development and want to debug uClibc, answer Y.
  1197. Otherwise, answer N.
  1198. config DODEBUG_PT
  1199. bool "Build pthread with debugging output"
  1200. depends on UCLIBC_HAS_THREADS && LINUXTHREADS_OLD
  1201. default n
  1202. help
  1203. Enable debug output in libpthread. This is only useful when doing
  1204. development in libpthread itself.
  1205. Otherwise, answer N.
  1206. config DOSTRIP
  1207. bool "Strip libraries and executables"
  1208. default y
  1209. depends on !DODEBUG
  1210. help
  1211. Say Y here if you do wish to strip all uClibc libraries and
  1212. executables. No stripping increases the size of the binaries
  1213. considerably, but makes it possible to debug uClibc libraries.
  1214. Most people will answer Y.
  1215. config DOASSERTS
  1216. bool "Build uClibc with run-time assertion testing"
  1217. default n
  1218. help
  1219. Say Y here to include runtime assertion tests.
  1220. This enables runtime assertion testing in some code, which can
  1221. increase the size of the library and incur runtime overhead.
  1222. If you say N, then this testing will be disabled.
  1223. config SUPPORT_LD_DEBUG
  1224. bool "Build the shared library loader with debugging support"
  1225. depends on HAVE_SHARED
  1226. default n
  1227. help
  1228. Answer Y here to enable all the extra code needed to debug the uClibc
  1229. native shared library loader. The level of debugging noise that is
  1230. generated depends on the LD_DEBUG environment variable... Just set
  1231. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  1232. debug your application. Diagnostic messages will then be printed to
  1233. the stderr.
  1234. For now these debugging tokens are available:
  1235. detail provide more information for some options
  1236. move display copy processing
  1237. symbols display symbol table processing
  1238. reloc display relocation processing; detail shows the relocation patch
  1239. nofixups never fixes up jump relocations
  1240. bindings displays the resolve processing (function calls); detail shows the relocation patch
  1241. all Enable everything!
  1242. The additional environment variable:
  1243. LD_DEBUG_OUTPUT=file
  1244. redirects the diagnostics to an output file created using
  1245. the specified name and the process id as a suffix.
  1246. An excellent start is simply:
  1247. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  1248. or to log everything to a file named 'logfile', try this
  1249. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  1250. If you are doing development and want to debug uClibc's shared library
  1251. loader, answer Y. Mere mortals answer N.
  1252. config SUPPORT_LD_DEBUG_EARLY
  1253. bool "Build the shared library loader with early debugging support"
  1254. depends on HAVE_SHARED
  1255. default n
  1256. help
  1257. Answer Y here to if you find the uClibc shared library loader is
  1258. crashing or otherwise not working very early on. This is typical
  1259. only when starting a new port when you haven't figured out how to
  1260. properly get the values for argc, argv, environ, etc. This method
  1261. allows a degree of visibility into the very early shared library
  1262. loader initialization process. If you are doing development and want
  1263. to debug the uClibc shared library loader early initialization,
  1264. answer Y. Mere mortals answer N.
  1265. config UCLIBC_MALLOC_DEBUGGING
  1266. bool "Build malloc with debugging support"
  1267. depends MALLOC || MALLOC_STANDARD
  1268. default n
  1269. help
  1270. Answer Y here to compile extra debugging support code into malloc.
  1271. Malloc debugging output may then be enabled at runtime using the
  1272. MALLOC_DEBUG environment variable.
  1273. The value of MALLOC_DEBUG should be an integer, which is interpreted as
  1274. a bitmask with the following bits:
  1275. 1 - do extra consistency checking
  1276. 2 - output messages for malloc/free calls and OS allocation calls
  1277. 4 - output messages for the `MMB' layer
  1278. 8 - output messages for internal malloc heap manipulation calls
  1279. Because this increases the size of malloc appreciably (due to strings
  1280. etc), you should say N unless you need to debug a malloc problem.
  1281. config WARNINGS
  1282. string "Compiler Warnings"
  1283. default "-Wall"
  1284. help
  1285. Set this to the set of gcc warnings you wish to see while compiling.
  1286. config EXTRA_WARNINGS
  1287. bool "Enable extra annoying warnings"
  1288. default n
  1289. help
  1290. If you wish to build with extra warnings enabled, say Y here.
  1291. config DOMULTI
  1292. bool "Compile all sources at once into an object"
  1293. default n
  1294. help
  1295. Set this to compile all sources at once into an object (IMA).
  1296. config UCLIBC_MJN3_ONLY
  1297. bool "Manuel's hidden warnings"
  1298. default n
  1299. help
  1300. Answer Y here to see all Manuel's personal notes, warnings, and todos.
  1301. Most people will answer N.
  1302. endmenu