Config.in 50 KB

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