Config.in 14 KB

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