Config.in 46 KB

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