Config.in 49 KB

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