Config.in 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593
  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 returns 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. depends on UCLIBC_HAS_PROGRAM_INVOCATION_NAME
  401. help
  402. Some packages (like openssh) like to peek into internal libc
  403. symbols to make their output a bit more user friendly.
  404. At startup, __progname is automatically set up based on the
  405. value of ARGV[0].
  406. If unsure, just answer N.
  407. config UNIX98PTY_ONLY
  408. bool "Support only Unix 98 PTYs"
  409. default y
  410. help
  411. If you want to support only Unix 98 PTYs enable this. Some older
  412. applications may need this disabled. For most current programs,
  413. you can generally answer Y.
  414. config ASSUME_DEVPTS
  415. bool "Assume that /dev/pts is a devpts or devfs file system"
  416. default y
  417. help
  418. Enable this if /dev/pts is on a devpts or devfs filesystem. Both
  419. these filesystems automatically manage permissions on the /dev/pts
  420. devices. You may need to mount your devpts or devfs filesystem on
  421. /dev/pts for this to work.
  422. Most people should answer Y.
  423. config UCLIBC_HAS_TM_EXTENSIONS
  424. bool "Support 'struct tm' timezone extension fields"
  425. default y
  426. help
  427. Enabling this option adds fields to 'struct tm' in time.h for
  428. tracking the number of seconds east of UTC, and an abbreviation for
  429. the current timezone. These fields are not specified by the SuSv3
  430. standard, but they are commonly used in both GNU and BSD application
  431. code.
  432. To strictly follow the SuSv3 standard, leave this disabled.
  433. Most people will probably want to answer Y.
  434. config UCLIBC_HAS_TZ_CACHING
  435. bool "Enable caching of the last valid timezone 'TZ' string"
  436. default y
  437. help
  438. Answer Y to enable caching of the last valid 'TZ' string describing
  439. the timezone setting. This allows a quick string compare to avoid
  440. repeated parsing of unchanged 'TZ' strings when tzset() is called.
  441. Most people will answer Y.
  442. config UCLIBC_HAS_TZ_FILE
  443. bool "Enable '/etc/TZ' file support to set a default timezone (uClibc-specific)"
  444. default y
  445. help
  446. Answer Y to enable the setting of a default timezone for uClibc.
  447. Ordinarily, uClibc gets the timezone information exclusively from the
  448. 'TZ' environment variable. In particular, there is no support for
  449. the zoneinfo directory tree or the /etc/timezone file used by glibc.
  450. With this option enabled, uClibc will use the value stored in the
  451. file '/etc/TZ' (default path) to obtain timezone information if the
  452. 'TZ' environment variable is missing or has an invalid value. The
  453. file consists of a single line (newline required) of text describing
  454. the timezone in the format specified for the TZ environment variable.
  455. Simply doing 'echo CST6CDT > /etc/TZ' is enough to create a valid file.
  456. See
  457. http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html
  458. for details on valid settings of 'TZ'.
  459. Most people will answer Y.
  460. config UCLIBC_HAS_TZ_FILE_READ_MANY
  461. bool "Repeatedly read the '/etc/TZ' file"
  462. depends on UCLIBC_HAS_TZ_FILE
  463. default y
  464. help
  465. Answer Y to enable repeated reading of the '/etc/TZ' file even after
  466. a valid value has been read. This incurs the overhead of an open/read/close
  467. for each tzset() call (explicit or implied). However, setting this
  468. will allows applications to update their timezone information if the contents
  469. of the file change.
  470. Most people will answer Y.
  471. config UCLIBC_TZ_FILE_PATH
  472. string "Path to the 'TZ' file for setting the global timezone"
  473. depends on UCLIBC_HAS_TZ_FILE
  474. default "/etc/TZ"
  475. help
  476. This is the path to the 'TZ' file.
  477. Most people will use the default of '/etc/TZ'.
  478. endmenu
  479. menu "Advanced Library Settings"
  480. config UCLIBC_PWD_BUFFER_SIZE
  481. int "Buffer size for getpwnam() and friends"
  482. default 256
  483. range 12 1024
  484. help
  485. This sets the value of the buffer size for getpwnam() and friends.
  486. By default, this is 256. (For reference, glibc uses 1024).
  487. The value can be found using sysconf() with the _SC_GETPW_R_SIZE_MAX
  488. parameter.
  489. config UCLIBC_GRP_BUFFER_SIZE
  490. int "Buffer size for getgrnam() and friends"
  491. default 256
  492. range 256 1024
  493. help
  494. This sets the value of the buffer size for getgrnam() and friends.
  495. By default, this is 256. (For reference, glibc uses 1024).
  496. The value can be found using sysconf() with the _SC_GETGR_R_SIZE_MAX
  497. parameter.
  498. endmenu
  499. menu "Networking Support"
  500. config UCLIBC_HAS_IPV6
  501. bool "IP version 6 Support"
  502. default n
  503. help
  504. If you want to include support for the next version of the Internet
  505. Protocol (IP version 6) then answer Y.
  506. Most people should answer N.
  507. config UCLIBC_HAS_RPC
  508. bool "Remote Procedure Call (RPC) support"
  509. default n
  510. help
  511. If you want to include RPC support, enable this. RPC is rarely used
  512. for anything except for the NFS filesystem. Unless you plan to use NFS,
  513. you can probably leave this set to N and save some space. If you need
  514. to use NFS then you should answer Y.
  515. config UCLIBC_HAS_FULL_RPC
  516. bool "Full RPC support"
  517. depends on UCLIBC_HAS_RPC
  518. default y if !HAVE_SHARED
  519. help
  520. Normally we enable just enough RPC support for things like rshd and
  521. nfs mounts to work. If you find you need the rest of the RPC stuff,
  522. then enable this option. Most people can safely answer N.
  523. config UCLIBC_HAS_REENTRANT_RPC
  524. bool "Reentrant RPC support"
  525. depends on UCLIBC_HAS_RPC
  526. default y if !HAVE_SHARED
  527. help
  528. Most packages utilize the normal (non-reentrant) RPC functions, but
  529. some (like exportfs from nfs-utils) need these reentrant versions.
  530. Most people can safely answer N.
  531. config UCLIBC_USE_NETLINK
  532. bool "Use netlink to query interfaces"
  533. default n
  534. help
  535. In newer versions of Linux (2.4.17+), support was added for querying
  536. network device information via netlink rather than the old style
  537. ioctl's. Most of the time, the older ioctl style is sufficient (and
  538. it is smaller than netlink), but if you find that not all of your
  539. devices are being returned by the if_nameindex() function, you will
  540. have to use the netlink implementation.
  541. Most people can safely answer N.
  542. config UCLIBC_HAS_BSD_RES_CLOSE
  543. bool "Support res_close() (bsd-compat)"
  544. default n
  545. help
  546. Answer Y if you desperately want to support BSD compatibility in
  547. the network code.
  548. Most people will say N.
  549. endmenu
  550. menu "String and Stdio Support"
  551. config UCLIBC_HAS_STRING_GENERIC_OPT
  552. bool "Use glibc generic string functions"
  553. default y
  554. help
  555. Answer Y to use the (tweaked) glibc generic string functions.
  556. In general, they are faster (but 3-5K larger) than the base
  557. uClibc string functions which are optimized solely for size.
  558. Many people will answer Y.
  559. config UCLIBC_HAS_STRING_ARCH_OPT
  560. bool "Use arch-specific string functions"
  561. default y
  562. help
  563. Answer Y to use the arch-specific string functions instead of the
  564. base uClibc versions, which are optimized exclusively for size.
  565. Most people will answer Y, as this has been default behavior
  566. for some time.
  567. config UCLIBC_HAS_CTYPE_TABLES
  568. bool "Use Table Versions Of 'ctype.h' Functions."
  569. default y
  570. help
  571. Answer Y to use table versions of the 'ctype.h' functions.
  572. While the non-table versions are often smaller when building
  573. statically linked apps, they work only in stub locale mode.
  574. Most people will answer Y.
  575. config UCLIBC_HAS_CTYPE_SIGNED
  576. bool "Support Signed Characters In 'ctype.h' Functions."
  577. depends UCLIBC_HAS_CTYPE_TABLES
  578. default y
  579. help
  580. Answer Y to enable support for passing signed char values to
  581. the 'ctype.h' functions. ANSI/ISO C99 and SUSv3 specify that
  582. these functions are only defined for unsigned char values and
  583. EOF. However, glibc allows negative signed char values as well
  584. in order to support 'broken old programs'.
  585. Most people will answer Y.
  586. choice
  587. prompt "ctype argument checking"
  588. depends UCLIBC_HAS_CTYPE_TABLES
  589. default UCLIBC_HAS_CTYPE_UNSAFE
  590. help
  591. Please select the invalid arg behavior you want for the 'ctype' functions.
  592. The 'ctype' functions are now implemented using table lookups, with
  593. the arg being the index. This can result in incorrect memory accesses
  594. or even segfaults for args outside of the allowed range.
  595. NOTE: This only affects the 'ctype' _functions_. It does not affect
  596. the macro implementations.
  597. config UCLIBC_HAS_CTYPE_UNSAFE
  598. bool "Do not check -- unsafe"
  599. config UCLIBC_HAS_CTYPE_CHECKED
  600. bool "Detect and handle appropriately"
  601. config UCLIBC_HAS_CTYPE_ENFORCED
  602. bool "Issue a diagnostic and abort()"
  603. endchoice
  604. config UCLIBC_HAS_WCHAR
  605. bool "Wide Character Support"
  606. default n
  607. help
  608. Answer Y to enable wide character support. This will make uClibc
  609. much larger. It is also currently required for locale support.
  610. Most people will answer N.
  611. config UCLIBC_HAS_LOCALE
  612. bool "Locale Support"
  613. select UCLIBC_HAS_WCHAR
  614. select UCLIBC_HAS_CTYPE_TABLES
  615. default n
  616. help
  617. uClibc now has full ANSI/ISO C99 locale support (except for
  618. wcsftime() and collating items in regex). Be aware that enabling
  619. this option will make uClibc much larger.
  620. Enabling UCLIBC_HAS_LOCALE with the default set of supported locales
  621. (169 UTF-8 locales, and 144 locales for other codesets) will enlarge
  622. uClibc by around 300k. You can reduce this size by building your own
  623. custom set of locate data (see extra/locale/LOCALES for details).
  624. uClibc's locale support is still under development. For example,
  625. codesets using shift states are not currently supported. Support is
  626. planned in the next iteration of locale support.
  627. Answer Y to enable locale support. Most people will answer N.
  628. config UCLIBC_PREGENERATED_LOCALE_DATA
  629. bool "Use Pre-generated Locale Data"
  630. depends on UCLIBC_HAS_LOCALE
  631. default n
  632. help
  633. If you are selective and only want locale data for a few particular
  634. locales, or you enjoy pain, or you are a rabid do-it-yourself sort of
  635. person, you can turn this option off and manually walk through the
  636. mostly undocumented procedure needed to generate your own locale
  637. data.
  638. Mere mortals will answer Y and use the default set of pregenerated
  639. locale data, which supports 169 UTF-8 locales, and 144 locales for
  640. other codesets (for the complete list see extra/locale/LOCALES).
  641. config UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA
  642. bool "Automagically Download the Pre-generated Locale Data (if necessary)"
  643. depends on UCLIBC_PREGENERATED_LOCALE_DATA
  644. default n
  645. help
  646. If you would like the build process to use 'wget' to automatically
  647. download the pregenerated locale data, enable this option. Otherwise
  648. you will need to obtain the locale data yourself from:
  649. http://www.uclibc.org/downloads/uClibc-locale-030818.tgz
  650. and place the uClibc-locale-030818.tgz tarball in the extra/locale/
  651. directory.
  652. Go ahead and make life easy for yourself... Answer Y.
  653. config UCLIBC_HAS_XLOCALE
  654. bool "Extended Locale Support (experimental/incomplete)"
  655. depends on UCLIBC_HAS_LOCALE
  656. default n
  657. help
  658. Answer Y to enable extended locale support similar to that provided
  659. by glibc. This is primarily intended to support libstd++ functionality.
  660. However, it also allows thread-specific locale selection via uselocale().
  661. Most people will answer N.
  662. config UCLIBC_HAS_HEXADECIMAL_FLOATS
  663. bool "Support hexadecimal float notation"
  664. depends UCLIBC_HAS_CTYPE_TABLES
  665. depends on UCLIBC_HAS_FLOATS
  666. default n
  667. help
  668. Answer Y to enable support for hexadecimal float notation in the
  669. (wchar and) char string to floating point conversion functions, as
  670. well as support for the %a and %A conversion specifiers in the
  671. *printf() and *scanf() functions.
  672. Most people will answer N.
  673. config UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  674. bool "Support glibc's \"'\" flag for allowing locale-specific digit grouping"
  675. depends on UCLIBC_HAS_LOCALE
  676. depends on UCLIBC_HAS_FLOATS
  677. default n
  678. help
  679. Answer Y to enable support for glibc's \"'\" flag for allowing locale-specific
  680. digit grouping in base 10 integer conversions and appropriate floating point
  681. conversions in the *printf() and *scanf() functions.
  682. Most people will answer N.
  683. config UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING
  684. bool "Do not require digit grouping when the \"'\" flag is specified"
  685. depends on UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  686. default y
  687. help
  688. Answer Y to make digit grouping optional when the \"'\" flag is specified.
  689. This is the standard glibc behavior. If the initial string of digits
  690. exceeds the maximum group number, the input will be treated as a normal
  691. non-grouped number.
  692. Most people will answer N.
  693. config UCLIBC_HAS_GLIBC_CUSTOM_PRINTF
  694. bool "Support glibc's register_printf_function() (glibc-compat)"
  695. depends on !USE_OLD_VFPRINTF
  696. default n
  697. help
  698. Answer Y to support glibc's register_printf_function() to allow an
  699. application to add its own printf conversion specifiers.
  700. NOTE: This implementation limits the number or registered specifiers to 10.
  701. NOTE: This implementation requires new conversion specifiers to be ASCII
  702. characters (0-0x7f). This is to avoid problems with processing
  703. format strings in locales with different multibyte conversions.
  704. Most people will answer N.
  705. config USE_OLD_VFPRINTF
  706. bool "Use the old vfprintf implementation"
  707. depends on !UCLIBC_HAS_WCHAR
  708. default n
  709. help
  710. Set to true to use the old vfprintf instead of the new. This is roughly
  711. C89 compliant with some extensions, and is much smaller. However, it does
  712. not support wide chars, positional args, or glibc custom printf specifiers.
  713. Most people will answer N.
  714. config UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS
  715. int "Maximum number of positional args. Either 0 or >= 9."
  716. depends on !USE_OLD_VFPRINTF
  717. default 9
  718. help
  719. Set the maximum number of positional args supported by the printf/scanf
  720. functions. The Single Unix Specification Version 3 requires a minimum
  721. value of 9. Setting this to a value lower than 9 will disable positional
  722. arg support and cause the NL_ARGMAX macro in limits.h to be #undef'd.
  723. WARNING! The workspace to support positional args is currently allocated
  724. on the stack. You probably don't want to set this to too high a value.
  725. Most people will answer 9.
  726. config UCLIBC_HAS_SCANF_GLIBC_A_FLAG
  727. bool "Support glibc's 'a' flag for scanf string conversions (not implemented)"
  728. default n
  729. help
  730. NOTE!!! Currently Not Implemented!!! Just A Place Holder!! NOTE!!!
  731. NOTE!!! Conflicts with an ANSI/ISO C99 scanf flag!! NOTE!!!
  732. Answer Y to enable support for glibc's 'a' flag for the scanf string
  733. conversions '%s', '%[', '%ls', '%l[', and '%S'. This is used to
  734. auto-allocate sufficient memory to hold the data retrieved.
  735. Most people will answer N.
  736. choice
  737. prompt "Stdio buffer size"
  738. default UCLIBC_HAS_STDIO_BUFSIZ_4096
  739. help
  740. Please select a value for BUFSIZ. This will be used by the
  741. stdio subsystem as the default buffer size for a file, and
  742. affects fopen(), setvbuf(), etc.
  743. NOTE: Setting this to 'none' will disable buffering completely.
  744. However, BUFSIZ will still be defined in stdio.h as 256 because
  745. many applications use this value.
  746. config UCLIBC_HAS_STDIO_BUFSIZ_NONE
  747. bool "none (WARNING - BUFSIZ will be 256 in stdio.h)"
  748. depends !UCLIBC_HAS_WCHAR
  749. config UCLIBC_HAS_STDIO_BUFSIZ_256
  750. bool "256 (minimum ANSI/ISO C99 value)"
  751. config UCLIBC_HAS_STDIO_BUFSIZ_512
  752. bool "512"
  753. config UCLIBC_HAS_STDIO_BUFSIZ_1024
  754. bool "1024"
  755. config UCLIBC_HAS_STDIO_BUFSIZ_2048
  756. bool "2048"
  757. config UCLIBC_HAS_STDIO_BUFSIZ_4096
  758. bool "4096"
  759. config UCLIBC_HAS_STDIO_BUFSIZ_8192
  760. bool "8192"
  761. # If you add more choices, you will need to update uClibc_stdio.h.
  762. endchoice
  763. choice
  764. prompt "Stdio builtin buffer size (uClibc-specific)"
  765. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  766. default UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  767. help
  768. When a FILE is created with fopen(), an attempt is made to allocate
  769. a BUFSIZ buffer for it. If the allocation fails, fopen() will still
  770. succeed but the FILE will be unbuffered.
  771. This option adds a small amount of space to each FILE to act as an
  772. emergency buffer in the event of a buffer allocation failure.
  773. Most people will answer None.
  774. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  775. bool "None"
  776. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4
  777. bool "4"
  778. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8
  779. bool "8"
  780. # If you add more choices, you will need to update uClibc_stdio.h.
  781. endchoice
  782. config UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT
  783. bool "Attempt to shutdown stdio subsystem when abort() is called."
  784. default n
  785. help
  786. ANSI/ISO C99 requires abort() to be asyn-signal-safe. So there was a behavioral
  787. change made in SUSv3. Previously, abort() was required to have the affect of
  788. fclose() on all open streams. The wording has been changed to "may" from "shall".
  789. Most people will answer N.
  790. config UCLIBC_HAS_STDIO_GETC_MACRO
  791. bool "Provide a macro version of getc()"
  792. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  793. default y
  794. help
  795. Provide a macro version of getc().
  796. Most people will answer Y.
  797. config UCLIBC_HAS_STDIO_PUTC_MACRO
  798. bool "Provide a macro version of putc()"
  799. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  800. default y
  801. help
  802. Provide a macro version of putc().
  803. Most people will answer Y.
  804. config UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION
  805. bool "Support auto-r/w transition"
  806. default y
  807. help
  808. Answer Y to enable the stdio subsystem to automaticly transition
  809. between reading and writing. This relaxes the ANSI/ISO C99 requirement:
  810. When a file is opened with update mode ('+' as the second or third character
  811. in the list of mode argument values), both input and output may be performed
  812. on the associated stream. However, output shall not be directly followed by
  813. input without an intervening call to the fflush function or to a file
  814. positioning function (fseek, fsetpos, or rewind), and input shall not be
  815. directly followed by output without an intervening call to a file positioning
  816. function, unless the input operation encounters end­of­file.
  817. Most people will answer Y.
  818. config UCLIBC_HAS_FOPEN_LARGEFILE_MODE
  819. bool "Support an fopen() 'F' flag for large file mode (uClibc-specific)"
  820. depends on UCLIBC_HAS_LFS
  821. default n
  822. help
  823. Answer Y to enable a uClibc-specific extension to allow passing an
  824. additional 'F' flag in the mode string for fopen() to specify that
  825. the file should be open()ed with the O_LARGEFILE flag set.
  826. Most people will answer N.
  827. config UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE
  828. bool "Support an fopen() 'x' flag for exclusive mode (glibc-compat)"
  829. default n
  830. help
  831. Answer Y to support a glibc extension to allow passing
  832. additional 'x' flag in the mode string for fopen() to specify that
  833. the file should be open()ed with the O_EXCL flag set.
  834. Most people will answer N.
  835. config UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
  836. bool "Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat)"
  837. default n
  838. help
  839. Answer Y to support the glibc 'custom stream' extension functions
  840. fmemopen(), open_memstream(), and fopencookie().
  841. NOTE: There are some minor differences regarding seeking behavior.
  842. Most people will answer N.
  843. config UCLIBC_HAS_PRINTF_M_SPEC
  844. bool "Support the '%m' specifier in printf format strings (glibc-compat)"
  845. default n
  846. help
  847. Answer Y to support a glibc extension to interpret '%m' in printf
  848. format strings as an instruction to output the error message string
  849. (as generated by strerror) corresponding to the current value of 'errno'.
  850. Most people will answer N.
  851. config UCLIBC_HAS_ERRNO_MESSAGES
  852. bool "Include the errno message text in the library"
  853. default y
  854. help
  855. Answer Y if you want to include the errno message text in the
  856. library. This adds about 3K to the library, but enables strerror()
  857. to generate text other than 'Unknown error <number>'.
  858. Most people will answer Y.
  859. config UCLIBC_HAS_SYS_ERRLIST
  860. bool "Support sys_errlist[] (obsolete-compat)"
  861. depends on UCLIBC_HAS_ERRNO_MESSAGES
  862. default n
  863. help
  864. Answer Y if you want to support the obsolete sys_errlist[].
  865. This adds about 0.5k to the library, except for the mips
  866. arch where it adds over 4K.
  867. WARNING! In the future, support for sys_errlist[] may be unavailable
  868. in at least some configurations. In fact, it may be removed altogether.
  869. Most people will answer N.
  870. config UCLIBC_HAS_SIGNUM_MESSAGES
  871. bool "Include the signum message text in the library"
  872. default y
  873. help
  874. Answer Y if you want to include the signum message text in the
  875. library. This adds about 0.5K to the library, but enables strsignal()
  876. to generate text other than 'Unknown signal <number>'.
  877. Most people will answer Y.
  878. config UCLIBC_HAS_SYS_SIGLIST
  879. bool "Support sys_siglist[] (bsd-compat)"
  880. depends on UCLIBC_HAS_SIGNUM_MESSAGES
  881. default n
  882. help
  883. Answer Y if you want to support sys_siglist[].
  884. WARNING! In the future, support for sys_siglist[] may be unavailable
  885. in at least some configurations. In fact, it may be removed altogether.
  886. Most people will answer N.
  887. config UCLIBC_HAS_GETTEXT_AWARENESS
  888. bool "Include gettext awareness"
  889. depends on UCLIBC_HAS_LOCALE && UCLIBC_MJN3_ONLY
  890. default n
  891. help
  892. NOTE!!! Not yet integrated with strerror and strsignal. NOTE!!!
  893. Answer Y if you want to include weak stub gettext support and
  894. make the *strerror*() and strsignal() functions gettext-aware.
  895. Currently, to get functional gettext functionality you will need
  896. to use gnu gettext.
  897. Most people will answer N.
  898. config UCLIBC_HAS_GNU_GETOPT
  899. bool "Support gnu getopt"
  900. default y
  901. help
  902. Answer Y if you want to include full gnu getopt() instead of a
  903. (much smaller) SUSv3 compatible getopt().
  904. Most people will answer Y.
  905. config UCLIBC_HAS_GETOPT_LONG
  906. bool "Support getopt_long/getopt_long_only"
  907. depends !UCLIBC_HAS_GNU_GETOPT
  908. default y
  909. help
  910. Answer Y if you want to include getopt_long[_only() used by many
  911. apps, even busybox.
  912. Most people will answer Y.
  913. config UCLIBC_HAS_GNU_GETSUBOPT
  914. bool "Support glibc getsubopt"
  915. default y
  916. help
  917. Answer Y if you want to include glibc getsubopt() instead of a
  918. smaller SUSv3 compatible getsubopt().
  919. Most people will answer Y.
  920. endmenu
  921. menu "Big and Tall"
  922. config UCLIBC_HAS_REGEX
  923. bool "Regular Expression Support"
  924. default y
  925. help
  926. POSIX regular expression code is really big -- 53k all by itself.
  927. If you don't use regular expressions, turn this off and save space.
  928. Of course, if you only statically link, leave this on, since it will
  929. only be included in your apps if you use regular expressions.
  930. config UCLIBC_HAS_REGEX_OLD
  931. bool "Use the older (stable) regular expression code"
  932. depends on UCLIBC_HAS_REGEX
  933. default y
  934. help
  935. There are two versions of regex. The older (stable) version has
  936. been in uClibc for quite a long time but hasn't seen too many
  937. updates. It also has some known issues when dealing with uncommon
  938. corner cases and multibyte/unicode strings. However, it is quite
  939. a bit smaller than the newer version.
  940. If the older version has worked for you and you don't need unicode
  941. support, then stick with the old version (and say Y here).
  942. Otherwise, you should use the new version (and say N here).
  943. config UCLIBC_HAS_FNMATCH
  944. bool "fnmatch Support"
  945. default y
  946. help
  947. POSIX fnmatch.
  948. config UCLIBC_HAS_FNMATCH_OLD
  949. bool "Use the older (stable) fnmatch code"
  950. depends on UCLIBC_HAS_FNMATCH
  951. default y
  952. help
  953. There are two versions of fnmatch. The older (stable) version has
  954. been in uClibc for quite a long time but hasn't seen too many
  955. updates. It also has some known issues when dealing with uncommon
  956. corner cases and multibyte/unicode strings. However, it is quite
  957. a bit smaller than the newer version.
  958. If the older version has worked for you and you don't need unicode
  959. support, then stick with the old version (and say Y here).
  960. Otherwise, you should use the new version (and say N here).
  961. config UCLIBC_HAS_WORDEXP
  962. bool "Support the wordexp() interface"
  963. depends on UCLIBC_HAS_GLOB
  964. default n
  965. help
  966. The SuSv3 wordexp() interface performs word expansions per the Shell
  967. and Utilities volume of IEEE Std 1003.1-2001, Section 2.6. It is
  968. intended for use by applications that want to implement all of the
  969. standard Bourne shell expansions on input data.
  970. This interface is rarely used, and very large. Unless you have a
  971. pressing need for wordexp(), you should probably answer N.
  972. config UCLIBC_HAS_FTW
  973. bool "Support the ftw() and nftw() interfaces"
  974. default n
  975. help
  976. The SuSv3 ftw() and nftw() interfaces are used to recursively descend
  977. directory paths while repeatedly calling a function.
  978. This interface is rarely used, and adds around 4.5k. Unless you have
  979. a pressing need for ftw() or nftw(), you should probably answer N.
  980. config UCLIBC_HAS_GLOB
  981. bool "Support the glob() interface"
  982. depends on UCLIBC_HAS_FNMATCH
  983. default y
  984. help
  985. The glob interface is somewhat large (weighing in at about 2,5k). It
  986. is used fairly often, but is an option since people wanting to go for
  987. absolute minimum size may wish to omit it.
  988. Most people will answer Y.
  989. config UCLIBC_HAS_GNU_GLOB
  990. bool "Support gnu glob() interface"
  991. depends on UCLIBC_HAS_GLOB
  992. default n
  993. help
  994. The gnu glob interface is somewhat larger (weighing in at about 4,2k) than
  995. it's SuSv3 counterpart (and is out of date). It is an old copy from glibc and
  996. does not support all the GNU specific options.
  997. Answer Y if you want to include full gnu glob() instead of the smaller SUSv3
  998. compatible glob().
  999. Most people will answer N.
  1000. endmenu
  1001. menu "Library Installation Options"
  1002. config SHARED_LIB_LOADER_PREFIX
  1003. string "Shared library loader path"
  1004. depends on HAVE_SHARED
  1005. default "$(RUNTIME_PREFIX)lib"
  1006. help
  1007. When using shared libraries, this path is the location where the
  1008. shared library will be invoked. This value will be compiled into
  1009. every binary compiled with uClibc.
  1010. For a typical target system this should be set to "/lib", such that
  1011. 'make install' will install /lib/ld-uClibc.so.0.
  1012. BIG FAT WARNING:
  1013. If you do not have a shared library loader with the correct name
  1014. sitting in the directory this points to, your binaries will not
  1015. run.
  1016. config RUNTIME_PREFIX
  1017. string "uClibc runtime library directory"
  1018. default "/usr/$(TARGET_ARCH)-linux-uclibc/"
  1019. help
  1020. RUNTIME_PREFIX is the directory into which the uClibc runtime
  1021. libraries will be installed. The result will look something
  1022. like the following:
  1023. $(RUNTIME_PREFIX)/
  1024. lib/ <contains all runtime libraries>
  1025. usr/bin/ldd <the ldd utility program>
  1026. sbin/ldconfig <the ldconfig utility program>
  1027. This value is used by the 'make install' Makefile target. Since this
  1028. directory is compiled into the shared library loader, you will need to
  1029. recompile uClibc if you change this value...
  1030. For a typical target system this should be set to "/", such that
  1031. 'make install' will install /lib/libuClibc-<VERSION>.so
  1032. config DEVEL_PREFIX
  1033. string "uClibc development environment directory"
  1034. default "/usr/$(TARGET_ARCH)-linux-uclibc/usr/"
  1035. help
  1036. DEVEL_PREFIX is the directory into which the uClibc development
  1037. environment will be installed. The result will look something
  1038. like the following:
  1039. $(DEVEL_PREFIX)/
  1040. lib/ <contains static libs>
  1041. include/ <Where all the header files go>
  1042. This value is used by the 'make install' Makefile target when
  1043. installing a uClibc development environment.
  1044. For a typical target system this should be set to "/usr", such that
  1045. 'make install' will install /usr/include/<header files>.
  1046. endmenu
  1047. menu "Security options"
  1048. config UCLIBC_BUILD_PIE
  1049. bool "Build utilities as ET_DYN/PIE executables"
  1050. depends on HAVE_SHARED
  1051. depends on TARGET_arm || TARGET_frv || TARGET_i386 || TARGET_mips || TARGET_powerpc
  1052. select FORCE_SHAREABLE_TEXT_SEGMENTS
  1053. default n
  1054. help
  1055. If you answer Y here, ldd and iconv are built as ET_DYN/PIE executables.
  1056. It requires gcc-3.4 and binutils-2.15 (for arm 2.16) or later.
  1057. More about ET_DYN/PIE binaries on <http://pax.grsecurity.net/> .
  1058. WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so all
  1059. libraries have to be built with -fPIC or -fpic, and all assembler
  1060. functions must be written as position independent code (PIC).
  1061. config UCLIBC_HAS_ARC4RANDOM
  1062. bool "Include the arc4random() function"
  1063. default n
  1064. help
  1065. Answer Y to support the OpenBSD-like arc4random() function. This
  1066. function picks a random number between 0 and N, and will always return
  1067. something even if the random driver is dead. If urandom fails then
  1068. gettimeofday(2) will be used as the random seed. This function is
  1069. designed to be more dependable than invoking /dev/urandom directly.
  1070. OpenSSL and OpenNTPD currently support this function.
  1071. Most people will answer N.
  1072. config HAVE_NO_SSP
  1073. bool
  1074. default n
  1075. config UCLIBC_HAS_SSP
  1076. bool "Support for propolice smashing stack protector"
  1077. depends on !HAVE_NO_SSP
  1078. default n
  1079. help
  1080. Add propolice smashing stack protector to the library.
  1081. This requires GCC 4.1, supporting the -fstack-protector[-all]
  1082. options. GCC does not have to provide libssp, the needed
  1083. functions are added to ldso/libc instead.
  1084. Most people will answer N.
  1085. config UCLIBC_HAS_SSP_COMPAT
  1086. bool "Support for gcc-3.x propolice smashing stack protector"
  1087. depends on UCLIBC_HAS_SSP
  1088. default n
  1089. help
  1090. Add gcc-3.x propolice smashing stack protector to the library.
  1091. This requires a patched version of GCC, supporting the
  1092. -fstack-protector[-all] options, with the __guard and
  1093. __stack_smash_handler functions removed from libgcc.
  1094. These functions are added to ldso/libc instead.
  1095. More information at:
  1096. <http://www.research.ibm.com/trl/projects/security/ssp/>
  1097. Most people will answer N.
  1098. config SSP_QUICK_CANARY
  1099. bool "Use simple guard values without accessing /dev/urandom"
  1100. depends on UCLIBC_HAS_SSP
  1101. default n
  1102. help
  1103. Use gettimeofday(2) to define the __guard without accessing
  1104. /dev/urandom.
  1105. WARNING: This makes smashing stack protector vulnerable to timing
  1106. attacks.
  1107. Most people will answer N.
  1108. choice
  1109. prompt "Propolice protection blocking signal"
  1110. depends on UCLIBC_HAS_SSP
  1111. default PROPOLICE_BLOCK_ABRT if ! DODEBUG
  1112. default PROPOLICE_BLOCK_SEGV if DODEBUG
  1113. help
  1114. "abort" use SIGABRT to block offending programs.
  1115. This is the default implementation.
  1116. "segfault" use SIGSEGV to block offending programs.
  1117. Use this for debugging.
  1118. If unsure, answer "abort".
  1119. config PROPOLICE_BLOCK_ABRT
  1120. bool "abort"
  1121. config PROPOLICE_BLOCK_SEGV
  1122. bool "segfault"
  1123. endchoice
  1124. config UCLIBC_BUILD_SSP
  1125. bool "Build uClibc with propolice protection"
  1126. depends on UCLIBC_HAS_SSP
  1127. default n
  1128. help
  1129. Build all libraries and executables with propolice protection enabled.
  1130. config UCLIBC_BUILD_RELRO
  1131. bool "Build uClibc with RELRO"
  1132. depends on HAVE_SHARED
  1133. default y
  1134. help
  1135. Build all libraries and executables with -z relro.
  1136. config UCLIBC_BUILD_NOW
  1137. bool "Build uClibc with NOW"
  1138. depends on HAVE_SHARED
  1139. default n
  1140. help
  1141. Build all libraries and executables with -z now.
  1142. config UCLIBC_BUILD_NOEXECSTACK
  1143. bool "Build uClibc with noexecstack marking"
  1144. default y
  1145. help
  1146. Mark all assembler files as noexecstack. This will result in marking
  1147. all libraries and executables built against uClibc not requiring
  1148. executable stack.
  1149. endmenu
  1150. menu "uClibc development/debugging options"
  1151. config CROSS_COMPILER_PREFIX
  1152. string "Cross-compiling toolchain prefix"
  1153. default ""
  1154. help
  1155. The prefix used to execute your cross-compiling toolchain. For
  1156. example, if you run 'arm-linux-uclibc-gcc' to compile something,
  1157. then enter 'arm-linux-uclibc-' here.
  1158. config UCLIBC_EXTRA_CFLAGS
  1159. string "Enter any extra CFLAGS to use to build uClibc"
  1160. default ""
  1161. help
  1162. Add any additional CFLAGS to be used to build uClibc.
  1163. config DODEBUG
  1164. bool "Build uClibc with debugging symbols"
  1165. default n
  1166. select EXTRA_WARNINGS
  1167. help
  1168. Say Y here if you wish to compile uClibc with debugging symbols.
  1169. This will allow you to use a debugger to examine uClibc internals
  1170. while applications are running. This increases the size of the
  1171. library considerably and should only be used when doing development.
  1172. If you are doing development and want to debug uClibc, answer Y.
  1173. Otherwise, answer N.
  1174. config DODEBUG_PT
  1175. bool "Build pthread with debugging output"
  1176. depends on UCLIBC_HAS_THREADS && LINUXTHREADS_OLD
  1177. default n
  1178. help
  1179. Enable debug output in libpthread. This is only useful when doing
  1180. development in libpthread itself.
  1181. Otherwise, answer N.
  1182. config DOSTRIP
  1183. bool "Strip libraries and executables"
  1184. default y
  1185. depends on !DODEBUG
  1186. help
  1187. Say Y here if you do wish to strip all uClibc libraries and
  1188. executables. No stripping increases the size of the binaries
  1189. considerably, but makes it possible to debug uClibc libraries.
  1190. Most people will answer Y.
  1191. config DOASSERTS
  1192. bool "Build uClibc with run-time assertion testing"
  1193. default n
  1194. help
  1195. Say Y here to include runtime assertion tests.
  1196. This enables runtime assertion testing in some code, which can
  1197. increase the size of the library and incur runtime overhead.
  1198. If you say N, then this testing will be disabled.
  1199. config SUPPORT_LD_DEBUG
  1200. bool "Build the shared library loader with debugging support"
  1201. depends on HAVE_SHARED
  1202. default n
  1203. help
  1204. Answer Y here to enable all the extra code needed to debug the uClibc
  1205. native shared library loader. The level of debugging noise that is
  1206. generated depends on the LD_DEBUG environment variable... Just set
  1207. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  1208. debug your application. Diagnostic messages will then be printed to
  1209. the stderr.
  1210. For now these debugging tokens are available:
  1211. detail provide more information for some options
  1212. move display copy processing
  1213. symbols display symbol table processing
  1214. reloc display relocation processing; detail shows the relocation patch
  1215. nofixups never fixes up jump relocations
  1216. bindings displays the resolve processing (function calls); detail shows the relocation patch
  1217. all Enable everything!
  1218. The additional environment variable:
  1219. LD_DEBUG_OUTPUT=file
  1220. redirects the diagnostics to an output file created using
  1221. the specified name and the process id as a suffix.
  1222. An excellent start is simply:
  1223. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  1224. or to log everything to a file named 'logfile', try this
  1225. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  1226. If you are doing development and want to debug uClibc's shared library
  1227. loader, answer Y. Mere mortals answer N.
  1228. config SUPPORT_LD_DEBUG_EARLY
  1229. bool "Build the shared library loader with early debugging support"
  1230. depends on HAVE_SHARED
  1231. default n
  1232. help
  1233. Answer Y here to if you find the uClibc shared library loader is
  1234. crashing or otherwise not working very early on. This is typical
  1235. only when starting a new port when you haven't figured out how to
  1236. properly get the values for argc, argv, environ, etc. This method
  1237. allows a degree of visibility into the very early shared library
  1238. loader initialization process. If you are doing development and want
  1239. to debug the uClibc shared library loader early initialization,
  1240. answer Y. Mere mortals answer N.
  1241. config UCLIBC_MALLOC_DEBUGGING
  1242. bool "Build malloc with debugging support"
  1243. depends MALLOC || MALLOC_STANDARD
  1244. default n
  1245. help
  1246. Answer Y here to compile extra debugging support code into malloc.
  1247. Malloc debugging output may then be enabled at runtime using the
  1248. MALLOC_DEBUG environment variable.
  1249. The value of MALLOC_DEBUG should be an integer, which is interpreted as
  1250. a bitmask with the following bits:
  1251. 1 - do extra consistency checking
  1252. 2 - output messages for malloc/free calls and OS allocation calls
  1253. 4 - output messages for the `MMB' layer
  1254. 8 - output messages for internal malloc heap manipulation calls
  1255. Because this increases the size of malloc appreciably (due to strings
  1256. etc), you should say N unless you need to debug a malloc problem.
  1257. config WARNINGS
  1258. string "Compiler Warnings"
  1259. default "-Wall"
  1260. help
  1261. Set this to the set of gcc warnings you wish to see while compiling.
  1262. config EXTRA_WARNINGS
  1263. bool "Enable extra annoying warnings"
  1264. default n
  1265. help
  1266. If you wish to build with extra warnings enabled, say Y here.
  1267. config DOMULTI
  1268. bool "Compile all sources at once into an object"
  1269. default n
  1270. help
  1271. Set this to compile all sources at once into an object (IMA).
  1272. config UCLIBC_MJN3_ONLY
  1273. bool "Manuel's hidden warnings"
  1274. default n
  1275. help
  1276. Answer Y here to see all Manuel's personal notes, warnings, and todos.
  1277. Most people will answer N.
  1278. endmenu