Config.in 48 KB

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