Config.in 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see extra/config/Kconfig-language.txt
  4. #
  5. menu "General Library Settings"
  6. config DOPIC
  7. bool "Generate Position Independent Code (PIC)"
  8. default y
  9. depends !HAVE_NO_PIC
  10. help
  11. If you wish to build uClibc with support for shared libraries then
  12. answer Y here. If you only want to build uClibc as a static library,
  13. then answer N.
  14. config HAVE_SHARED
  15. bool "Enable support for shared libraries"
  16. depends on DOPIC
  17. default y
  18. help
  19. If you wish to build uClibc with support for shared libraries then
  20. answer Y here. If you only want to build uClibc as a static library,
  21. then answer N.
  22. config BUILD_UCLIBC_LDSO
  23. bool "Compile native shared library loader"
  24. depends on HAVE_SHARED
  25. default y
  26. help
  27. uClibc has a native shared library loader for some architectures.
  28. If you answer Y here, the uClibc native shared library loader will
  29. be built for your target architecture. If this option is available,
  30. to you, then you almost certainly want to answer Y.
  31. config LDSO_LDD_SUPPORT
  32. bool "Native shared library loader 'ldd' support"
  33. depends on BUILD_UCLIBC_LDSO
  34. default y
  35. help
  36. Enable this to enable all the code needed to support traditional ldd,
  37. which executes the shared library loader to resolve all dependancies
  38. and then provide a list of shared libraries that are required for an
  39. application to function. Disabling this option will makes uClibc's
  40. shared library loader a little bit smaller. Most people will answer Y.
  41. config UCLIBC_HAS_THREADS
  42. bool "POSIX Threading Support"
  43. default y
  44. help
  45. If you want to compile uClibc with pthread support, then answer Y.
  46. This will increase the size of uClibc by adding a bunch of locking
  47. to critical data structures, and adding extra code to ensure that
  48. functions are properly reentrant.
  49. If your applications require pthreads, answer Y.
  50. config UCLIBC_HAS_LFS
  51. bool "Large File Support"
  52. default y
  53. help
  54. If you wish to build uClibc with support for accessing large files
  55. (i.e. files greater then 2 GiB) then answer Y. Do not enable this
  56. if you are using an older Linux kernel (2.0.x) that lacks large file
  57. support. Enabling this option will increase the size of uClibc.
  58. choice
  59. prompt "Malloc Implementation"
  60. default "malloc-930716"
  61. help
  62. "malloc" use mmap for all allocations and so works very well on MMU-less
  63. systems that do not support the brk() system call. It is pretty smart
  64. about reusing already allocated memory, and minimizing memory wastage.
  65. "malloc-930716" is derived from libc-5.3.12 and uses the brk() system call
  66. for all memory allocations. This makes it very fast. It is also pretty
  67. smart about reusing already allocated memory, and minimizing memory wastage.
  68. Because this uses brk() it will not work on uClinux MMU-less systems.
  69. If unsure, answer "malloc".
  70. config MALLOC
  71. bool "malloc"
  72. config MALLOC_930716
  73. bool "malloc-930716"
  74. depends on UCLIBC_HAS_MMU
  75. endchoice
  76. config UCLIBC_DYNAMIC_ATEXIT
  77. bool "Dynamic atexit() Support"
  78. default y
  79. help
  80. When this option is enabled, uClibc will support an infinite number,
  81. of atexit() and on_exit() functions, limited only by your available
  82. memory. This can be important when uClibc is used with C++, since
  83. global destructors are implemented via atexit(), and it is quite
  84. possible to exceed the default number when this option is disabled.
  85. Enabling this option adds a few bytes, and more significantly makes
  86. atexit and on_exit depend on malloc, which can be bad when compiling
  87. static executables.
  88. Unless you use uClibc with C++, you should probably answer N.
  89. config HAS_SHADOW
  90. bool "Shadow Password Support"
  91. default y
  92. help
  93. Answer N if you do not need shadow password support.
  94. Most people will answer Y.
  95. config UCLIBC_HAS_REGEX
  96. bool "Regular Expression Support"
  97. default y
  98. help
  99. Posix regular expression code is really big -- 27k all by itself.
  100. If you don't use regular expressions, turn this off and save space.
  101. Of course, if you only staticly link, leave this on, since it will
  102. only be included in your apps if you use regular expressions.
  103. config UNIX98PTY_ONLY
  104. bool "Support only Unix 98 PTYs"
  105. default y
  106. help
  107. If you want to support only Unix 98 PTYs enable this. Some older
  108. applications may need this disabled. For most current programs,
  109. you can generally answer Y.
  110. config ASSUME_DEVPTS
  111. bool "Assume that /dev/pts is a devpts or devfs file system"
  112. default y
  113. help
  114. Enable this if /dev/pts is on a devpts or devfs filesystem. Both
  115. these filesystems automatically manage permissions on the /dev/pts
  116. devices. You may need to mount your devpts or devfs filesystem on
  117. /dev/pts for this to work.
  118. Most people should answer Y.
  119. endmenu
  120. menu "Networking Support"
  121. config UCLIBC_HAS_IPV6
  122. bool "IP version 6 Support"
  123. default n
  124. help
  125. If you want to include support for the next version of the Internet
  126. Protocol (IP version 6) then answer Y.
  127. Most people should answer N.
  128. config UCLIBC_HAS_RPC
  129. bool "Remote Procedute Call (RPC) support"
  130. default n
  131. help
  132. If you want to include RPC support, enable this. RPC is rarely used
  133. for anything except for the NFS filesystem. Unless you plan to use NFS,
  134. you can probably leave this set to N and save some space. If you need
  135. to use NFS then you should answer Y.
  136. config UCLIBC_HAS_FULL_RPC
  137. bool "Full RPC support"
  138. depends on UCLIBC_HAS_RPC
  139. default y if !HAVE_SHARED
  140. help
  141. Normally we enable just enough RPC support for things like rshd and
  142. nfs mounts to work. If you find you need the rest of the RPC stuff,
  143. then enable this option. Most people can safely answer N.
  144. endmenu
  145. menu "String and Stdio Support"
  146. config UCLIBC_HAS_WCHAR
  147. bool "Wide Character Support"
  148. default n
  149. help
  150. Answer Y to enable wide character support. This will make uClibc
  151. much larger.
  152. Most people will answer N.
  153. config UCLIBC_HAS_LOCALE
  154. bool "Locale Support (experimental/incomplete)"
  155. depends on UCLIBC_HAS_WCHAR
  156. default n
  157. help
  158. Answer Y to enable locale support. This will make uClibc much
  159. bigger. uClibc's locale support is still under development, and
  160. should be finished in the next several weeks (November 2002).
  161. Most people will wisely answer N.
  162. config USE_OLD_VFPRINTF
  163. bool "Use the old vfprintf implementation"
  164. default n
  165. help
  166. Set to true to use the old vfprintf instead of the new. This is roughly
  167. C89 compliant, but doesn't deal with qualifiers on %n and doesn't deal with
  168. %h correctly or %hh at all on the interger conversions. But on i386 it is
  169. over 1.5k smaller than the new code. Of course, the new code fixes the
  170. above mentioned deficiencies and adds custom specifier support similar to
  171. glibc, as well as handling positional args. This will be rewritten at some
  172. point to bring it to full C89 standards compliance.
  173. Most people will answer N.
  174. endmenu
  175. menu "Library Installation Options"
  176. config SHARED_LIB_LOADER_PATH
  177. string "Shared library loader path"
  178. depends on BUILD_UCLIBC_LDSO
  179. default "$(DEVEL_PREFIX)/lib"
  180. help
  181. When using shared libraries, this path is the location where the
  182. shared library will be invoked. This value will be compiled into
  183. every binary compiled with uClibc.
  184. BIG FAT WARNING:
  185. If you do not have a shared library loader with the correct name
  186. sitting in the directory this points to, your binaries will not
  187. run.
  188. config SYSTEM_LDSO
  189. string "System shared library loader"
  190. depends on HAVE_SHARED && !BUILD_UCLIBC_LDSO
  191. default "/lib/ld-linux.so.2"
  192. help
  193. If you are using shared libraries, but do not want/have a native
  194. uClibc shared library loader, please specify the name of your
  195. target system's shared library loader here...
  196. BIG FAT WARNING:
  197. If you do not have a shared library loader with the correct name
  198. sitting in the directory this points to, your binaries will not
  199. run.
  200. config DEVEL_PREFIX
  201. string "uClibc development environment directory"
  202. default "/usr/$(TARGET_ARCH)-linux-uclibc"
  203. help
  204. DEVEL_PREFIX is the directory into which the uClibc development
  205. environment will be installed. The result will look something
  206. like the following:
  207. $(DEVEL_PREFIX)/
  208. lib/ <contains all runtime and static libs>
  209. include/ <Where all the header files go>
  210. This value is used by the 'make install' Makefile target. Since this
  211. directory is compiled into the uclibc cross compiler spoofer, you
  212. have to recompile uClibc if you change this value...
  213. config SYSTEM_DEVEL_PREFIX
  214. string "uClibc development environment system directory"
  215. default "$(DEVEL_PREFIX)"
  216. help
  217. SYSTEM_DEVEL_PREFIX is the directory prefix used when installing
  218. bin/arch-uclibc-gcc, bin/arch-uclibc-ld, etc. This is only used by
  219. the 'make install' target, and is not compiled into anything. This
  220. defaults to $(DEVEL_PREFIX)/usr, but makers of .rpms and .debs will
  221. want to set this to "/usr" instead.
  222. config DEVEL_TOOL_PREFIX
  223. string "uClibc development environment tool directory"
  224. default "$(DEVEL_PREFIX)/usr"
  225. help
  226. DEVEL_TOOL_PREFIX is the directory prefix used when installing
  227. bin/gcc, bin/ld, etc. This is only used by the 'make install'
  228. target, and is not compiled into anything. This defaults to
  229. $(DEVEL_PREFIX)/usr, but makers of .rpms and .debs may want to
  230. set this to something else.
  231. endmenu
  232. menu "uClibc hacking options"
  233. config DODEBUG
  234. bool "Build uClibc with debugging symbols"
  235. default n
  236. help
  237. Say Y here if you wish to compile uClibc with debugging symbols.
  238. This will allow you to use a debugger to examine uClibc internals
  239. while applications are running. This increases the size of the
  240. library considerably and should only be used when doing development.
  241. If you are doing development and want to debug uClibc, answer Y.
  242. Otherwise, answer N.
  243. config DOASSERTS
  244. bool "Build uClibc with run-time assertion testing"
  245. default n
  246. help
  247. Say Y here to include runtime assertion tests.
  248. This enables runtime assertion testing in some code, which can
  249. increase the size of the library and incur runtime overhead.
  250. If you say N, then this testing will be disabled.
  251. config SUPPORT_LD_DEBUG
  252. bool "Build the shared library loader with debugging support"
  253. depends on BUILD_UCLIBC_LDSO
  254. default n
  255. help
  256. Answer Y here to enable all the extra code needed to debug the uClibc
  257. native shared library loader. The level of debugging noise that is
  258. generated depends on the LD_DEBUG environment variable... Just set
  259. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  260. debug your application. Diagnostic messages will then be printed to
  261. the stderr.
  262. For now these debugging tokens are available:
  263. detail provide more information for some options
  264. move display copy processings
  265. symbols display symbol table processing
  266. reloc display relocation processing; detail shows the relocation patch
  267. nofixups never fixes up jump relocations
  268. bindings displays the resolve processing (function calls); detail shows the relocation patch
  269. all Enable everything!
  270. The additional environment variable:
  271. LD_DEBUG_OUTPUT=file
  272. redirects the diagnostics to an output file created using
  273. the specified name and the process id as a suffix.
  274. An excellent start is simply:
  275. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  276. or to log everything to a file named 'logfile', try this
  277. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  278. If you are doing development and want to debug uClibc's shared library
  279. loader, answer Y. Mere mortals answer N.
  280. config SUPPORT_LD_DEBUG_EARLY
  281. bool "Build the shared library loader with early debugging support"
  282. depends on BUILD_UCLIBC_LDSO
  283. default n
  284. help
  285. Answer Y here to if you find the uClibc shared library loader is
  286. crashing or otherwise not working very early on. This is typical
  287. only when starting a new port when you havn't figured out how to
  288. properly get the values for argc, argv, environ, etc. This method
  289. allows a degree of visibility into the very early shared library
  290. loader initialization process. If you are doing development and want
  291. to debug the uClibc shared library loader early initialization,
  292. answer Y. Mere mortals answer N.
  293. endmenu