Config.in 50 KB

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