Config.in 49 KB

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