1menu "Tools options"
2
3config MKIMAGE_DTC_PATH
4	string "Path to dtc binary for use within mkimage"
5	default "dtc"
6	help
7	  The mkimage host tool will, in order to generate FIT images make
8	  calls to the dtc application in order to create the output.  In
9	  some cases the system dtc may not support all required features
10	  and the path to a different version should be given here.
11
12config TOOLS_IMAGE_PRE_LOAD
13	def_bool y
14	help
15	  Enable pre-load signature support in the tools builds.
16
17config TOOLS_CRC16
18	def_bool y
19	help
20	  Enable CRC32 support in the tools builds
21
22config TOOLS_CRC32
23	def_bool y
24	help
25	  Enable CRC32 support in the tools builds
26
27config TOOLS_LIBCRYPTO
28	bool "Use OpenSSL's libcrypto library for host tools"
29	default y
30	help
31	  Cryptographic signature, verification, and encryption of images is
32	  provided by host tools using OpenSSL's libcrypto. Select 'n' here if
33	  you wish to build host tools without OpenSSL. mkimage will not have
34	  the ability to sign images.
35	  This selection does not affect target features, such as runtime FIT
36	  signature verification.
37
38config TOOLS_KWBIMAGE
39	bool "Enable kwbimage support in host tools"
40	default y
41	select TOOLS_LIBCRYPTO
42
43config TOOLS_FIT
44	def_bool y
45	help
46	  Enable FIT support in the tools builds.
47
48config TOOLS_FIT_FULL_CHECK
49	def_bool y
50	help
51	  Do a full check of the FIT before using it in the tools builds
52
53config TOOLS_FIT_PRINT
54	def_bool y
55	help
56	  Print the content of the FIT verbosely in the tools builds
57
58config TOOLS_FIT_RSASSA_PSS
59	def_bool y
60	help
61	  Support the rsassa-pss signature scheme in the tools builds
62
63config TOOLS_FIT_SIGNATURE
64	depends on TOOLS_LIBCRYPTO
65	def_bool y
66	help
67	  Enable signature verification of FIT uImages in the tools builds
68
69config TOOLS_FIT_SIGNATURE_MAX_SIZE
70	hex
71	depends on TOOLS_FIT_SIGNATURE
72	default 0x10000000
73
74config TOOLS_FIT_VERBOSE
75	def_bool y
76	help
77	  Support verbose FIT output in the tools builds
78
79config TOOLS_MD5
80	def_bool y
81	help
82	  Enable MD5 support in the tools builds
83
84config TOOLS_OF_LIBFDT
85	def_bool y
86	help
87	  Enable libfdt support in the tools builds
88
89config TOOLS_SHA1
90	def_bool y
91	help
92	  Enable SHA1 support in the tools builds
93
94config TOOLS_SHA256
95	def_bool y
96	help
97	  Enable SHA256 support in the tools builds
98
99config TOOLS_SHA384
100	def_bool y
101	help
102	  Enable SHA384 support in the tools builds
103
104config TOOLS_SHA512
105	def_bool y
106	help
107	  Enable SHA512 support in the tools builds
108
109config TOOLS_MKEFICAPSULE
110	bool "Build efimkcapsule command"
111	default y if EFI_LOADER
112	help
113	  This command allows users to create a UEFI capsule file and,
114	  optionally sign that file. If you want to enable UEFI capsule
115	  update feature on your target, you certainly need this.
116
117menuconfig FSPI_CONF_HEADER
118	bool "FlexSPI Header Configuration"
119	help
120	  FSPI Header Configuration
121
122config FSPI_CONF_FILE
123	string "FlexSPI Header File"
124	depends on FSPI_CONF_HEADER
125	help
126	  FlexSPI Header File name
127
128config READ_CLK_SOURCE
129	hex "Sampling Clock Source"
130	default 0x00
131	depends on FSPI_CONF_HEADER
132	help
133	  Sample Clock source for Flash, default is internal loopback clock
134
135config DEVICE_TYPE
136	hex "Flash Type"
137	default 0x01
138	depends on FSPI_CONF_HEADER
139	help
140	  Flash type: Serial NOR (0x01) and Serial NAND (0x02)
141
142config FLASH_PAD_TYPE
143	hex "Flash Pad Type"
144	default 0x01
145	depends on FSPI_CONF_HEADER
146	help
147	  Flash Pad type :
148	  Single Pad 0x01
149	  Dual Pads  0x02
150	  Quad Pad   0x04
151	  Octal Pad  0x08
152
153config SERIAL_CLK_FREQUENCY
154	hex "Serial Clock Frequency"
155	default 0x02
156	depends on FSPI_CONF_HEADER
157	help
158	  Chip specific frequency: other value 30MHz
159	  1-30MHz  2-50MHz 3-60MHz 4-75MHz 5-80MHz 6-100MHz 7-133MHz 8-166MHz
160
161config FSPI_COL_ADDR_W
162	hex "Column Address With"
163	default 0x00
164	depends on FSPI_CONF_HEADER
165	help
166	  Default 0. For HyperBus protocol, it is fixed to 3
167
168config FSPI_CONTROLLER_MISC
169	hex "FSPI miscellaneous control"
170	default 0x00000000
171	depends on FSPI_CONF_HEADER
172	help
173	  Default 0. [0x40] Controller Misc Options
174
175config FSPI_FLASH_A1_SIZE
176	hex "Size in bytes of Flash A1"
177	default 0x10000000
178	depends on FSPI_CONF_HEADER
179	help
180	  Size of Flash connected to A1 in bytes
181
182config LUT_CUSTOM_SEQUENCE
183	hex "Enable Custom Look Up Table(LUT) Sequence"
184	default 0x00
185	depends on FSPI_CONF_HEADER
186	help
187	  0 - Use predefined LUT Sequence
188	  1 - Use LUT Sequence provided
189
190config LUT_SEQUENCE
191	string "Look Up Table Sequence"
192	default "0x0b, 0x04, 0x18, 0x08, 0x08, 0x30, 0x04, 0x24"
193	depends on FSPI_CONF_HEADER
194	help
195	  Look Up Table Sequence
196
197config TOOLS_MKFWUMDATA
198	bool "Build mkfwumdata command"
199	default y if FWU_MULTI_BANK_UPDATE
200	help
201	  This command allows users to create a raw image of the FWU
202	  metadata for initial installation of the FWU multi bank
203	  update on the board. The installation method depends on
204	  the platform.
205
206endmenu
207