Config.in 48 KB

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