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 22*a08c5356SLinus Torvaldsconfig GENERIC_STRNLEN_USER 23*a08c5356SLinus Torvalds bool 24*a08c5356SLinus 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 421da177e4SLinus Torvaldsconfig CRC_CCITT 431da177e4SLinus Torvalds tristate "CRC-CCITT functions" 441da177e4SLinus Torvalds help 451da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 461da177e4SLinus Torvalds modules require CRC-CCITT functions, but a module built outside 471da177e4SLinus Torvalds the kernel tree does. Such modules that use library CRC-CCITT 481da177e4SLinus Torvalds functions require M here. 491da177e4SLinus Torvalds 507657ec1fSEvgeniy Polyakovconfig CRC16 517657ec1fSEvgeniy Polyakov tristate "CRC16 functions" 527657ec1fSEvgeniy Polyakov help 537657ec1fSEvgeniy Polyakov This option is provided for the case where no in-kernel-tree 547657ec1fSEvgeniy Polyakov modules require CRC16 functions, but a module built outside 557657ec1fSEvgeniy Polyakov the kernel tree does. Such modules that use library CRC16 567657ec1fSEvgeniy Polyakov functions require M here. 577657ec1fSEvgeniy Polyakov 58f11f594eSMartin K. Petersenconfig CRC_T10DIF 59f11f594eSMartin K. Petersen tristate "CRC calculation for the T10 Data Integrity Field" 60f11f594eSMartin K. Petersen help 61f11f594eSMartin K. Petersen This option is only needed if a module that's not in the 62f11f594eSMartin K. Petersen kernel tree needs to calculate CRC checks for use with the 63f11f594eSMartin K. Petersen SCSI data integrity subsystem. 64f11f594eSMartin K. Petersen 653e7cbae7SIvo van Doornconfig CRC_ITU_T 663e7cbae7SIvo van Doorn tristate "CRC ITU-T V.41 functions" 673e7cbae7SIvo van Doorn help 683e7cbae7SIvo van Doorn This option is provided for the case where no in-kernel-tree 693e7cbae7SIvo van Doorn modules require CRC ITU-T V.41 functions, but a module built outside 703e7cbae7SIvo van Doorn the kernel tree does. Such modules that use library CRC ITU-T V.41 713e7cbae7SIvo van Doorn functions require M here. 723e7cbae7SIvo van Doorn 731da177e4SLinus Torvaldsconfig CRC32 7446c5801eSDarrick J. Wong tristate "CRC32/CRC32c functions" 751da177e4SLinus Torvalds default y 76906d66dfSAkinobu Mita select BITREVERSE 771da177e4SLinus Torvalds help 781da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 7946c5801eSDarrick J. Wong modules require CRC32/CRC32c functions, but a module built outside 8046c5801eSDarrick J. Wong the kernel tree does. Such modules that use library CRC32/CRC32c 8146c5801eSDarrick J. Wong functions require M here. 821da177e4SLinus Torvalds 833863ef31SBob Pearsonconfig CRC32_SELFTEST 843863ef31SBob Pearson bool "CRC32 perform self test on init" 853863ef31SBob Pearson default n 863863ef31SBob Pearson depends on CRC32 873863ef31SBob Pearson help 883863ef31SBob Pearson This option enables the CRC32 library functions to perform a 893863ef31SBob Pearson self test on initialization. The self test computes crc32_le 903863ef31SBob Pearson and crc32_be over byte strings with random alignment and length 913863ef31SBob Pearson and computes the total elapsed time and number of bytes processed. 923863ef31SBob Pearson 935cde7656SDarrick J. Wongchoice 945cde7656SDarrick J. Wong prompt "CRC32 implementation" 955cde7656SDarrick J. Wong depends on CRC32 965cde7656SDarrick J. Wong default CRC32_SLICEBY8 9782edb4baSDarrick J. Wong help 9882edb4baSDarrick J. Wong This option allows a kernel builder to override the default choice 9982edb4baSDarrick J. Wong of CRC32 algorithm. Choose the default ("slice by 8") unless you 10082edb4baSDarrick J. Wong know that you need one of the others. 1015cde7656SDarrick J. Wong 1025cde7656SDarrick J. Wongconfig CRC32_SLICEBY8 1035cde7656SDarrick J. Wong bool "Slice by 8 bytes" 1045cde7656SDarrick J. Wong help 1055cde7656SDarrick J. Wong Calculate checksum 8 bytes at a time with a clever slicing algorithm. 1065cde7656SDarrick J. Wong This is the fastest algorithm, but comes with a 8KiB lookup table. 1075cde7656SDarrick J. Wong Most modern processors have enough cache to hold this table without 1085cde7656SDarrick J. Wong thrashing the cache. 1095cde7656SDarrick J. Wong 1105cde7656SDarrick J. Wong This is the default implementation choice. Choose this one unless 1115cde7656SDarrick J. Wong you have a good reason not to. 1125cde7656SDarrick J. Wong 1135cde7656SDarrick J. Wongconfig CRC32_SLICEBY4 1145cde7656SDarrick J. Wong bool "Slice by 4 bytes" 1155cde7656SDarrick J. Wong help 1165cde7656SDarrick J. Wong Calculate checksum 4 bytes at a time with a clever slicing algorithm. 1175cde7656SDarrick J. Wong This is a bit slower than slice by 8, but has a smaller 4KiB lookup 1185cde7656SDarrick J. Wong table. 1195cde7656SDarrick J. Wong 1205cde7656SDarrick J. Wong Only choose this option if you know what you are doing. 1215cde7656SDarrick J. Wong 1225cde7656SDarrick J. Wongconfig CRC32_SARWATE 1235cde7656SDarrick J. Wong bool "Sarwate's Algorithm (one byte at a time)" 1245cde7656SDarrick J. Wong help 1255cde7656SDarrick J. Wong Calculate checksum a byte at a time using Sarwate's algorithm. This 1265cde7656SDarrick J. Wong is not particularly fast, but has a small 256 byte lookup table. 1275cde7656SDarrick J. Wong 1285cde7656SDarrick J. Wong Only choose this option if you know what you are doing. 1295cde7656SDarrick J. Wong 1305cde7656SDarrick J. Wongconfig CRC32_BIT 1315cde7656SDarrick J. Wong bool "Classic Algorithm (one bit at a time)" 1325cde7656SDarrick J. Wong help 1335cde7656SDarrick J. Wong Calculate checksum one bit at a time. This is VERY slow, but has 1345cde7656SDarrick J. Wong no lookup table. This is provided as a debugging option. 1355cde7656SDarrick J. Wong 1365cde7656SDarrick J. Wong Only choose this option if you are debugging crc32. 1375cde7656SDarrick J. Wong 1385cde7656SDarrick J. Wongendchoice 1395cde7656SDarrick J. Wong 140ad241528SJan Nikitenkoconfig CRC7 141ad241528SJan Nikitenko tristate "CRC7 functions" 142ad241528SJan Nikitenko help 143ad241528SJan Nikitenko This option is provided for the case where no in-kernel-tree 144ad241528SJan Nikitenko modules require CRC7 functions, but a module built outside 145ad241528SJan Nikitenko the kernel tree does. Such modules that use library CRC7 146ad241528SJan Nikitenko functions require M here. 147ad241528SJan Nikitenko 1481da177e4SLinus Torvaldsconfig LIBCRC32C 1491da177e4SLinus Torvalds tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check" 15093027354SHerbert Xu select CRYPTO 15169c35efcSHerbert Xu select CRYPTO_CRC32C 1521da177e4SLinus Torvalds help 1531da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 1541da177e4SLinus Torvalds modules require CRC32c functions, but a module built outside the 1551da177e4SLinus Torvalds kernel tree does. Such modules that use library CRC32c functions 1561da177e4SLinus Torvalds require M here. See Castagnoli93. 1571da177e4SLinus Torvalds Module will be libcrc32c. 1581da177e4SLinus Torvalds 1597150962dSArend van Sprielconfig CRC8 1607150962dSArend van Spriel tristate "CRC8 function" 1617150962dSArend van Spriel help 1627150962dSArend van Spriel This option provides CRC8 function. Drivers may select this 1637150962dSArend van Spriel when they need to do cyclic redundancy check according CRC8 1647150962dSArend van Spriel algorithm. Module will be called crc8. 1657150962dSArend van Spriel 166e65e1fc2SAl Viroconfig AUDIT_GENERIC 167e65e1fc2SAl Viro bool 168e65e1fc2SAl Viro depends on AUDIT && !AUDIT_ARCH 169e65e1fc2SAl Viro default y 170e65e1fc2SAl Viro 1711da177e4SLinus Torvalds# 1721da177e4SLinus Torvalds# compression support is select'ed if needed 1731da177e4SLinus Torvalds# 1741da177e4SLinus Torvaldsconfig ZLIB_INFLATE 1751da177e4SLinus Torvalds tristate 1761da177e4SLinus Torvalds 1771da177e4SLinus Torvaldsconfig ZLIB_DEFLATE 1781da177e4SLinus Torvalds tristate 1791da177e4SLinus Torvalds 18064c70b1cSRichard Purdieconfig LZO_COMPRESS 18164c70b1cSRichard Purdie tristate 18264c70b1cSRichard Purdie 18364c70b1cSRichard Purdieconfig LZO_DECOMPRESS 18464c70b1cSRichard Purdie tristate 18564c70b1cSRichard Purdie 18624fa0402SLasse Collinsource "lib/xz/Kconfig" 18724fa0402SLasse Collin 1881da177e4SLinus Torvalds# 189c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with 190c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.) 191c8531ab3SH. Peter Anvin# 192c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP 1937856a16eSH. Peter Anvin select ZLIB_INFLATE 194c8531ab3SH. Peter Anvin tristate 195c8531ab3SH. Peter Anvin 196c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2 197c8531ab3SH. Peter Anvin tristate 198c8531ab3SH. Peter Anvin 199c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA 200c8531ab3SH. Peter Anvin tristate 201c8531ab3SH. Peter Anvin 2023ebe1243SLasse Collinconfig DECOMPRESS_XZ 2033ebe1243SLasse Collin select XZ_DEC 2043ebe1243SLasse Collin tristate 2053ebe1243SLasse Collin 206cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO 207cacb246fSAlbin Tonnerre select LZO_DECOMPRESS 208cacb246fSAlbin Tonnerre tristate 209cacb246fSAlbin Tonnerre 210c8531ab3SH. Peter Anvin# 211f14f75b8SJes Sorensen# Generic allocator support is selected if needed 212f14f75b8SJes Sorensen# 213f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR 214f14f75b8SJes Sorensen boolean 215f14f75b8SJes Sorensen 216f14f75b8SJes Sorensen# 2171da177e4SLinus Torvalds# reed solomon support is select'ed if needed 2181da177e4SLinus Torvalds# 2191da177e4SLinus Torvaldsconfig REED_SOLOMON 2201da177e4SLinus Torvalds tristate 2211da177e4SLinus Torvalds 2221da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8 2231da177e4SLinus Torvalds boolean 2241da177e4SLinus Torvalds 2251da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8 2261da177e4SLinus Torvalds boolean 2271da177e4SLinus Torvalds 2281da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16 2291da177e4SLinus Torvalds boolean 2301da177e4SLinus Torvalds 2311da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16 2321da177e4SLinus Torvalds boolean 2331da177e4SLinus Torvalds 234f7704347SDavid S. Miller# 235437aa565SIvan Djelic# BCH support is selected if needed 236437aa565SIvan Djelic# 237437aa565SIvan Djelicconfig BCH 238437aa565SIvan Djelic tristate 239437aa565SIvan Djelic 240437aa565SIvan Djelicconfig BCH_CONST_PARAMS 241437aa565SIvan Djelic boolean 242437aa565SIvan Djelic help 243437aa565SIvan Djelic Drivers may select this option to force specific constant 244437aa565SIvan Djelic values for parameters 'm' (Galois field order) and 't' 245437aa565SIvan Djelic (error correction capability). Those specific values must 246437aa565SIvan Djelic be set by declaring default values for symbols BCH_CONST_M 247437aa565SIvan Djelic and BCH_CONST_T. 248437aa565SIvan Djelic Doing so will enable extra compiler optimizations, 249437aa565SIvan Djelic improving encoding and decoding performance up to 2x for 250437aa565SIvan Djelic usual (m,t) values (typically such that m*t < 200). 251437aa565SIvan Djelic When this option is selected, the BCH library supports 252437aa565SIvan Djelic only a single (m,t) configuration. This is mainly useful 253437aa565SIvan Djelic for NAND flash board drivers requiring known, fixed BCH 254437aa565SIvan Djelic parameters. 255437aa565SIvan Djelic 256437aa565SIvan Djelicconfig BCH_CONST_M 257437aa565SIvan Djelic int 258437aa565SIvan Djelic range 5 15 259437aa565SIvan Djelic help 260437aa565SIvan Djelic Constant value for Galois field order 'm'. If 'k' is the 261437aa565SIvan Djelic number of data bits to protect, 'm' should be chosen such 262437aa565SIvan Djelic that (k + m*t) <= 2**m - 1. 263437aa565SIvan Djelic Drivers should declare a default value for this symbol if 264437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 265437aa565SIvan Djelic 266437aa565SIvan Djelicconfig BCH_CONST_T 267437aa565SIvan Djelic int 268437aa565SIvan Djelic help 269437aa565SIvan Djelic Constant value for error correction capability in bits 't'. 270437aa565SIvan Djelic Drivers should declare a default value for this symbol if 271437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 272437aa565SIvan Djelic 273437aa565SIvan Djelic# 274f7704347SDavid S. Miller# Textsearch support is select'ed if needed 275f7704347SDavid S. Miller# 2762de4ff7bSThomas Grafconfig TEXTSEARCH 277f7704347SDavid S. Miller boolean 2781da177e4SLinus Torvalds 279df3fb93aSThomas Grafconfig TEXTSEARCH_KMP 280f7704347SDavid S. Miller tristate 281df3fb93aSThomas Graf 2828082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM 28329cb9f9cSDavid S. Miller tristate 2848082e4edSPablo Neira Ayuso 2856408f79cSThomas Grafconfig TEXTSEARCH_FSM 286f7704347SDavid S. Miller tristate 2876408f79cSThomas Graf 2885db53f3eSJoern Engelconfig BTREE 2895db53f3eSJoern Engel boolean 2905db53f3eSJoern Engel 2915ea81769SAl Viroconfig HAS_IOMEM 292ee36c2bfSAl Viro boolean 2935ea81769SAl Viro depends on !NO_IOMEM 294087fafd1SRichard Weinberger select GENERIC_IO 2955ea81769SAl Viro default y 2965ea81769SAl Viro 2975ea81769SAl Viroconfig HAS_IOPORT 2985ea81769SAl Viro boolean 2995ea81769SAl Viro depends on HAS_IOMEM && !NO_IOPORT 300ee36c2bfSAl Viro default y 301ee36c2bfSAl Viro 302411f0f3eSHeiko Carstensconfig HAS_DMA 303411f0f3eSHeiko Carstens boolean 304411f0f3eSHeiko Carstens depends on !NO_DMA 305411f0f3eSHeiko Carstens default y 306411f0f3eSHeiko Carstens 307928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE 308928923c7SGeert Uytterhoeven bool 309928923c7SGeert Uytterhoeven 310aab46da0SRusty Russellconfig CPUMASK_OFFSTACK 311aab46da0SRusty Russell bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS 312aab46da0SRusty Russell help 313aab46da0SRusty Russell Use dynamic allocation for cpumask_var_t, instead of putting 314aab46da0SRusty Russell them on the stack. This is a bit more expensive, but avoids 315aab46da0SRusty Russell stack overflow. 316aab46da0SRusty Russell 3178c384cdeSRusty Russellconfig DISABLE_OBSOLETE_CPUMASK_FUNCTIONS 3188c384cdeSRusty Russell bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS 3198c384cdeSRusty Russell depends on EXPERIMENTAL && BROKEN 3208c384cdeSRusty Russell 321c39649c3SBen Hutchingsconfig CPU_RMAP 322c39649c3SBen Hutchings bool 323c39649c3SBen Hutchings depends on SMP 324c39649c3SBen Hutchings 32575957ba3STom Herbertconfig DQL 32675957ba3STom Herbert bool 32775957ba3STom Herbert 328e9cc8bddSGeert Uytterhoeven# 329e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed 330e9cc8bddSGeert Uytterhoeven# 331e9cc8bddSGeert Uytterhoevenconfig NLATTR 332e9cc8bddSGeert Uytterhoeven bool 333e9cc8bddSGeert Uytterhoeven 33409d4e0edSPaul Mackerras# 33509d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed 33609d4e0edSPaul Mackerras# 33709d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64 33809d4e0edSPaul Mackerras bool 33909d4e0edSPaul Mackerras 340b411b363SPhilipp Reisnerconfig LRU_CACHE 341b411b363SPhilipp Reisner tristate 342b411b363SPhilipp Reisner 343c5485a7eSBruno Randolfconfig AVERAGE 344a7a9a24dSMichael Buesch bool "Averaging functions" 345a7a9a24dSMichael Buesch help 346a7a9a24dSMichael Buesch This option is provided for the case where no in-kernel-tree 347a7a9a24dSMichael Buesch modules require averaging functions, but a module built outside 348a7a9a24dSMichael Buesch the kernel tree does. Such modules that use library averaging 349a7a9a24dSMichael Buesch functions require Y here. 350a7a9a24dSMichael Buesch 351a7a9a24dSMichael Buesch If unsure, say N. 352c5485a7eSBruno Randolf 353c6df4b17SDavid Millerconfig CLZ_TAB 354c6df4b17SDavid Miller bool 355c6df4b17SDavid Miller 35610f8113eSArend van Sprielconfig CORDIC 357d89ce936SMichael Witten tristate "CORDIC algorithm" 35810f8113eSArend van Spriel help 359435a95c5SMichael Witten This option provides an implementation of the CORDIC algorithm; 360435a95c5SMichael Witten calculations are in fixed point. Module will be called cordic. 36110f8113eSArend van Spriel 3629c1c21a0SAneesh Vconfig DDR 3639c1c21a0SAneesh V bool "JEDEC DDR data" 3649c1c21a0SAneesh V help 3659c1c21a0SAneesh V Data from JEDEC specs for DDR SDRAM memories, 3669c1c21a0SAneesh V particularly the AC timing parameters and addressing 3679c1c21a0SAneesh V information. This data is useful for drivers handling 3689c1c21a0SAneesh V DDR SDRAM controllers. 3699c1c21a0SAneesh V 370d9c46b18SDmitry Kasatkinconfig MPILIB 3712e5f094bSDmitry Kasatkin tristate 372c6df4b17SDavid Miller select CLZ_TAB 373d9c46b18SDmitry Kasatkin help 374d9c46b18SDmitry Kasatkin Multiprecision maths library from GnuPG. 375d9c46b18SDmitry Kasatkin It is used to implement RSA digital signature verification, 376d9c46b18SDmitry Kasatkin which is used by IMA/EVM digital signature extension. 377d9c46b18SDmitry Kasatkin 3787e8dec91SDmitry Kasatkinconfig MPILIB_EXTRA 3792e5f094bSDmitry Kasatkin bool 3807e8dec91SDmitry Kasatkin depends on MPILIB 3817e8dec91SDmitry Kasatkin help 38268adcad5SDmitry Kasatkin Additional sources of multiprecision maths library from GnuPG. 38368adcad5SDmitry Kasatkin This code is unnecessary for RSA digital signature verification, 38468adcad5SDmitry Kasatkin but can be compiled if needed. 3857e8dec91SDmitry Kasatkin 3865e8898e9SDmitry Kasatkinconfig SIGNATURE 3872e5f094bSDmitry Kasatkin tristate 388be440ec7SDmitry Kasatkin depends on KEYS && CRYPTO 389be440ec7SDmitry Kasatkin select CRYPTO_SHA1 390051dbb91SDmitry Kasatkin select MPILIB 391051dbb91SDmitry Kasatkin help 392051dbb91SDmitry Kasatkin Digital signature verification. Currently only RSA is supported. 393051dbb91SDmitry Kasatkin Implementation is done using GnuPG MPI library 394051dbb91SDmitry Kasatkin 3952de4ff7bSThomas Grafendmenu 396