11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Library configuration 31da177e4SLinus Torvalds# 41da177e4SLinus Torvalds 54370aa4aSLai Jiangshanconfig BINARY_PRINTF 64370aa4aSLai Jiangshan def_bool n 74370aa4aSLai Jiangshan 81da177e4SLinus Torvaldsmenu "Library routines" 91da177e4SLinus Torvalds 10f5e70d0fSDavid Woodhouseconfig RAID6_PQ 11f5e70d0fSDavid Woodhouse tristate 12f5e70d0fSDavid Woodhouse 13a5cfc1ecSAkinobu Mitaconfig BITREVERSE 14a5cfc1ecSAkinobu Mita tristate 15a5cfc1ecSAkinobu Mita 168759ef32SOskar Schirmerconfig RATIONAL 178759ef32SOskar Schirmer boolean 188759ef32SOskar Schirmer 192922585bSDavid S. Millerconfig GENERIC_STRNCPY_FROM_USER 202922585bSDavid S. Miller bool 212922585bSDavid S. Miller 22a08c5356SLinus Torvaldsconfig GENERIC_STRNLEN_USER 23a08c5356SLinus Torvalds bool 24a08c5356SLinus Torvalds 2519870defSAlexander van Heukelumconfig GENERIC_FIND_FIRST_BIT 269ba16087SJan Beulich bool 2719870defSAlexander van Heukelum 28b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP 29b923650bSMichael S. Tsirkin bool 30b923650bSMichael S. Tsirkin 3166eab4dfSMichael S. Tsirkinconfig GENERIC_PCI_IOMAP 3266eab4dfSMichael S. Tsirkin bool 3366eab4dfSMichael S. Tsirkin 344673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP 354673ca8eSMichael S. Tsirkin bool 3666eab4dfSMichael S. Tsirkin select GENERIC_PCI_IOMAP 374673ca8eSMichael S. Tsirkin 38087fafd1SRichard Weinbergerconfig GENERIC_IO 39087fafd1SRichard Weinberger boolean 40087fafd1SRichard Weinberger default n 41087fafd1SRichard Weinberger 424ccf4beaSWolfram Sangconfig STMP_DEVICE 434ccf4beaSWolfram Sang bool 444ccf4beaSWolfram Sang 451da177e4SLinus Torvaldsconfig CRC_CCITT 461da177e4SLinus Torvalds tristate "CRC-CCITT functions" 471da177e4SLinus Torvalds help 481da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 491da177e4SLinus Torvalds modules require CRC-CCITT functions, but a module built outside 501da177e4SLinus Torvalds the kernel tree does. Such modules that use library CRC-CCITT 511da177e4SLinus Torvalds functions require M here. 521da177e4SLinus Torvalds 537657ec1fSEvgeniy Polyakovconfig CRC16 547657ec1fSEvgeniy Polyakov tristate "CRC16 functions" 557657ec1fSEvgeniy Polyakov help 567657ec1fSEvgeniy Polyakov This option is provided for the case where no in-kernel-tree 577657ec1fSEvgeniy Polyakov modules require CRC16 functions, but a module built outside 587657ec1fSEvgeniy Polyakov the kernel tree does. Such modules that use library CRC16 597657ec1fSEvgeniy Polyakov functions require M here. 607657ec1fSEvgeniy Polyakov 61f11f594eSMartin K. Petersenconfig CRC_T10DIF 62f11f594eSMartin K. Petersen tristate "CRC calculation for the T10 Data Integrity Field" 63f11f594eSMartin K. Petersen help 64f11f594eSMartin K. Petersen This option is only needed if a module that's not in the 65f11f594eSMartin K. Petersen kernel tree needs to calculate CRC checks for use with the 66f11f594eSMartin K. Petersen SCSI data integrity subsystem. 67f11f594eSMartin K. Petersen 683e7cbae7SIvo van Doornconfig CRC_ITU_T 693e7cbae7SIvo van Doorn tristate "CRC ITU-T V.41 functions" 703e7cbae7SIvo van Doorn help 713e7cbae7SIvo van Doorn This option is provided for the case where no in-kernel-tree 723e7cbae7SIvo van Doorn modules require CRC ITU-T V.41 functions, but a module built outside 733e7cbae7SIvo van Doorn the kernel tree does. Such modules that use library CRC ITU-T V.41 743e7cbae7SIvo van Doorn functions require M here. 753e7cbae7SIvo van Doorn 761da177e4SLinus Torvaldsconfig CRC32 7746c5801eSDarrick J. Wong tristate "CRC32/CRC32c functions" 781da177e4SLinus Torvalds default y 79906d66dfSAkinobu Mita select BITREVERSE 801da177e4SLinus Torvalds help 811da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 8246c5801eSDarrick J. Wong modules require CRC32/CRC32c functions, but a module built outside 8346c5801eSDarrick J. Wong the kernel tree does. Such modules that use library CRC32/CRC32c 8446c5801eSDarrick J. Wong functions require M here. 851da177e4SLinus Torvalds 863863ef31SBob Pearsonconfig CRC32_SELFTEST 873863ef31SBob Pearson bool "CRC32 perform self test on init" 883863ef31SBob Pearson default n 893863ef31SBob Pearson depends on CRC32 903863ef31SBob Pearson help 913863ef31SBob Pearson This option enables the CRC32 library functions to perform a 923863ef31SBob Pearson self test on initialization. The self test computes crc32_le 933863ef31SBob Pearson and crc32_be over byte strings with random alignment and length 943863ef31SBob Pearson and computes the total elapsed time and number of bytes processed. 953863ef31SBob Pearson 965cde7656SDarrick J. Wongchoice 975cde7656SDarrick J. Wong prompt "CRC32 implementation" 985cde7656SDarrick J. Wong depends on CRC32 995cde7656SDarrick J. Wong default CRC32_SLICEBY8 10082edb4baSDarrick J. Wong help 10182edb4baSDarrick J. Wong This option allows a kernel builder to override the default choice 10282edb4baSDarrick J. Wong of CRC32 algorithm. Choose the default ("slice by 8") unless you 10382edb4baSDarrick J. Wong know that you need one of the others. 1045cde7656SDarrick J. Wong 1055cde7656SDarrick J. Wongconfig CRC32_SLICEBY8 1065cde7656SDarrick J. Wong bool "Slice by 8 bytes" 1075cde7656SDarrick J. Wong help 1085cde7656SDarrick J. Wong Calculate checksum 8 bytes at a time with a clever slicing algorithm. 1095cde7656SDarrick J. Wong This is the fastest algorithm, but comes with a 8KiB lookup table. 1105cde7656SDarrick J. Wong Most modern processors have enough cache to hold this table without 1115cde7656SDarrick J. Wong thrashing the cache. 1125cde7656SDarrick J. Wong 1135cde7656SDarrick J. Wong This is the default implementation choice. Choose this one unless 1145cde7656SDarrick J. Wong you have a good reason not to. 1155cde7656SDarrick J. Wong 1165cde7656SDarrick J. Wongconfig CRC32_SLICEBY4 1175cde7656SDarrick J. Wong bool "Slice by 4 bytes" 1185cde7656SDarrick J. Wong help 1195cde7656SDarrick J. Wong Calculate checksum 4 bytes at a time with a clever slicing algorithm. 1205cde7656SDarrick J. Wong This is a bit slower than slice by 8, but has a smaller 4KiB lookup 1215cde7656SDarrick J. Wong table. 1225cde7656SDarrick J. Wong 1235cde7656SDarrick J. Wong Only choose this option if you know what you are doing. 1245cde7656SDarrick J. Wong 1255cde7656SDarrick J. Wongconfig CRC32_SARWATE 1265cde7656SDarrick J. Wong bool "Sarwate's Algorithm (one byte at a time)" 1275cde7656SDarrick J. Wong help 1285cde7656SDarrick J. Wong Calculate checksum a byte at a time using Sarwate's algorithm. This 1295cde7656SDarrick J. Wong is not particularly fast, but has a small 256 byte lookup table. 1305cde7656SDarrick J. Wong 1315cde7656SDarrick J. Wong Only choose this option if you know what you are doing. 1325cde7656SDarrick J. Wong 1335cde7656SDarrick J. Wongconfig CRC32_BIT 1345cde7656SDarrick J. Wong bool "Classic Algorithm (one bit at a time)" 1355cde7656SDarrick J. Wong help 1365cde7656SDarrick J. Wong Calculate checksum one bit at a time. This is VERY slow, but has 1375cde7656SDarrick J. Wong no lookup table. This is provided as a debugging option. 1385cde7656SDarrick J. Wong 1395cde7656SDarrick J. Wong Only choose this option if you are debugging crc32. 1405cde7656SDarrick J. Wong 1415cde7656SDarrick J. Wongendchoice 1425cde7656SDarrick J. Wong 143ad241528SJan Nikitenkoconfig CRC7 144ad241528SJan Nikitenko tristate "CRC7 functions" 145ad241528SJan Nikitenko help 146ad241528SJan Nikitenko This option is provided for the case where no in-kernel-tree 147ad241528SJan Nikitenko modules require CRC7 functions, but a module built outside 148ad241528SJan Nikitenko the kernel tree does. Such modules that use library CRC7 149ad241528SJan Nikitenko functions require M here. 150ad241528SJan Nikitenko 1511da177e4SLinus Torvaldsconfig LIBCRC32C 1521da177e4SLinus Torvalds tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check" 15393027354SHerbert Xu select CRYPTO 15469c35efcSHerbert Xu select CRYPTO_CRC32C 1551da177e4SLinus Torvalds help 1561da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 1571da177e4SLinus Torvalds modules require CRC32c functions, but a module built outside the 1581da177e4SLinus Torvalds kernel tree does. Such modules that use library CRC32c functions 1591da177e4SLinus Torvalds require M here. See Castagnoli93. 1601da177e4SLinus Torvalds Module will be libcrc32c. 1611da177e4SLinus Torvalds 1627150962dSArend van Sprielconfig CRC8 1637150962dSArend van Spriel tristate "CRC8 function" 1647150962dSArend van Spriel help 1657150962dSArend van Spriel This option provides CRC8 function. Drivers may select this 1667150962dSArend van Spriel when they need to do cyclic redundancy check according CRC8 1677150962dSArend van Spriel algorithm. Module will be called crc8. 1687150962dSArend van Spriel 169e65e1fc2SAl Viroconfig AUDIT_GENERIC 170e65e1fc2SAl Viro bool 171e65e1fc2SAl Viro depends on AUDIT && !AUDIT_ARCH 172e65e1fc2SAl Viro default y 173e65e1fc2SAl Viro 1741da177e4SLinus Torvalds# 1751da177e4SLinus Torvalds# compression support is select'ed if needed 1761da177e4SLinus Torvalds# 1771da177e4SLinus Torvaldsconfig ZLIB_INFLATE 1781da177e4SLinus Torvalds tristate 1791da177e4SLinus Torvalds 1801da177e4SLinus Torvaldsconfig ZLIB_DEFLATE 1811da177e4SLinus Torvalds tristate 1821da177e4SLinus Torvalds 18364c70b1cSRichard Purdieconfig LZO_COMPRESS 18464c70b1cSRichard Purdie tristate 18564c70b1cSRichard Purdie 18664c70b1cSRichard Purdieconfig LZO_DECOMPRESS 18764c70b1cSRichard Purdie tristate 18864c70b1cSRichard Purdie 18924fa0402SLasse Collinsource "lib/xz/Kconfig" 19024fa0402SLasse Collin 1911da177e4SLinus Torvalds# 192c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with 193c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.) 194c8531ab3SH. Peter Anvin# 195c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP 1967856a16eSH. Peter Anvin select ZLIB_INFLATE 197c8531ab3SH. Peter Anvin tristate 198c8531ab3SH. Peter Anvin 199c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2 200c8531ab3SH. Peter Anvin tristate 201c8531ab3SH. Peter Anvin 202c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA 203c8531ab3SH. Peter Anvin tristate 204c8531ab3SH. Peter Anvin 2053ebe1243SLasse Collinconfig DECOMPRESS_XZ 2063ebe1243SLasse Collin select XZ_DEC 2073ebe1243SLasse Collin tristate 2083ebe1243SLasse Collin 209cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO 210cacb246fSAlbin Tonnerre select LZO_DECOMPRESS 211cacb246fSAlbin Tonnerre tristate 212cacb246fSAlbin Tonnerre 213c8531ab3SH. Peter Anvin# 214f14f75b8SJes Sorensen# Generic allocator support is selected if needed 215f14f75b8SJes Sorensen# 216f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR 217f14f75b8SJes Sorensen boolean 218f14f75b8SJes Sorensen 219f14f75b8SJes Sorensen# 2201da177e4SLinus Torvalds# reed solomon support is select'ed if needed 2211da177e4SLinus Torvalds# 2221da177e4SLinus Torvaldsconfig REED_SOLOMON 2231da177e4SLinus Torvalds tristate 2241da177e4SLinus Torvalds 2251da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8 2261da177e4SLinus Torvalds boolean 2271da177e4SLinus Torvalds 2281da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8 2291da177e4SLinus Torvalds boolean 2301da177e4SLinus Torvalds 2311da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16 2321da177e4SLinus Torvalds boolean 2331da177e4SLinus Torvalds 2341da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16 2351da177e4SLinus Torvalds boolean 2361da177e4SLinus Torvalds 237f7704347SDavid S. Miller# 238437aa565SIvan Djelic# BCH support is selected if needed 239437aa565SIvan Djelic# 240437aa565SIvan Djelicconfig BCH 241437aa565SIvan Djelic tristate 242437aa565SIvan Djelic 243437aa565SIvan Djelicconfig BCH_CONST_PARAMS 244437aa565SIvan Djelic boolean 245437aa565SIvan Djelic help 246437aa565SIvan Djelic Drivers may select this option to force specific constant 247437aa565SIvan Djelic values for parameters 'm' (Galois field order) and 't' 248437aa565SIvan Djelic (error correction capability). Those specific values must 249437aa565SIvan Djelic be set by declaring default values for symbols BCH_CONST_M 250437aa565SIvan Djelic and BCH_CONST_T. 251437aa565SIvan Djelic Doing so will enable extra compiler optimizations, 252437aa565SIvan Djelic improving encoding and decoding performance up to 2x for 253437aa565SIvan Djelic usual (m,t) values (typically such that m*t < 200). 254437aa565SIvan Djelic When this option is selected, the BCH library supports 255437aa565SIvan Djelic only a single (m,t) configuration. This is mainly useful 256437aa565SIvan Djelic for NAND flash board drivers requiring known, fixed BCH 257437aa565SIvan Djelic parameters. 258437aa565SIvan Djelic 259437aa565SIvan Djelicconfig BCH_CONST_M 260437aa565SIvan Djelic int 261437aa565SIvan Djelic range 5 15 262437aa565SIvan Djelic help 263437aa565SIvan Djelic Constant value for Galois field order 'm'. If 'k' is the 264437aa565SIvan Djelic number of data bits to protect, 'm' should be chosen such 265437aa565SIvan Djelic that (k + m*t) <= 2**m - 1. 266437aa565SIvan Djelic Drivers should declare a default value for this symbol if 267437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 268437aa565SIvan Djelic 269437aa565SIvan Djelicconfig BCH_CONST_T 270437aa565SIvan Djelic int 271437aa565SIvan Djelic help 272437aa565SIvan Djelic Constant value for error correction capability in bits 't'. 273437aa565SIvan Djelic Drivers should declare a default value for this symbol if 274437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 275437aa565SIvan Djelic 276437aa565SIvan Djelic# 277f7704347SDavid S. Miller# Textsearch support is select'ed if needed 278f7704347SDavid S. Miller# 2792de4ff7bSThomas Grafconfig TEXTSEARCH 280f7704347SDavid S. Miller boolean 2811da177e4SLinus Torvalds 282df3fb93aSThomas Grafconfig TEXTSEARCH_KMP 283f7704347SDavid S. Miller tristate 284df3fb93aSThomas Graf 2858082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM 28629cb9f9cSDavid S. Miller tristate 2878082e4edSPablo Neira Ayuso 2886408f79cSThomas Grafconfig TEXTSEARCH_FSM 289f7704347SDavid S. Miller tristate 2906408f79cSThomas Graf 2915db53f3eSJoern Engelconfig BTREE 2925db53f3eSJoern Engel boolean 2935db53f3eSJoern Engel 2945ea81769SAl Viroconfig HAS_IOMEM 295ee36c2bfSAl Viro boolean 2965ea81769SAl Viro depends on !NO_IOMEM 297087fafd1SRichard Weinberger select GENERIC_IO 2985ea81769SAl Viro default y 2995ea81769SAl Viro 3005ea81769SAl Viroconfig HAS_IOPORT 3015ea81769SAl Viro boolean 3025ea81769SAl Viro depends on HAS_IOMEM && !NO_IOPORT 303ee36c2bfSAl Viro default y 304ee36c2bfSAl Viro 305411f0f3eSHeiko Carstensconfig HAS_DMA 306411f0f3eSHeiko Carstens boolean 307411f0f3eSHeiko Carstens depends on !NO_DMA 308411f0f3eSHeiko Carstens default y 309411f0f3eSHeiko Carstens 310928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE 311928923c7SGeert Uytterhoeven bool 312928923c7SGeert Uytterhoeven 313aab46da0SRusty Russellconfig CPUMASK_OFFSTACK 314aab46da0SRusty Russell bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS 315aab46da0SRusty Russell help 316aab46da0SRusty Russell Use dynamic allocation for cpumask_var_t, instead of putting 317aab46da0SRusty Russell them on the stack. This is a bit more expensive, but avoids 318aab46da0SRusty Russell stack overflow. 319aab46da0SRusty Russell 3208c384cdeSRusty Russellconfig DISABLE_OBSOLETE_CPUMASK_FUNCTIONS 3218c384cdeSRusty Russell bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS 3228c384cdeSRusty Russell depends on EXPERIMENTAL && BROKEN 3238c384cdeSRusty Russell 324c39649c3SBen Hutchingsconfig CPU_RMAP 325c39649c3SBen Hutchings bool 326c39649c3SBen Hutchings depends on SMP 327c39649c3SBen Hutchings 32875957ba3STom Herbertconfig DQL 32975957ba3STom Herbert bool 33075957ba3STom Herbert 331e9cc8bddSGeert Uytterhoeven# 332e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed 333e9cc8bddSGeert Uytterhoeven# 334e9cc8bddSGeert Uytterhoevenconfig NLATTR 335e9cc8bddSGeert Uytterhoeven bool 336e9cc8bddSGeert Uytterhoeven 33709d4e0edSPaul Mackerras# 33809d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed 33909d4e0edSPaul Mackerras# 34009d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64 34109d4e0edSPaul Mackerras bool 34209d4e0edSPaul Mackerras 343b411b363SPhilipp Reisnerconfig LRU_CACHE 344b411b363SPhilipp Reisner tristate 345b411b363SPhilipp Reisner 346c5485a7eSBruno Randolfconfig AVERAGE 347a7a9a24dSMichael Buesch bool "Averaging functions" 348a7a9a24dSMichael Buesch help 349a7a9a24dSMichael Buesch This option is provided for the case where no in-kernel-tree 350a7a9a24dSMichael Buesch modules require averaging functions, but a module built outside 351a7a9a24dSMichael Buesch the kernel tree does. Such modules that use library averaging 352a7a9a24dSMichael Buesch functions require Y here. 353a7a9a24dSMichael Buesch 354a7a9a24dSMichael Buesch If unsure, say N. 355c5485a7eSBruno Randolf 356c6df4b17SDavid Millerconfig CLZ_TAB 357c6df4b17SDavid Miller bool 358c6df4b17SDavid Miller 35910f8113eSArend van Sprielconfig CORDIC 360d89ce936SMichael Witten tristate "CORDIC algorithm" 36110f8113eSArend van Spriel help 362435a95c5SMichael Witten This option provides an implementation of the CORDIC algorithm; 363435a95c5SMichael Witten calculations are in fixed point. Module will be called cordic. 36410f8113eSArend van Spriel 3659c1c21a0SAneesh Vconfig DDR 3669c1c21a0SAneesh V bool "JEDEC DDR data" 3679c1c21a0SAneesh V help 3689c1c21a0SAneesh V Data from JEDEC specs for DDR SDRAM memories, 3699c1c21a0SAneesh V particularly the AC timing parameters and addressing 3709c1c21a0SAneesh V information. This data is useful for drivers handling 3719c1c21a0SAneesh V DDR SDRAM controllers. 3729c1c21a0SAneesh V 373d9c46b18SDmitry Kasatkinconfig MPILIB 3742e5f094bSDmitry Kasatkin tristate 375c6df4b17SDavid Miller select CLZ_TAB 376d9c46b18SDmitry Kasatkin help 377d9c46b18SDmitry Kasatkin Multiprecision maths library from GnuPG. 378d9c46b18SDmitry Kasatkin It is used to implement RSA digital signature verification, 379d9c46b18SDmitry Kasatkin which is used by IMA/EVM digital signature extension. 380d9c46b18SDmitry Kasatkin 3817e8dec91SDmitry Kasatkinconfig MPILIB_EXTRA 3822e5f094bSDmitry Kasatkin bool 3837e8dec91SDmitry Kasatkin depends on MPILIB 3847e8dec91SDmitry Kasatkin help 38568adcad5SDmitry Kasatkin Additional sources of multiprecision maths library from GnuPG. 38668adcad5SDmitry Kasatkin This code is unnecessary for RSA digital signature verification, 38768adcad5SDmitry Kasatkin but can be compiled if needed. 3887e8dec91SDmitry Kasatkin 3895e8898e9SDmitry Kasatkinconfig SIGNATURE 3902e5f094bSDmitry Kasatkin tristate 391be440ec7SDmitry Kasatkin depends on KEYS && CRYPTO 392be440ec7SDmitry Kasatkin select CRYPTO_SHA1 393051dbb91SDmitry Kasatkin select MPILIB 394051dbb91SDmitry Kasatkin help 395051dbb91SDmitry Kasatkin Digital signature verification. Currently only RSA is supported. 396051dbb91SDmitry Kasatkin Implementation is done using GnuPG MPI library 397051dbb91SDmitry Kasatkin 398*ab253839SDavid Daney# 399*ab253839SDavid Daney# libfdt files, only selected if needed. 400*ab253839SDavid Daney# 401*ab253839SDavid Daneyconfig LIBFDT 402*ab253839SDavid Daney bool 403*ab253839SDavid Daney 4042de4ff7bSThomas Grafendmenu 405