Config.in 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284
  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. default TARGET_i386
  9. help
  10. Stuff
  11. config TARGET_alpha
  12. bool "alpha"
  13. config TARGET_arm
  14. bool "arm"
  15. config TARGET_bfin
  16. bool "bfin"
  17. config TARGET_cris
  18. bool "cris"
  19. config TARGET_e1
  20. bool "e1"
  21. config TARGET_frv
  22. bool "frv"
  23. config TARGET_h8300
  24. bool "h8300"
  25. config TARGET_i386
  26. bool "i386"
  27. config TARGET_i960
  28. bool "i960"
  29. config TARGET_m68k
  30. bool "m68k"
  31. config TARGET_microblaze
  32. bool "microblaze"
  33. config TARGET_mips
  34. bool "mips"
  35. config TARGET_nios
  36. bool "nios"
  37. config TARGET_nios2
  38. bool "nios2"
  39. config TARGET_powerpc
  40. bool "powerpc"
  41. config TARGET_sh
  42. bool "SuperH"
  43. config TARGET_sparc
  44. bool "sparc"
  45. config TARGET_v850
  46. bool "v850"
  47. endchoice
  48. menu "Target Architecture Features and Options"
  49. if TARGET_alpha
  50. source "extra/Configs/Config.alpha"
  51. endif
  52. if TARGET_arm
  53. source "extra/Configs/Config.arm"
  54. endif
  55. if TARGET_bfin
  56. source "extra/Configs/Config.bfin"
  57. endif
  58. if TARGET_cris
  59. source "extra/Configs/Config.cris"
  60. endif
  61. if TARGET_e1
  62. source "extra/Configs/Config.e1"
  63. endif
  64. if TARGET_frv
  65. source "extra/Configs/Config.frv"
  66. endif
  67. if TARGET_h8300
  68. source "extra/Configs/Config.h8300"
  69. endif
  70. if TARGET_i386
  71. source "extra/Configs/Config.i386"
  72. endif
  73. if TARGET_i960
  74. source "extra/Configs/Config.i960"
  75. endif
  76. if TARGET_m68k
  77. source "extra/Configs/Config.m68k"
  78. endif
  79. if TARGET_nios
  80. source "extra/Configs/Config.nios"
  81. endif
  82. if TARGET_nios2
  83. source "extra/Configs/Config.nios2"
  84. endif
  85. if TARGET_microblaze
  86. source "extra/Configs/Config.microblaze"
  87. endif
  88. if TARGET_mips
  89. source "extra/Configs/Config.mips"
  90. endif
  91. if TARGET_powerpc
  92. source "extra/Configs/Config.powerpc"
  93. endif
  94. if TARGET_sh
  95. source "extra/Configs/Config.sh"
  96. endif
  97. if TARGET_sparc
  98. source "extra/Configs/Config.sparc"
  99. endif
  100. if TARGET_v850
  101. source "extra/Configs/Config.v850"
  102. endif
  103. source "extra/Configs/Config.in.arch"
  104. endmenu
  105. menu "General Library Settings"
  106. config HAVE_NO_PIC
  107. bool
  108. default n
  109. config DOPIC
  110. bool "Generate Position Independent Code (PIC)"
  111. default y
  112. depends !HAVE_NO_PIC
  113. help
  114. If you wish to build uClibc with support for shared libraries then
  115. answer Y here. If you only want to build uClibc as a static library,
  116. then answer N.
  117. config HAVE_NO_SHARED
  118. bool
  119. default n
  120. config HAVE_SHARED
  121. bool "Enable support for shared libraries"
  122. depends on DOPIC && !HAVE_NO_SHARED
  123. default y
  124. help
  125. If you wish to build uClibc with support for shared libraries then
  126. answer Y here. If you only want to build uClibc as a static library,
  127. then answer N.
  128. config ARCH_HAS_NO_LDSO
  129. bool
  130. default n
  131. config BUILD_UCLIBC_LDSO
  132. bool "Compile native shared library loader"
  133. depends on HAVE_SHARED && !ARCH_HAS_NO_LDSO
  134. default y
  135. help
  136. uClibc has a native shared library loader for some architectures.
  137. If you answer Y here, the uClibc native shared library loader will
  138. be built for your target architecture. If this option is available,
  139. to you, then you almost certainly want to answer Y.
  140. config FORCE_SHAREABLE_TEXT_SEGMENTS
  141. bool "Only load shared libraries which can share their text segment"
  142. depends on BUILD_UCLIBC_LDSO
  143. default n
  144. help
  145. If you answer Y here, the uClibc native shared library loader will
  146. only load shared libraries, which do not need to modify any non-writable
  147. segments. These libraries haven't set the DT_TEXTREL tag in the dynamic
  148. section (==> objdump). So all your libraries must be compiled with
  149. -fPIC or -fpic, and all assembler function must be written as position
  150. independent code (PIC).
  151. Enabling this option will makes uClibc's shared library loader a
  152. little bit smaller and guarantee that no memory will be wasted by badly
  153. coded shared libraries.
  154. config LDSO_LDD_SUPPORT
  155. bool "Native shared library loader 'ldd' support"
  156. depends on BUILD_UCLIBC_LDSO
  157. default y
  158. help
  159. Enable this to enable all the code needed to support traditional ldd,
  160. which executes the shared library loader to resolve all dependencies
  161. and then provide a list of shared libraries that are required for an
  162. application to function. Disabling this option will makes uClibc's
  163. shared library loader a little bit smaller. Most people will answer Y.
  164. config LDSO_CACHE_SUPPORT
  165. bool "Enable shared library loader cache"
  166. depends on BUILD_UCLIBC_LDSO
  167. default y
  168. help
  169. Enable this to make use of /etc/ld.so.conf, the shared library loader
  170. cache configuration file to support for non-standard library paths.
  171. After updating this file, it is necessary to run 'ldconfig' to update
  172. the /etc/ld.so.cache shared library loader cache file.
  173. config LDSO_PRELOAD_FILE_SUPPORT
  174. bool "Enable shared library loader preload file support"
  175. depends on BUILD_UCLIBC_LDSO
  176. default n
  177. help
  178. Enable this to make use of /etc/ld.so.preload. This file contains a
  179. whitespace separated list of shared libraries to be loaded before
  180. the program.
  181. config LDSO_BASE_FILENAME
  182. string "Shared library loader naming prefix"
  183. depends on LDSO_CACHE_SUPPORT || LDSO_PRELOAD_FILE_SUPPORT
  184. default "ld.so"
  185. help
  186. If you wish to support both uClibc and glibc on the same system, it
  187. is necessary to set this to something other than "ld.so" to avoid
  188. conflicts with glibc, which also uses "ld.so". This prevents both
  189. libraries from using the same /etc/ld.so.* files. If you wish to
  190. support both uClibc and glibc on the same system then you should set
  191. this to "ld-uClibc.so".
  192. Most people will leave this set to the default of "ld.so".
  193. WARNING: Changing the default prefix could cause problems with
  194. binutils' ld !
  195. config UCLIBC_CTOR_DTOR
  196. bool "Support global constructors and destructors"
  197. default y
  198. help
  199. If you wish to build uClibc with support for global constructor
  200. (ctor) and global destructor (dtor) support, then answer Y here.
  201. When ctor/dtor support is enabled, binaries linked with uClibc must
  202. also be linked with crtbegin.o and crtend.o which are provided by gcc
  203. (the "*startfile:" and "*endfile:" settings in your gcc specs file
  204. may need to be adjusted to include these files). This support will
  205. also add a small amount of additional size to each binary compiled vs
  206. uClibc. If you will be using uClibc with C++, or if you need the gcc
  207. __attribute__((constructor)) and __attribute__((destructor)) to work,
  208. then you definitely want to answer Y here. If you don't need ctors
  209. or dtors and want your binaries to be as small as possible, then
  210. answer N.
  211. config HAS_NO_THREADS
  212. bool
  213. default n
  214. config UCLIBC_HAS_THREADS
  215. bool "POSIX Threading Support"
  216. depends on !HAS_NO_THREADS
  217. default y
  218. help
  219. If you want to compile uClibc with pthread support, then answer Y.
  220. This will increase the size of uClibc by adding a bunch of locking
  221. to critical data structures, and adding extra code to ensure that
  222. functions are properly reentrant.
  223. If your applications require pthreads, answer Y.
  224. config PTHREADS_DEBUG_SUPPORT
  225. bool "Build pthreads debugging support"
  226. default n
  227. depends on UCLIBC_HAS_THREADS
  228. help
  229. Say Y here if you wish to be able to debug applications that use
  230. uClibc's pthreads library. By enabling this option, a library
  231. named libthread_db will be built. This library will be dlopen()'d
  232. by gdb and will allow gdb to debug the threads in your application.
  233. IMPORTANT NOTE! Because gdb must dlopen() the libthread_db library,
  234. you must compile gdb with uClibc in order for pthread debugging to
  235. work properly.
  236. If you are doing development and want to debug applications using
  237. uClibc's pthread library, answer Y. Otherwise, answer N.
  238. config UCLIBC_HAS_LFS
  239. bool "Large File Support"
  240. default y
  241. help
  242. If you wish to build uClibc with support for accessing large files
  243. (i.e. files greater then 2 GiB) then answer Y. Do not enable this
  244. if you are using an older Linux kernel (2.0.x) that lacks large file
  245. support. Enabling this option will increase the size of uClibc.
  246. choice
  247. prompt "Malloc Implementation"
  248. default MALLOC if ! ARCH_HAS_MMU
  249. default MALLOC_STANDARD if ARCH_HAS_MMU
  250. help
  251. "malloc" use mmap for all allocations and so works very well on MMU-less
  252. systems that do not support the brk() system call. It is pretty smart
  253. about reusing already allocated memory, and minimizing memory wastage.
  254. This is the default for uClinux MMU-less systems.
  255. "malloc-simple" was written from scratch for uClibc, and is the
  256. simplest possible (and therefore smallest) malloc implementation.
  257. This uses only the mmap() system call to allocation memory, and does
  258. not use the brk() system call at all, making it a fine choice for
  259. MMU-less systems with very limited memory. It is rather dumb, and
  260. certainly isn't the fastest. But it is 100% standards compliant,
  261. thread safe, and very small.
  262. "malloc-standard" is derived from the public domain dlmalloc
  263. implementation by Doug Lea. It is quite fast, and is pretty smart
  264. about reusing already allocated memory, and minimizing memory
  265. wastage. This uses brk() for small allocations, while using mmap()
  266. for larger allocations. This is the default malloc implementation
  267. for uClibc.
  268. If unsure, answer "malloc-standard".
  269. config MALLOC
  270. bool "malloc"
  271. config MALLOC_SIMPLE
  272. bool "malloc-simple"
  273. config MALLOC_STANDARD
  274. bool "malloc-standard"
  275. depends on ARCH_HAS_MMU
  276. endchoice
  277. config MALLOC_GLIBC_COMPAT
  278. bool "Malloc returns live pointer for malloc(0)"
  279. default n
  280. help
  281. The behavior of malloc(0) is listed as implementation-defined by
  282. SuSv3. Glibc returns a valid pointer to something, while uClibc
  283. normally return a NULL. I personally feel glibc's behavior is
  284. not particularly safe, and allows buggy applications to hide very
  285. serious problems.
  286. When this option is enabled, uClibc will act just like glibc, and
  287. return a live pointer when someone calls malloc(0). This pointer
  288. provides a malloc'ed area with a size of 1 byte. This feature is
  289. mostly useful when dealing with applications using autoconf's broken
  290. AC_FUNC_MALLOC macro (which redefines malloc as rpl_malloc if it
  291. does not detect glibc style returning-a-valid-pointer-for-malloc(0)
  292. behavior). Most people can safely answer N.
  293. config UCLIBC_DYNAMIC_ATEXIT
  294. bool "Dynamic atexit() Support"
  295. default y
  296. help
  297. When this option is enabled, uClibc will support an infinite number,
  298. of atexit() and on_exit() functions, limited only by your available
  299. memory. This can be important when uClibc is used with C++, since
  300. global destructors are implemented via atexit(), and it is quite
  301. possible to exceed the default number when this option is disabled.
  302. Enabling this option adds a few bytes, and more significantly makes
  303. atexit and on_exit depend on malloc, which can be bad when compiling
  304. static executables.
  305. Unless you use uClibc with C++, you should probably answer N.
  306. config HAS_SHADOW
  307. bool "Shadow Password Support"
  308. default y
  309. help
  310. Answer N if you do not need shadow password support.
  311. Most people will answer Y.
  312. config UNIX98PTY_ONLY
  313. bool "Support only Unix 98 PTYs"
  314. default y
  315. help
  316. If you want to support only Unix 98 PTYs enable this. Some older
  317. applications may need this disabled. For most current programs,
  318. you can generally answer Y.
  319. config ASSUME_DEVPTS
  320. bool "Assume that /dev/pts is a devpts or devfs file system"
  321. default y
  322. help
  323. Enable this if /dev/pts is on a devpts or devfs filesystem. Both
  324. these filesystems automatically manage permissions on the /dev/pts
  325. devices. You may need to mount your devpts or devfs filesystem on
  326. /dev/pts for this to work.
  327. Most people should answer Y.
  328. config UCLIBC_HAS_TM_EXTENSIONS
  329. bool "Support 'struct tm' timezone extension fields"
  330. default y
  331. help
  332. Enabling this option adds fields to 'struct tm' in time.h for
  333. tracking the number of seconds east of UTC, and an abbreviation for
  334. the current timezone. These fields are not specified by the SuSv3
  335. standard, but they are commonly used in both GNU and BSD application
  336. code.
  337. To strictly follow the SuSv3 standard, leave this disabled.
  338. Most people will probably want to answer Y.
  339. config UCLIBC_HAS_TZ_CACHING
  340. bool "Enable caching of the last valid timezone 'TZ' string"
  341. default y
  342. help
  343. Answer Y to enable caching of the last valid 'TZ' string describing
  344. the timezone setting. This allows a quick string compare to avoid
  345. repeated parsing of unchanged 'TZ' strings when tzset() is called.
  346. Most people will answer Y.
  347. config UCLIBC_HAS_TZ_FILE
  348. bool "Enable '/etc/TZ' file support to set a default timezone (uClibc-specific)"
  349. default y
  350. help
  351. Answer Y to enable the setting of a default timezone for uClibc.
  352. Ordinarily, uClibc gets the timezone information exclusively from the
  353. 'TZ' environment variable. In particular, there is no support for
  354. the zoneinfo directory tree or the /etc/timezone file used by glibc.
  355. With this option enabled, uClibc will use the value stored in the
  356. file '/etc/TZ' (default path) to obtain timezone information if the
  357. 'TZ' environment variable is missing or has an invalid value. The
  358. file consists of a single line (newline required) of text describing
  359. the timezone in the format specified for the TZ environment variable.
  360. Simply doing 'echo CST6CDT > /etc/TZ' is enough to create a valid file.
  361. See
  362. http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html
  363. for details on valid settings of 'TZ'.
  364. Most people will answer Y.
  365. config UCLIBC_HAS_TZ_FILE_READ_MANY
  366. bool "Repeatedly read the '/etc/TZ' file"
  367. depends on UCLIBC_HAS_TZ_FILE
  368. default y
  369. help
  370. Answer Y to enable repeated reading of the '/etc/TZ' file even after
  371. a valid value has been read. This incurs the overhead of an open/read/close
  372. for each tzset() call (explicit or implied). However, setting this
  373. will allows applications to update their timezone information if the contents
  374. of the file change.
  375. Most people will answer Y.
  376. config UCLIBC_TZ_FILE_PATH
  377. string "Path to the 'TZ' file for setting the global timezone"
  378. depends on UCLIBC_HAS_TZ_FILE
  379. default "/etc/TZ"
  380. help
  381. This is the path to the 'TZ' file.
  382. Most people will use the default of '/etc/TZ'.
  383. config UCLIBC_XATTR
  384. bool "Extended Attributes"
  385. default n
  386. help
  387. Extended attributes are name:value pairs associated with inodes (files,
  388. directories, symlinks, etc). They are extensions to the normal attributes
  389. which are associated with all inodes in the system.
  390. Most people should answer N.
  391. Selinux users will want to say Y here.
  392. endmenu
  393. menu "Networking Support"
  394. config UCLIBC_HAS_IPV6
  395. bool "IP version 6 Support"
  396. default n
  397. help
  398. If you want to include support for the next version of the Internet
  399. Protocol (IP version 6) then answer Y.
  400. Most people should answer N.
  401. config UCLIBC_HAS_RPC
  402. bool "Remote Procedure Call (RPC) support"
  403. default n
  404. help
  405. If you want to include RPC support, enable this. RPC is rarely used
  406. for anything except for the NFS filesystem. Unless you plan to use NFS,
  407. you can probably leave this set to N and save some space. If you need
  408. to use NFS then you should answer Y.
  409. config UCLIBC_HAS_FULL_RPC
  410. bool "Full RPC support"
  411. depends on UCLIBC_HAS_RPC
  412. default y if !HAVE_SHARED
  413. help
  414. Normally we enable just enough RPC support for things like rshd and
  415. nfs mounts to work. If you find you need the rest of the RPC stuff,
  416. then enable this option. Most people can safely answer N.
  417. endmenu
  418. menu "String and Stdio Support"
  419. config UCLIBC_HAS_STRING_GENERIC_OPT
  420. bool "Use glibc generic string functions"
  421. default y
  422. help
  423. Answer Y to use the (tweaked) glibc generic string functions.
  424. In general, they are faster (but 3-5K larger) than the base
  425. uClibc string functions which are optimized solely for size.
  426. Many people will answer Y.
  427. config UCLIBC_HAS_STRING_ARCH_OPT
  428. bool "Use arch-specific string functions"
  429. default y
  430. help
  431. Answer Y to use the arch-specific string functions instead of the
  432. base uClibc versions, which are optimized exclusively for size.
  433. Most people will answer Y, as this has been default behavior
  434. for some time.
  435. config UCLIBC_HAS_CTYPE_TABLES
  436. bool "Use Table Versions Of 'ctype.h' Functions."
  437. default y
  438. help
  439. Answer Y to use table versions of the 'ctype.h' functions.
  440. While the non-table versions are often smaller when building
  441. staticly linked apps, they work only in stub locale mode.
  442. Most people will answer Y.
  443. config UCLIBC_HAS_CTYPE_SIGNED
  444. bool "Support Signed Characters In 'ctype.h' Functions."
  445. depends UCLIBC_HAS_CTYPE_TABLES
  446. default y
  447. help
  448. Answer Y to enable support for passing signed char values to
  449. the 'ctype.h' functions. ANSI/ISO C99 and SUSv3 specify that
  450. these functions are only defined for unsigned char values and
  451. EOF. However, glibc allows negative signed char values as well
  452. in order to support 'broken old programs'.
  453. Most people will answer Y.
  454. choice
  455. prompt "ctype argument checking"
  456. depends UCLIBC_HAS_CTYPE_TABLES
  457. default UCLIBC_HAS_CTYPE_UNSAFE
  458. help
  459. Please select the invalid arg behavior you want for the 'ctype' functions.
  460. The 'ctype' functions are now implemented using table lookups, with
  461. the arg being the index. This can result in incorrect memory accesses
  462. or even segfaults for args outside of the allowed range.
  463. NOTE: This only affects the 'ctype' _functions_. It does not affect
  464. the macro implementations.
  465. config UCLIBC_HAS_CTYPE_UNSAFE
  466. bool "Do not check -- unsafe"
  467. config UCLIBC_HAS_CTYPE_CHECKED
  468. bool "Detect and handle appropriately"
  469. config UCLIBC_HAS_CTYPE_ENFORCED
  470. bool "Issue a diagnostic and abort()"
  471. endchoice
  472. config UCLIBC_HAS_WCHAR
  473. bool "Wide Character Support"
  474. default n
  475. help
  476. Answer Y to enable wide character support. This will make uClibc
  477. much larger. It is also currently required for locale support.
  478. Most people will answer N.
  479. config UCLIBC_HAS_LOCALE
  480. bool "Locale Support"
  481. select UCLIBC_HAS_WCHAR
  482. select UCLIBC_HAS_CTYPE_TABLES
  483. default n
  484. help
  485. uClibc now has full ANSI/ISO C99 locale support (except for
  486. wcsftime() and collating items in regex). Be aware that enabling
  487. this option will make uClibc much larger.
  488. Enabling UCLIBC_HAS_LOCALE with the default set of supported locales
  489. (169 UTF-8 locales, and 144 locales for other codesets) will enlarge
  490. uClibc by around 300k. You can reduce this size by building your own
  491. custom set of locate data (see extra/locale/LOCALES for details).
  492. uClibc's locale support is still under development. For example,
  493. codesets using shift states are not currently supported. Support is
  494. planned in the next iteration of locale support.
  495. Answer Y to enable locale support. Most people will answer N.
  496. config UCLIBC_PREGENERATED_LOCALE_DATA
  497. bool "Use Pre-generated Locale Data"
  498. depends on UCLIBC_HAS_LOCALE
  499. default n
  500. help
  501. If you are selective and only want locale data for a few particular
  502. locales, or you enjoy pain, or you are a rabid do-it-yourself sort of
  503. person, you can turn this option off and manually walk through the
  504. mostly undocumented procedure needed to generate your own locale
  505. data.
  506. Mere mortals will answer Y and use the default set of pregenerated
  507. locale data, which supports 169 UTF-8 locales, and 144 locales for
  508. other codesets (for the complete list see extra/locale/LOCALES).
  509. config UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA
  510. bool "Automagically Download the Pre-generated Locale Data (if necessary)"
  511. depends on UCLIBC_PREGENERATED_LOCALE_DATA
  512. default n
  513. help
  514. If you would like the build process to use 'wget' to automatically
  515. download the pregenerated locale data, enable this option. Otherwise
  516. you will need to obtain the locale data yourself from:
  517. http://www.uclibc.org/downloads/uClibc-locale-030818.tgz
  518. and place the uClibc-locale-030818.tgz tarball in the extra/locale/
  519. directory.
  520. Go ahead and make life easy for yourself... Answer Y.
  521. config UCLIBC_HAS_XLOCALE
  522. bool "Extended Locale Support (experimental/incomplete)"
  523. depends on UCLIBC_HAS_LOCALE
  524. default n
  525. help
  526. Answer Y to enable extended locale support similar to that provided
  527. by glibc. This is primarily intended to support libstd++ functionality.
  528. However, it also allows thread-specific locale selection via uselocale().
  529. Most people will answer N.
  530. config UCLIBC_HAS_HEXADECIMAL_FLOATS
  531. bool "Support hexadecimal float notation"
  532. depends UCLIBC_HAS_CTYPE_TABLES
  533. depends on UCLIBC_HAS_FLOATS
  534. default n
  535. help
  536. Answer Y to enable support for hexadecimal float notation in the
  537. (wchar and) char string to floating point conversion functions, as
  538. well as support for the %a and %A conversion specifiers in the
  539. *printf() and *scanf() functions.
  540. Most people will answer N.
  541. config UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  542. bool "Support glibc's \"'\" flag for allowing locale-specific digit grouping"
  543. depends on UCLIBC_HAS_LOCALE
  544. depends on UCLIBC_HAS_FLOATS
  545. default n
  546. help
  547. Answer Y to enable support for glibc's \"'\" flag for allowing locale-specific
  548. digit grouping in base 10 integer conversions and appropriate floating point
  549. conversions in the *printf() and *scanf() functions.
  550. Most people will answer N.
  551. config UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING
  552. bool "Do not require digit grouping when the \"'\" flag is specified"
  553. depends on UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  554. default y
  555. help
  556. Answer Y to make digit grouping optional when the \"'\" flag is specified.
  557. This is the standard glibc behavior. If the initial string of digits
  558. exceeds the maximum group number, the input will be treated as a normal
  559. non-grouped number.
  560. Most people will answer N.
  561. config UCLIBC_HAS_GLIBC_CUSTOM_PRINTF
  562. bool "Support glibc's register_printf_function() (glibc-compat)"
  563. depends on !USE_OLD_VFPRINTF
  564. default n
  565. help
  566. Answer Y to support glibc's register_printf_function() to allow an
  567. application to add its own printf conversion specifiers.
  568. NOTE: This implementation limits the number or registered specifiers to 10.
  569. NOTE: This implementation requires new conversion specifiers to be ASCII
  570. characters (0-0x7f). This is to avoid problems with processing
  571. format strings in locales with different multibyte conversions.
  572. Most people will answer N.
  573. config USE_OLD_VFPRINTF
  574. bool "Use the old vfprintf implementation"
  575. depends on !UCLIBC_HAS_WCHAR
  576. default n
  577. help
  578. Set to true to use the old vfprintf instead of the new. This is roughly
  579. C89 compliant with some extensions, and is much smaller. However, it does
  580. not support wide chars, positional args, or glibc custom printf specifiers.
  581. Most people will answer N.
  582. config UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS
  583. int "Maximum number of positional args. Either 0 or >= 9."
  584. depends on !USE_OLD_VFPRINTF
  585. default 9
  586. help
  587. Set the maximum number of positional args supported by the printf/scanf
  588. functions. The Single Unix Specification Version 3 requires a minimum
  589. value of 9. Setting this to a value lower than 9 will disable positional
  590. arg support and cause the NL_ARGMAX macro in limits.h to be #undef'd.
  591. WARNING! The workspace to support positional args is currently allocated
  592. on the stack. You probably don't want to set this to too high a value.
  593. Most people will answer 9.
  594. config UCLIBC_HAS_SCANF_GLIBC_A_FLAG
  595. bool "Support glibc's 'a' flag for scanf string conversions"
  596. default n
  597. help
  598. NOTE!!! Currently Not Implemented!!! Just A Place Holder!! NOTE!!!
  599. Answer Y to enable support for glibc's 'a' flag for the scanf string
  600. conversions '%s', '%[', '%ls', '%l[', and '%S'. This is used to
  601. auto-allocate sufficient memory to hold the data retrieved.
  602. Most people will answer N.
  603. choice
  604. prompt "Stdio buffer size"
  605. default UCLIBC_HAS_STDIO_BUFSIZ_4096
  606. help
  607. Please select a value for BUFSIZ. This will be used by the
  608. stdio subsystem as the default buffer size for a file, and
  609. affects fopen(), setvbuf(), etc.
  610. NOTE: Setting this to 'none' will disable buffering completely.
  611. However, BUFSIZ will still be defined in stdio.h as 256 because
  612. many applications use this value.
  613. config UCLIBC_HAS_STDIO_BUFSIZ_NONE
  614. bool "none (WARNING - BUFSIZ will be 256 in stdio.h)"
  615. depends !UCLIBC_HAS_WCHAR
  616. config UCLIBC_HAS_STDIO_BUFSIZ_256
  617. bool "256 (minimum ANSI/ISO C99 value)"
  618. config UCLIBC_HAS_STDIO_BUFSIZ_512
  619. bool "512"
  620. config UCLIBC_HAS_STDIO_BUFSIZ_1024
  621. bool "1024"
  622. config UCLIBC_HAS_STDIO_BUFSIZ_2048
  623. bool "2048"
  624. config UCLIBC_HAS_STDIO_BUFSIZ_4096
  625. bool "4096"
  626. config UCLIBC_HAS_STDIO_BUFSIZ_8192
  627. bool "8192"
  628. # If you add more choices, you will need to update uClibc_stdio.h.
  629. endchoice
  630. choice
  631. prompt "Stdio builtin buffer size (uClibc-specific)"
  632. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  633. default UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  634. help
  635. When a FILE is created with fopen(), an attempt is made to allocate
  636. a BUFSIZ buffer for it. If the allocation fails, fopen() will still
  637. succeed but the FILE will be unbuffered.
  638. This option adds a small amount of space to each FILE to act as an
  639. emergency buffer in the event of a buffer allocation failure.
  640. Most people will answer None.
  641. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  642. bool "None"
  643. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4
  644. bool "4"
  645. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8
  646. bool "8"
  647. # If you add more choices, you will need to update uClibc_stdio.h.
  648. endchoice
  649. config UCLIBC_HAS_STDIO_GETC_MACRO
  650. bool "Provide a macro version of getc()"
  651. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  652. default y
  653. help
  654. Provide a macro version of getc().
  655. Most people will answer Y.
  656. config UCLIBC_HAS_STDIO_PUTC_MACRO
  657. bool "Provide a macro version of putc()"
  658. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  659. default y
  660. help
  661. Provide a macro version of putc().
  662. Most people will answer Y.
  663. config UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION
  664. bool "Support auto-r/w transition"
  665. default y
  666. help
  667. Answer Y to enable the stdio subsystem to automaticly transition
  668. between reading and writing. This relaxes the ANSI/ISO C99 requirement:
  669. When a file is opened with update mode ('+' as the second or third character
  670. in the list of mode argument values), both input and output may be performed
  671. on the associated stream. However, output shall not be directly followed by
  672. input without an intervening call to the fflush function or to a file
  673. positioning function (fseek, fsetpos, or rewind), and input shall not be
  674. directly followed by output without an intervening call to a file positioning
  675. function, unless the input operation encounters end­of­file.
  676. Most people will answer Y.
  677. config UCLIBC_HAS_FOPEN_LARGEFILE_MODE
  678. bool "Support an fopen() 'F' flag for large file mode (uClibc-specific)"
  679. depends on UCLIBC_HAS_LFS
  680. default n
  681. help
  682. Answer Y to enable a uClibc-specific extension to allow passing an
  683. additional 'F' flag in the mode string for fopen() to specify that
  684. the file should be open()ed with the O_LARGEFILE flag set.
  685. Most people will answer N.
  686. config UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE
  687. bool "Support an fopen() 'x' flag for exclusive mode (glibc-compat)"
  688. default n
  689. help
  690. Answer Y to support a glibc extension to allow passing
  691. additional 'x' flag in the mode string for fopen() to specify that
  692. the file should be open()ed with the O_EXCL flag set.
  693. Most people will answer N.
  694. config UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
  695. bool "Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat)"
  696. default n
  697. help
  698. Answer Y to support the glibc 'custom stream' extension functions
  699. fmemopen(), open_memstream(), and fopencookie().
  700. NOTE: There are some minor differences regarding seeking behavior.
  701. Most people will answer N.
  702. config UCLIBC_HAS_PRINTF_M_SPEC
  703. bool "Support the '%m' specifier in printf format strings (glibc-compat)"
  704. default n
  705. help
  706. Answer Y to support a glibc extension to interpret '%m' in printf
  707. format strings as an instruction to output the error message string
  708. (as generated by strerror) corresponding to the current value of 'errno'.
  709. Most people will answer N.
  710. config UCLIBC_HAS_ERRNO_MESSAGES
  711. bool "Include the errno message text in the library"
  712. default y
  713. help
  714. Answer Y if you want to include the errno message text in the
  715. library. This adds about 3K to the library, but enables strerror()
  716. to generate text other than 'Unknown error <number>'.
  717. Most people will answer Y.
  718. config UCLIBC_HAS_SYS_ERRLIST
  719. bool "Support sys_errlist[] (obsolete-compat)"
  720. depends on UCLIBC_HAS_ERRNO_MESSAGES
  721. default n
  722. help
  723. Answer Y if you want to support the obsolete sys_errlist[].
  724. This adds about 0.5k to the library, except for the mips
  725. arch where it adds over 4K.
  726. WARNING! In the future, support for sys_errlist[] may be unavailable
  727. in at least some configurations. In fact, it may be removed altogether.
  728. Most people will answer N.
  729. config UCLIBC_HAS_SIGNUM_MESSAGES
  730. bool "Include the signum message text in the library"
  731. default y
  732. help
  733. Answer Y if you want to include the signum message text in the
  734. library. This adds about 0.5K to the library, but enables strsignal()
  735. to generate text other than 'Unknown signal <number>'.
  736. Most people will answer Y.
  737. config UCLIBC_HAS_SYS_SIGLIST
  738. bool "Support sys_siglist[] (bsd-compat)"
  739. depends on UCLIBC_HAS_SIGNUM_MESSAGES
  740. default n
  741. help
  742. Answer Y if you want to support sys_siglist[].
  743. WARNING! In the future, support for sys_siglist[] may be unavailable
  744. in at least some configurations. In fact, it may be removed altogether.
  745. Most people will answer N.
  746. config UCLIBC_HAS_GETTEXT_AWARENESS
  747. bool "Include gettext awareness"
  748. depends on UCLIBC_HAS_LOCALE && UCLIBC_MJN3_ONLY
  749. default n
  750. help
  751. NOTE!!! Not yet integrated with strerror and strsignal. NOTE!!!
  752. Answer Y if you want to include weak stub gettext support and
  753. make the *strerror*() and strsignal() functions gettext-aware.
  754. Currently, to get functional gettext functionality you will need
  755. to use gnu gettext.
  756. Most people will answer N.
  757. config UCLIBC_HAS_GNU_GETOPT
  758. bool "Support gnu getopt"
  759. default y
  760. help
  761. Answer Y if you want to include full gnu getopt() instead of a
  762. (much smaller) SUSv3 compatible getopt().
  763. Most people will answer Y.
  764. endmenu
  765. menu "Big and Tall"
  766. config UCLIBC_HAS_REGEX
  767. bool "Regular Expression Support"
  768. default y
  769. help
  770. POSIX regular expression code is really big -- 27k all by itself.
  771. If you don't use regular expressions, turn this off and save space.
  772. Of course, if you only staticly link, leave this on, since it will
  773. only be included in your apps if you use regular expressions.
  774. config UCLIBC_HAS_WORDEXP
  775. bool "Support the wordexp() interface"
  776. default n
  777. help
  778. The SuSv3 wordexp() interface performs word expansions per the Shell
  779. and Utilities volume of IEEE Std 1003.1-2001, Section 2.6. It is
  780. intended for use by applications that want to implement all of the
  781. standard Bourne shell expansions on input data.
  782. This interface is rarely used, and very large. Unless you have a
  783. pressing need for wordexp(), you should probably answer N.
  784. config UCLIBC_HAS_FTW
  785. bool "Support the ftw() and nftw() interfaces"
  786. default n
  787. help
  788. The SuSv3 ftw() and nftw() interfaces are used to recursively descend
  789. directory paths while repeatedly calling a function.
  790. This interface is rarely used, and adds around 4.5k. Unless you have
  791. a pressing need for ftw() or nftw(), you should probably answer N.
  792. config UCLIBC_HAS_GLOB
  793. bool "Support the glob() interface"
  794. default y
  795. help
  796. The glob interface is somewhat large (weighing in at about 4k). It
  797. is used fairly often, but is an option since people wanting to go for
  798. absolute minimum size may wish to omit it.
  799. Most people will answer Y.
  800. endmenu
  801. menu "Library Installation Options"
  802. config SHARED_LIB_LOADER_PREFIX
  803. string "Shared library loader path"
  804. depends on BUILD_UCLIBC_LDSO
  805. default "$(DEVEL_PREFIX)/lib"
  806. help
  807. When using shared libraries, this path is the location where the
  808. shared library will be invoked. This value will be compiled into
  809. every binary compiled with uClibc.
  810. For a typical target system this should be set to "/lib", such that
  811. 'make install' will install /lib/ld-uClibc.so.0.
  812. BIG FAT WARNING:
  813. If you do not have a shared library loader with the correct name
  814. sitting in the directory this points to, your binaries will not
  815. run.
  816. config SYSTEM_LDSO
  817. string "System shared library loader"
  818. depends on HAVE_SHARED && !BUILD_UCLIBC_LDSO
  819. default "/lib/ld-linux.so.2"
  820. help
  821. If you are using shared libraries, but do not want/have a native
  822. uClibc shared library loader, please specify the name of your
  823. target system's shared library loader here...
  824. BIG FAT WARNING:
  825. If you do not have a shared library loader with the correct name
  826. sitting in the directory this points to, your binaries will not
  827. run.
  828. config RUNTIME_PREFIX
  829. string "uClibc runtime library directory"
  830. default "/usr/$(TARGET_ARCH)-linux-uclibc/"
  831. help
  832. RUNTIME_PREFIX is the directory into which the uClibc runtime
  833. libraries will be installed. The result will look something
  834. like the following:
  835. $(RUNTIME_PREFIX)/
  836. lib/ <contains all runtime libraries>
  837. usr/bin/ldd <the ldd utility program>
  838. sbin/ldconfig <the ldconfig utility program>
  839. This value is used by the 'make install' Makefile target. Since this
  840. directory is compiled into the shared library loader, you will need to
  841. recompile uClibc if you change this value...
  842. For a typical target system this should be set to "/", such that
  843. 'make install' will install /lib/libuClibc-<VERSION>.so
  844. config DEVEL_PREFIX
  845. string "uClibc development environment directory"
  846. default "/usr/$(TARGET_ARCH)-linux-uclibc/usr/"
  847. help
  848. DEVEL_PREFIX is the directory into which the uClibc development
  849. environment will be installed. The result will look something
  850. like the following:
  851. $(DEVEL_PREFIX)/
  852. lib/ <contains static libs>
  853. include/ <Where all the header files go>
  854. This value is used by the 'make install' Makefile target when
  855. installing a uClibc development environment.
  856. For a typical target system this should be set to "/usr", such that
  857. 'make install' will install /usr/include/<header files>.
  858. endmenu
  859. menu "uClibc security related options"
  860. config UCLIBC_SECURITY
  861. bool "Enable security options"
  862. default n
  863. config UCLIBC_BUILD_PIE
  864. bool "Build utilities as ET_DYN/PIE executables"
  865. depends on UCLIBC_SECURITY
  866. depends on HAVE_SHARED
  867. depends on TARGET_i386 || TARGET_powerpc || TARGET_mips || TARGET_frv
  868. select FORCE_SHAREABLE_TEXT_SEGMENTS if BUILD_UCLIBC_LDSO
  869. default y
  870. help
  871. If you answer Y here, ldd and iconv are built as ET_DYN/PIE executables.
  872. It requires gcc-3.4 and binutils-2.15 or later.
  873. More about ET_DYN/PIE binaries on <http://pax.grsecurity.net/> .
  874. WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so all
  875. libraries have to be built with -fPIC or -fpic, and all assembler
  876. functions must be written as position independent code (PIC).
  877. config UCLIBC_HAS_SSP
  878. bool "Support for propolice stack protection"
  879. depends on UCLIBC_SECURITY
  880. default n
  881. help
  882. Adds propolice protection to libc (__guard and __stack_smash_handler).
  883. More about it on <http://www.research.ibm.com/trl/projects/security/ssp> .
  884. To be able to use it, you'll also need a propolice patched gcc,
  885. supporting the -fstack-protector[-all] options. It is a specially patched
  886. gcc version, where __guard and __stack_smash_handler are removed from libgcc.
  887. Most people will answer N.
  888. choice
  889. prompt "Propolice protection blocking signal"
  890. depends on UCLIBC_HAS_SSP
  891. default PROPOLICE_BLOCK_ABRT if ! DODEBUG
  892. default PROPOLICE_BLOCK_SEGV if DODEBUG
  893. help
  894. "abort" use SIGABRT to block offending programs.
  895. This is the default implementation.
  896. "segfault" use SIGSEGV to block offending programs.
  897. Use this for debugging.
  898. "kill" use SIGKILL to block offending programs.
  899. Perhaps the best for security.
  900. If unsure, answer "abort".
  901. config PROPOLICE_BLOCK_ABRT
  902. bool "abort"
  903. config PROPOLICE_BLOCK_SEGV
  904. bool "segfault"
  905. config PROPOLICE_BLOCK_KILL
  906. bool "kill"
  907. endchoice
  908. config UCLIBC_BUILD_SSP
  909. bool "Build uClibc with propolice protection"
  910. depends on UCLIBC_SECURITY
  911. depends on UCLIBC_HAS_SSP
  912. default n
  913. help
  914. Build all libraries and executables with propolice protection enabled.
  915. config UCLIBC_BUILD_RELRO
  916. bool "Build uClibc with RELRO"
  917. depends on UCLIBC_SECURITY
  918. depends on BUILD_UCLIBC_LDSO
  919. default y
  920. help
  921. Build all libraries and executables with -z relro.
  922. config UCLIBC_BUILD_NOW
  923. bool "Build uClibc with NOW"
  924. depends on UCLIBC_SECURITY
  925. depends on BUILD_UCLIBC_LDSO
  926. default y
  927. help
  928. Build all libraries and executables with -z now.
  929. config UCLIBC_BUILD_NOEXECSTACK
  930. bool "Build uClibc with noexecstack marking"
  931. depends on UCLIBC_SECURITY
  932. default y
  933. help
  934. Mark all assembler files as noexecstack. This will result in marking
  935. all libraries and executables built against uClibc not requiring
  936. executable stack.
  937. endmenu
  938. menu "uClibc development/debugging options"
  939. config DODEBUG
  940. bool "Build uClibc with debugging symbols"
  941. default n
  942. help
  943. Say Y here if you wish to compile uClibc with debugging symbols.
  944. This will allow you to use a debugger to examine uClibc internals
  945. while applications are running. This increases the size of the
  946. library considerably and should only be used when doing development.
  947. If you are doing development and want to debug uClibc, answer Y.
  948. Otherwise, answer N.
  949. config DOASSERTS
  950. bool "Build uClibc with run-time assertion testing"
  951. default n
  952. help
  953. Say Y here to include runtime assertion tests.
  954. This enables runtime assertion testing in some code, which can
  955. increase the size of the library and incur runtime overhead.
  956. If you say N, then this testing will be disabled.
  957. config SUPPORT_LD_DEBUG
  958. bool "Build the shared library loader with debugging support"
  959. depends on BUILD_UCLIBC_LDSO
  960. default n
  961. help
  962. Answer Y here to enable all the extra code needed to debug the uClibc
  963. native shared library loader. The level of debugging noise that is
  964. generated depends on the LD_DEBUG environment variable... Just set
  965. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  966. debug your application. Diagnostic messages will then be printed to
  967. the stderr.
  968. For now these debugging tokens are available:
  969. detail provide more information for some options
  970. move display copy processing
  971. symbols display symbol table processing
  972. reloc display relocation processing; detail shows the relocation patch
  973. nofixups never fixes up jump relocations
  974. bindings displays the resolve processing (function calls); detail shows the relocation patch
  975. all Enable everything!
  976. The additional environment variable:
  977. LD_DEBUG_OUTPUT=file
  978. redirects the diagnostics to an output file created using
  979. the specified name and the process id as a suffix.
  980. An excellent start is simply:
  981. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  982. or to log everything to a file named 'logfile', try this
  983. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  984. If you are doing development and want to debug uClibc's shared library
  985. loader, answer Y. Mere mortals answer N.
  986. config SUPPORT_LD_DEBUG_EARLY
  987. bool "Build the shared library loader with early debugging support"
  988. depends on BUILD_UCLIBC_LDSO
  989. default n
  990. help
  991. Answer Y here to if you find the uClibc shared library loader is
  992. crashing or otherwise not working very early on. This is typical
  993. only when starting a new port when you haven't figured out how to
  994. properly get the values for argc, argv, environ, etc. This method
  995. allows a degree of visibility into the very early shared library
  996. loader initialization process. If you are doing development and want
  997. to debug the uClibc shared library loader early initialization,
  998. answer Y. Mere mortals answer N.
  999. config UCLIBC_MALLOC_DEBUGGING
  1000. bool "Build malloc with debugging support"
  1001. depends MALLOC
  1002. default n
  1003. help
  1004. Answer Y here to compile extra debugging support code into malloc.
  1005. Malloc debugging output may then be enabled at runtime using the
  1006. MALLOC_DEBUG environment variable.
  1007. The value of MALLOC_DEBUG should be an integer, which is interpreted as
  1008. a bitmask with the following bits:
  1009. 1 - do extra consistency checking
  1010. 2 - output messages for malloc/free calls and OS allocation calls
  1011. 4 - output messages for the `MMB' layer
  1012. 8 - output messages for internal malloc heap manipulation calls
  1013. Because this increases the size of malloc appreciably (due to strings
  1014. etc), you should say N unless you need to debug a malloc problem.
  1015. config UCLIBC_MJN3_ONLY
  1016. bool "Manuel's hidden warnings"
  1017. default n
  1018. help
  1019. Answer Y here to see all Manuel's personal notes, warnings, and todos.
  1020. Most people will answer N.
  1021. endmenu