Config.in 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see extra/config/Kconfig-language.txt
  4. #
  5. config HAVE_DOT_CONFIG
  6. bool
  7. default y
  8. menu "General Library Settings"
  9. config DOPIC
  10. bool "Generate Position Independent Code (PIC)"
  11. default y
  12. depends !HAVE_NO_PIC
  13. help
  14. If you wish to build uClibc with support for shared libraries then
  15. answer Y here. If you only want to build uClibc as a static library,
  16. then answer N.
  17. config HAVE_SHARED
  18. bool "Enable support for shared libraries"
  19. depends on DOPIC
  20. default y
  21. help
  22. If you wish to build uClibc with support for shared libraries then
  23. answer Y here. If you only want to build uClibc as a static library,
  24. then answer N.
  25. config ADD_LIBGCC_FUNCTIONS
  26. bool "Add unresolved libgcc symbols to uClibc"
  27. depends on HAVE_SHARED
  28. default n
  29. help
  30. If you answer Y here, all unresolved functions provided by the libgcc
  31. library that are used by uClibc will be added directly into the
  32. uClibc library. If your gcc compiler only provides a static libgcc
  33. library, then enabling this option can reduce the size of your
  34. binaries by preventing these functions from being staticly linked
  35. into every binary. If you have compiled uClibc as PIC code, one
  36. potential size effect of this option is that you may end up adding
  37. non-PIC libgcc code into your shared uClibc library, resulting in a
  38. non shareable text segment (thereby wasting a bunch of ram). If your
  39. compiler supports a shared libgcc library, you should certainly leave
  40. this option disabled. Regardless, the safest answer is N.
  41. config BUILD_UCLIBC_LDSO
  42. bool "Compile native shared library loader"
  43. depends on HAVE_SHARED
  44. default y
  45. help
  46. uClibc has a native shared library loader for some architectures.
  47. If you answer Y here, the uClibc native shared library loader will
  48. be built for your target architecture. If this option is available,
  49. to you, then you almost certainly want to answer Y.
  50. config FORCE_SHAREABLE_TEXT_SEGMENTS
  51. bool "Only load shared libraries which can share their text segment"
  52. depends on BUILD_UCLIBC_LDSO && UCLIBC_COMPLETELY_PIC && !ADD_LIBGCC_SYMBOLS
  53. default n
  54. help
  55. If you answer Y here, the uClibc native shared library loader will
  56. only load shared libraries, which do not need to modify any non-writable
  57. segments. These libraries haven't set the DT_TEXTREL tag in the dynamic
  58. section (==> objdump). So all your libraries must be compiled with
  59. -fPIC or -fpic, and all assembler function must be written as position
  60. independent code (PIC).
  61. Enabling this option will makes uClibc's shared library loader a
  62. little bit smaller and guarantee that no memory will be wasted by badly
  63. coded shared libraries.
  64. config LDSO_LDD_SUPPORT
  65. bool "Native shared library loader 'ldd' support"
  66. depends on BUILD_UCLIBC_LDSO
  67. default y
  68. help
  69. Enable this to enable all the code needed to support traditional ldd,
  70. which executes the shared library loader to resolve all dependencies
  71. and then provide a list of shared libraries that are required for an
  72. application to function. Disabling this option will makes uClibc's
  73. shared library loader a little bit smaller. Most people will answer Y.
  74. config UCLIBC_CTOR_DTOR
  75. bool "Support global constructors and destructors"
  76. default y
  77. help
  78. If you wish to build uClibc with support for global constructor
  79. (ctor) and global destructor (dtor) support, then answer Y here.
  80. When ctor/dtor support is enabled, binaries linked with uClibc must
  81. also be linked with crtbegin.o and crtend.o which are provided by gcc
  82. (the "*startfile:" and "*endfile:" settings in your gcc specs file
  83. may need to be adjusted to include these files). This support will
  84. also add a small amount of additional size to each binary compiled vs
  85. uClibc. If you will be using uClibc with C++, or if you need the gcc
  86. __attribute__((constructor)) and __attribute__((destructor)) to work,
  87. then you definitely want to answer Y here. If you don't need ctors
  88. or dtors and want your binaries to be as small as possible, then
  89. answer N.
  90. config UCLIBC_PROFILING
  91. bool "Support gprof profiling"
  92. default y
  93. help
  94. If you wish to build uClibc with support for application profiling
  95. using the gprof tool, then you should enable this feature. Then in
  96. addition to building uClibc with profiling support, you will also
  97. need to recompile all your shared libraries with the profiling
  98. enabled version of uClibc. To add profiling support to your
  99. applications, you must compile things using the gcc options
  100. "-fprofile-arcs -pg". Then when you run your applications, a
  101. gmon.out file will be generated which can then be analyzed by
  102. 'gprof'.
  103. These exist a number of less invasive alternatives that do not
  104. require your to specially instrument your application, and recompile
  105. and relink everything.
  106. Many people have had good results using the combination of Valgrind
  107. to generate profiling information and KCachegrind for analysis:
  108. http://developer.kde.org/~sewardj/
  109. http://kcachegrind.sourceforge.net/
  110. The OProfile system-wide profiler is another alternative:
  111. http://oprofile.sourceforge.net/
  112. Prospect is another alternative based on OProfile:
  113. http://prospect.sourceforge.net/
  114. And the Linux Trace Toolkit (LTT) is also a fine tool:
  115. http://www.opersys.com/LTT/
  116. If none of these tools do what you need, you can of course enable
  117. this option, rebuild everything, and use 'gprof'. There is both a
  118. size and performance penelty to profiling your applications this way,
  119. so most people should answer N.
  120. config UCLIBC_HAS_THREADS
  121. bool "POSIX Threading Support"
  122. default y
  123. help
  124. If you want to compile uClibc with pthread support, then answer Y.
  125. This will increase the size of uClibc by adding a bunch of locking
  126. to critical data structures, and adding extra code to ensure that
  127. functions are properly reentrant.
  128. If your applications require pthreads, answer Y.
  129. config PTHREADS_DEBUG_SUPPORT
  130. bool "Build pthreads debugging support"
  131. default n
  132. depends on UCLIBC_HAS_THREADS
  133. help
  134. Say Y here if you wish to be able to debug applications that use
  135. uClibc's pthreads library. By enabling this option, a library
  136. named libthread_db will be built. This library will be dlopen()'d
  137. by gdb and will allow gdb to debug the threads in your application.
  138. IMPORTANT NOTE! Because gdb must dlopen() the libthread_db library,
  139. you must compile gdb with uClibc in order for pthread debugging to
  140. work properly.
  141. If you are doing development and want to debug applications using
  142. uClibc's pthread library, answer Y. Otherwise, answer N.
  143. config UCLIBC_HAS_LFS
  144. bool "Large File Support"
  145. default y
  146. help
  147. If you wish to build uClibc with support for accessing large files
  148. (i.e. files greater then 2 GiB) then answer Y. Do not enable this
  149. if you are using an older Linux kernel (2.0.x) that lacks large file
  150. support. Enabling this option will increase the size of uClibc.
  151. choice
  152. prompt "Malloc Implementation"
  153. default "malloc-930716"
  154. help
  155. "malloc" use mmap for all allocations and so works very well on MMU-less
  156. systems that do not support the brk() system call. It is pretty smart
  157. about reusing already allocated memory, and minimizing memory wastage.
  158. "malloc-930716" is derived from libc-5.3.12 and uses the brk() system call
  159. for all memory allocations. This makes it very fast. It is also pretty
  160. smart about reusing already allocated memory, and minimizing memory wastage.
  161. Because this uses brk() it will not work on uClinux MMU-less systems.
  162. If unsure, answer "malloc".
  163. config MALLOC
  164. bool "malloc"
  165. config MALLOC_930716
  166. bool "malloc-930716"
  167. depends on UCLIBC_HAS_MMU
  168. endchoice
  169. config UCLIBC_DYNAMIC_ATEXIT
  170. bool "Dynamic atexit() Support"
  171. default y
  172. help
  173. When this option is enabled, uClibc will support an infinite number,
  174. of atexit() and on_exit() functions, limited only by your available
  175. memory. This can be important when uClibc is used with C++, since
  176. global destructors are implemented via atexit(), and it is quite
  177. possible to exceed the default number when this option is disabled.
  178. Enabling this option adds a few bytes, and more significantly makes
  179. atexit and on_exit depend on malloc, which can be bad when compiling
  180. static executables.
  181. Unless you use uClibc with C++, you should probably answer N.
  182. config HAS_SHADOW
  183. bool "Shadow Password Support"
  184. default y
  185. help
  186. Answer N if you do not need shadow password support.
  187. Most people will answer Y.
  188. config UCLIBC_HAS_REGEX
  189. bool "Regular Expression Support"
  190. default y
  191. help
  192. POSIX regular expression code is really big -- 27k all by itself.
  193. If you don't use regular expressions, turn this off and save space.
  194. Of course, if you only staticly link, leave this on, since it will
  195. only be included in your apps if you use regular expressions.
  196. config UNIX98PTY_ONLY
  197. bool "Support only Unix 98 PTYs"
  198. default y
  199. help
  200. If you want to support only Unix 98 PTYs enable this. Some older
  201. applications may need this disabled. For most current programs,
  202. you can generally answer Y.
  203. config ASSUME_DEVPTS
  204. bool "Assume that /dev/pts is a devpts or devfs file system"
  205. default y
  206. help
  207. Enable this if /dev/pts is on a devpts or devfs filesystem. Both
  208. these filesystems automatically manage permissions on the /dev/pts
  209. devices. You may need to mount your devpts or devfs filesystem on
  210. /dev/pts for this to work.
  211. Most people should answer Y.
  212. config UCLIBC_HAS_TM_EXTENSIONS
  213. bool "Support 'struct tm' timezone extension fields"
  214. default y
  215. help
  216. Enabling this option adds fields to 'struct tm' in time.h for
  217. tracking the number of seconds east of UTC, and an abbreviation for
  218. the current timezone. These fields are not specified by the SuSv3
  219. standard, but they are commonly used in both GNU and BSD application
  220. code.
  221. To strictly follow the SuSv3 standard, leave this disabled.
  222. Most people will probably want to answer Y.
  223. endmenu
  224. menu "Networking Support"
  225. config UCLIBC_HAS_IPV6
  226. bool "IP version 6 Support"
  227. default n
  228. help
  229. If you want to include support for the next version of the Internet
  230. Protocol (IP version 6) then answer Y.
  231. Most people should answer N.
  232. config UCLIBC_HAS_RPC
  233. bool "Remote Procedure Call (RPC) support"
  234. default n
  235. help
  236. If you want to include RPC support, enable this. RPC is rarely used
  237. for anything except for the NFS filesystem. Unless you plan to use NFS,
  238. you can probably leave this set to N and save some space. If you need
  239. to use NFS then you should answer Y.
  240. config UCLIBC_HAS_FULL_RPC
  241. bool "Full RPC support"
  242. depends on UCLIBC_HAS_RPC
  243. default y if !HAVE_SHARED
  244. help
  245. Normally we enable just enough RPC support for things like rshd and
  246. nfs mounts to work. If you find you need the rest of the RPC stuff,
  247. then enable this option. Most people can safely answer N.
  248. endmenu
  249. menu "String and Stdio Support"
  250. config UCLIBC_HAS_WCHAR
  251. bool "Wide Character Support"
  252. default n
  253. help
  254. Answer Y to enable wide character support. This will make uClibc
  255. much larger.
  256. Most people will answer N.
  257. config UCLIBC_HAS_LOCALE
  258. bool "Locale Support (experimental/incomplete)"
  259. depends on UCLIBC_HAS_WCHAR
  260. default n
  261. help
  262. Answer Y to enable locale support. This will make uClibc much
  263. bigger. uClibc's locale support is still under development, and
  264. should be finished in the next several weeks (November 2002).
  265. Most people will wisely answer N.
  266. config USE_OLD_VFPRINTF
  267. bool "Use the old vfprintf implementation"
  268. default n
  269. help
  270. Set to true to use the old vfprintf instead of the new. This is roughly
  271. C89 compliant, but doesn't deal with qualifiers on %n and doesn't deal with
  272. %h correctly or %hh at all on the integer conversions. But on i386 it is
  273. over 1.5k smaller than the new code. Of course, the new code fixes the
  274. above mentioned deficiencies and adds custom specifier support similar to
  275. glibc, as well as handling positional args. This will be rewritten at some
  276. point to bring it to full C89 standards compliance.
  277. Most people will answer N.
  278. endmenu
  279. menu "Library Installation Options"
  280. config SHARED_LIB_LOADER_PATH
  281. string "Shared library loader path"
  282. depends on BUILD_UCLIBC_LDSO
  283. default "$(DEVEL_PREFIX)/lib"
  284. help
  285. When using shared libraries, this path is the location where the
  286. shared library will be invoked. This value will be compiled into
  287. every binary compiled with uClibc.
  288. BIG FAT WARNING:
  289. If you do not have a shared library loader with the correct name
  290. sitting in the directory this points to, your binaries will not
  291. run.
  292. config SYSTEM_LDSO
  293. string "System shared library loader"
  294. depends on HAVE_SHARED && !BUILD_UCLIBC_LDSO
  295. default "/lib/ld-linux.so.2"
  296. help
  297. If you are using shared libraries, but do not want/have a native
  298. uClibc shared library loader, please specify the name of your
  299. target system's shared library loader here...
  300. BIG FAT WARNING:
  301. If you do not have a shared library loader with the correct name
  302. sitting in the directory this points to, your binaries will not
  303. run.
  304. config DEVEL_PREFIX
  305. string "uClibc development environment directory"
  306. default "/usr/$(TARGET_ARCH)-linux-uclibc"
  307. help
  308. DEVEL_PREFIX is the directory into which the uClibc development
  309. environment will be installed. The result will look something
  310. like the following:
  311. $(DEVEL_PREFIX)/
  312. lib/ <contains all runtime and static libs>
  313. include/ <Where all the header files go>
  314. This value is used by the 'make install' Makefile target. Since this
  315. directory is compiled into the uclibc cross compiler spoofer, you
  316. have to recompile uClibc if you change this value...
  317. config SYSTEM_DEVEL_PREFIX
  318. string "uClibc development environment system directory"
  319. default "$(DEVEL_PREFIX)"
  320. help
  321. SYSTEM_DEVEL_PREFIX is the directory prefix used when installing
  322. bin/arch-uclibc-gcc, bin/arch-uclibc-ld, etc. This is only used by
  323. the 'make install' target, and is not compiled into anything. This
  324. defaults to $(DEVEL_PREFIX)/usr, but makers of .rpms and .debs will
  325. want to set this to "/usr" instead.
  326. config DEVEL_TOOL_PREFIX
  327. string "uClibc development environment tool directory"
  328. default "$(DEVEL_PREFIX)/usr"
  329. help
  330. DEVEL_TOOL_PREFIX is the directory prefix used when installing
  331. bin/gcc, bin/ld, etc. This is only used by the 'make install'
  332. target, and is not compiled into anything. This defaults to
  333. $(DEVEL_PREFIX)/usr, but makers of .rpms and .debs may want to
  334. set this to something else.
  335. endmenu
  336. menu "uClibc hacking options"
  337. config DODEBUG
  338. bool "Build uClibc with debugging symbols"
  339. default n
  340. help
  341. Say Y here if you wish to compile uClibc with debugging symbols.
  342. This will allow you to use a debugger to examine uClibc internals
  343. while applications are running. This increases the size of the
  344. library considerably and should only be used when doing development.
  345. If you are doing development and want to debug uClibc, answer Y.
  346. Otherwise, answer N.
  347. config DOASSERTS
  348. bool "Build uClibc with run-time assertion testing"
  349. default n
  350. help
  351. Say Y here to include runtime assertion tests.
  352. This enables runtime assertion testing in some code, which can
  353. increase the size of the library and incur runtime overhead.
  354. If you say N, then this testing will be disabled.
  355. config SUPPORT_LD_DEBUG
  356. bool "Build the shared library loader with debugging support"
  357. depends on BUILD_UCLIBC_LDSO
  358. default n
  359. help
  360. Answer Y here to enable all the extra code needed to debug the uClibc
  361. native shared library loader. The level of debugging noise that is
  362. generated depends on the LD_DEBUG environment variable... Just set
  363. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  364. debug your application. Diagnostic messages will then be printed to
  365. the stderr.
  366. For now these debugging tokens are available:
  367. detail provide more information for some options
  368. move display copy processing
  369. symbols display symbol table processing
  370. reloc display relocation processing; detail shows the relocation patch
  371. nofixups never fixes up jump relocations
  372. bindings displays the resolve processing (function calls); detail shows the relocation patch
  373. all Enable everything!
  374. The additional environment variable:
  375. LD_DEBUG_OUTPUT=file
  376. redirects the diagnostics to an output file created using
  377. the specified name and the process id as a suffix.
  378. An excellent start is simply:
  379. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  380. or to log everything to a file named 'logfile', try this
  381. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  382. If you are doing development and want to debug uClibc's shared library
  383. loader, answer Y. Mere mortals answer N.
  384. config SUPPORT_LD_DEBUG_EARLY
  385. bool "Build the shared library loader with early debugging support"
  386. depends on BUILD_UCLIBC_LDSO
  387. default n
  388. help
  389. Answer Y here to if you find the uClibc shared library loader is
  390. crashing or otherwise not working very early on. This is typical
  391. only when starting a new port when you haven't figured out how to
  392. properly get the values for argc, argv, environ, etc. This method
  393. allows a degree of visibility into the very early shared library
  394. loader initialization process. If you are doing development and want
  395. to debug the uClibc shared library loader early initialization,
  396. answer Y. Mere mortals answer N.
  397. config UCLIBC_MALLOC_DEBUGGING
  398. bool "Build malloc with debugging support"
  399. depends MALLOC
  400. default n
  401. help
  402. Answer Y here to compile extra debugging support code into malloc.
  403. Malloc debugging output may then be enabled at runtime using
  404. the MALLOC_DEBUG environment variable. Because this increases
  405. the size of malloc appreciably (due to strings etc), you
  406. should say N unless you need to debug a malloc problem.
  407. endmenu