xref: /openbmc/u-boot/lib/Kconfig (revision ebf7fff20ab8127f318b238e47a21856497bd6fe)
1 ed36323fSMasahiro Yamadamenu "Library routines"
2 ed36323fSMasahiro Yamada
3 b0928da6SMasahiro Yamadaconfig CC_OPTIMIZE_LIBS_FOR_SPEED
4 b0928da6SMasahiro Yamada	bool "Optimize libraries for speed"
5 b0928da6SMasahiro Yamada	help
6 b0928da6SMasahiro Yamada	  Enabling this option will pass "-O2" to gcc when compiling
7 b0928da6SMasahiro Yamada	  under "lib" directory.
8 b0928da6SMasahiro Yamada
9 b0928da6SMasahiro Yamada	  If unsure, say N.
10 b0928da6SMasahiro Yamada
11 45ccec8fSMasahiro Yamadaconfig HAVE_PRIVATE_LIBGCC
12 45ccec8fSMasahiro Yamada	bool
13 45ccec8fSMasahiro Yamada
14 45ccec8fSMasahiro Yamadaconfig USE_PRIVATE_LIBGCC
15 45ccec8fSMasahiro Yamada	bool "Use private libgcc"
16 45ccec8fSMasahiro Yamada	depends on HAVE_PRIVATE_LIBGCC
17 91b86e21SMarek Vasut	default y if HAVE_PRIVATE_LIBGCC && ((ARM && !ARM64) || MIPS)
18 45ccec8fSMasahiro Yamada	help
19 45ccec8fSMasahiro Yamada	  This option allows you to use the built-in libgcc implementation
20 67976306SMasahiro Yamada	  of U-Boot instead of the one provided by the compiler.
21 45ccec8fSMasahiro Yamada	  If unsure, say N.
22 45ccec8fSMasahiro Yamada
23 8c688bc4SMasahiro Yamadaconfig SYS_HZ
24 8c688bc4SMasahiro Yamada	int
25 8c688bc4SMasahiro Yamada	default 1000
26 8c688bc4SMasahiro Yamada	help
27 8c688bc4SMasahiro Yamada	  The frequency of the timer returned by get_timer().
28 8c688bc4SMasahiro Yamada	  get_timer() must operate in milliseconds and this option must be
29 8c688bc4SMasahiro Yamada	  set to 1000.
30 8c688bc4SMasahiro Yamada
31 7d9cde10SStefan Roeseconfig USE_TINY_PRINTF
32 7d9cde10SStefan Roese	bool "Enable tiny printf() version"
33 7d9cde10SStefan Roese	help
34 7d9cde10SStefan Roese	  This option enables a tiny, stripped down printf version.
35 7d9cde10SStefan Roese	  This should only be used in space limited environments,
36 7d9cde10SStefan Roese	  like SPL versions with hard memory limits. This version
37 7d9cde10SStefan Roese	  reduces the code size by about 2.5KiB on armv7.
38 7d9cde10SStefan Roese
39 7d9cde10SStefan Roese	  The supported format specifiers are %c, %s, %u/%d and %x.
40 7d9cde10SStefan Roese
41 1a60650cSJoe Hershbergerconfig REGEX
42 1a60650cSJoe Hershberger	bool "Enable regular expression support"
43 f7848d90SJoe Hershberger	default y if NET
44 1a60650cSJoe Hershberger	help
45 1a60650cSJoe Hershberger	  If this variable is defined, U-Boot is linked against the
46 1a60650cSJoe Hershberger	  SLRE (Super Light Regular Expression) library, which adds
47 1a60650cSJoe Hershberger	  regex support to some commands, for example "env grep" and
48 1a60650cSJoe Hershberger	  "setexpr".
49 1a60650cSJoe Hershberger
50 9ba9e85fSMichal Simekconfig LIB_RAND
51 3850dbe8SMasahiro Yamada	bool "Pseudo-random library support "
52 3850dbe8SMasahiro Yamada	help
53 3850dbe8SMasahiro Yamada	  This library provides pseudo-random number generator functions.
54 9ba9e85fSMichal Simek
55 d1389403SSimon Glasssource lib/dhry/Kconfig
56 d1389403SSimon Glass
57 d9f23c7fSRuchika Guptasource lib/rsa/Kconfig
58 c4beb22fSRuchika Gupta
59 a7d660bcSSimon Glassconfig TPM
60 a7d660bcSSimon Glass	bool "Trusted Platform Module (TPM) Support"
61 2419cd16SSimon Glass	depends on DM
62 a7d660bcSSimon Glass	help
63 a7d660bcSSimon Glass	  This enables support for TPMs which can be used to provide security
64 a7d660bcSSimon Glass	  features for your board. The TPM can be connected via LPC or I2C
65 a7d660bcSSimon Glass	  and a sandbox TPM is provided for testing purposes. Use the 'tpm'
66 a7d660bcSSimon Glass	  command to interactive the TPM. Driver model support is provided
67 a7d660bcSSimon Glass	  for the low-level TPM interface, but only one TPM is supported at
68 a7d660bcSSimon Glass	  a time by the TPM library.
69 a7d660bcSSimon Glass
70 94e3c8c4Sgaurav ranamenu "Hashing Support"
71 94e3c8c4Sgaurav rana
72 94e3c8c4Sgaurav ranaconfig SHA1
73 94e3c8c4Sgaurav rana	bool "Enable SHA1 support"
74 94e3c8c4Sgaurav rana	help
75 94e3c8c4Sgaurav rana	  This option enables support of hashing using SHA1 algorithm.
76 94e3c8c4Sgaurav rana	  The hash is calculated in software.
77 94e3c8c4Sgaurav rana	  The SHA1 algorithm produces a 160-bit (20-byte) hash value
78 94e3c8c4Sgaurav rana	  (digest).
79 94e3c8c4Sgaurav rana
80 94e3c8c4Sgaurav ranaconfig SHA256
81 94e3c8c4Sgaurav rana	bool "Enable SHA256 support"
82 94e3c8c4Sgaurav rana	help
83 94e3c8c4Sgaurav rana	  This option enables support of hashing using SHA256 algorithm.
84 94e3c8c4Sgaurav rana	  The hash is calculated in software.
85 94e3c8c4Sgaurav rana	  The SHA256 algorithm produces a 256-bit (32-byte) hash value
86 94e3c8c4Sgaurav rana	  (digest).
87 94e3c8c4Sgaurav rana
88 94e3c8c4Sgaurav ranaconfig SHA_HW_ACCEL
89 94e3c8c4Sgaurav rana	bool "Enable hashing using hardware"
90 94e3c8c4Sgaurav rana	help
91 94e3c8c4Sgaurav rana	  This option enables hardware acceleration
92 94e3c8c4Sgaurav rana	  for SHA1/SHA256 hashing.
93 94e3c8c4Sgaurav rana	  This affects the 'hash' command and also the
94 94e3c8c4Sgaurav rana	  hash_lookup_algo() function.
95 94e3c8c4Sgaurav rana
96 94e3c8c4Sgaurav ranaconfig SHA_PROG_HW_ACCEL
97 94e3c8c4Sgaurav rana	bool "Enable Progressive hashing support using hardware"
98 94e3c8c4Sgaurav rana	depends on SHA_HW_ACCEL
99 94e3c8c4Sgaurav rana	help
100 94e3c8c4Sgaurav rana	  This option enables hardware-acceleration for
101 94e3c8c4Sgaurav rana	  SHA1/SHA256 progressive hashing.
102 94e3c8c4Sgaurav rana	  Data can be streamed in a block at a time and the hashing
103 94e3c8c4Sgaurav rana	  is performed in hardware.
104 94e3c8c4Sgaurav ranaendmenu
105 94e3c8c4Sgaurav rana
106 027b728dSJulius Wernermenu "Compression Support"
107 027b728dSJulius Werner
108 027b728dSJulius Wernerconfig LZ4
109 027b728dSJulius Werner	bool "Enable LZ4 decompression support"
110 027b728dSJulius Werner	help
111 027b728dSJulius Werner	  If this option is set, support for LZ4 compressed images
112 027b728dSJulius Werner	  is included. The LZ4 algorithm can run in-place as long as the
113 027b728dSJulius Werner	  compressed image is loaded to the end of the output buffer, and
114 027b728dSJulius Werner	  trades lower compression ratios for much faster decompression.
115 027b728dSJulius Werner
116 027b728dSJulius Werner	  NOTE: This implements the release version of the LZ4 frame
117 027b728dSJulius Werner	  format as generated by default by the 'lz4' command line tool.
118 027b728dSJulius Werner	  This is not the same as the outdated, less efficient legacy
119 027b728dSJulius Werner	  frame format currently (2015) implemented in the Linux kernel
120 027b728dSJulius Werner	  (generated by 'lz4 -l'). The two formats are incompatible.
121 027b728dSJulius Werner
122 027b728dSJulius Wernerendmenu
123 027b728dSJulius Werner
124 6501ff62SPrzemyslaw Marczakconfig ERRNO_STR
125 6501ff62SPrzemyslaw Marczak	bool "Enable function for getting errno-related string message"
126 6501ff62SPrzemyslaw Marczak	help
127 6501ff62SPrzemyslaw Marczak	  The function errno_str(int errno), returns a pointer to the errno
128 6501ff62SPrzemyslaw Marczak	  corresponding text message:
129 6501ff62SPrzemyslaw Marczak	  - if errno is null or positive number - a pointer to "Success" message
130 6501ff62SPrzemyslaw Marczak	  - if errno is negative - a pointer to errno related message
131 6501ff62SPrzemyslaw Marczak
132 69e173ebSSimon Glassconfig OF_LIBFDT
133 69e173ebSSimon Glass	bool "Enable the FDT library"
134 69e173ebSSimon Glass	default y if OF_CONTROL
135 69e173ebSSimon Glass	help
136 69e173ebSSimon Glass	  This enables the FDT library (libfdt). It provides functions for
137 69e173ebSSimon Glass	  accessing binary device tree images in memory, such as adding and
138 69e173ebSSimon Glass	  removing notes and properties, scanning through the tree and finding
139 69e173ebSSimon Glass	  particular compatible nodes. The library operates on a flattened
140 69e173ebSSimon Glass	  version of the device tree.
141 69e173ebSSimon Glass
142 ddf67f71SMaxime Ripardconfig OF_LIBFDT_OVERLAY
143 ddf67f71SMaxime Ripard	bool "Enable the FDT library overlay support"
144 ddf67f71SMaxime Ripard	help
145 ddf67f71SMaxime Ripard	  This enables the FDT library (libfdt) overlay support.
146 ddf67f71SMaxime Ripard
147 aa34fbc0SSimon Glassconfig SPL_OF_LIBFDT
148 aa34fbc0SSimon Glass	bool "Enable the FDT library for SPL"
149 aa34fbc0SSimon Glass	default y if SPL_OF_CONTROL
150 aa34fbc0SSimon Glass	help
151 aa34fbc0SSimon Glass	  This enables the FDT library (libfdt). It provides functions for
152 aa34fbc0SSimon Glass	  accessing binary device tree images in memory, such as adding and
153 aa34fbc0SSimon Glass	  removing notes and properties, scanning through the tree and finding
154 aa34fbc0SSimon Glass	  particular compatible nodes. The library operates on a flattened
155 aa34fbc0SSimon Glass	  version of the device tree.
156 aa34fbc0SSimon Glass
157 *ebf7fff2SHeiko Schocherconfig FDT_FIXUP_PARTITIONS
158 *ebf7fff2SHeiko Schocher	bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
159 *ebf7fff2SHeiko Schocher	depends on OF_LIBFDT
160 *ebf7fff2SHeiko Schocher	default n
161 *ebf7fff2SHeiko Schocher	help
162 *ebf7fff2SHeiko Schocher	  Allow overwriting defined partitions in the device tree blob
163 *ebf7fff2SHeiko Schocher	  using partition info defined in the 'mtdparts' environment
164 *ebf7fff2SHeiko Schocher	  variable.
165 *ebf7fff2SHeiko Schocher
166 867a6ac8SSimon Glasssource lib/efi/Kconfig
167 ed980b8cSAlexander Grafsource lib/efi_loader/Kconfig
168 867a6ac8SSimon Glass
169 ed36323fSMasahiro Yamadaendmenu
170