]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - common/Kconfig
kconfig: remove unneeded dependency on !SPL_BUILD
[karo-tx-uboot.git] / common / Kconfig
1 menu "Command line interface"
2
3 config HUSH_PARSER
4         bool "Use hush shell"
5         select SYS_HUSH_PARSER
6         help
7           This option enables the "hush" shell (from Busybox) as command line
8           interpreter, thus enabling powerful command line syntax like
9           if...then...else...fi conditionals or `&&' and '||'
10           constructs ("shell scripts").
11
12           If disabled, you get the old, much simpler behaviour with a somewhat
13           smaller memory footprint.
14
15 config SYS_HUSH_PARSER
16         bool
17         help
18           Backward compatibility.
19
20 comment "Commands"
21
22 menu "Info commands"
23
24 config CMD_BDI
25         bool "bdinfo"
26         default y
27         help
28           Print board info
29
30 config CMD_CONSOLE
31         bool "coninfo"
32         default y
33         help
34           Print console devices and information.
35
36 config CMD_LICENSE
37         bool "license"
38         help
39           Print GPL license text
40
41 endmenu
42
43 menu "Boot commands"
44
45 config CMD_BOOTD
46         bool "bootd"
47         default y
48         help
49           Run the command stored in the environment "bootcmd", i.e.
50           "bootd" does the same thing as "run bootcmd".
51
52 config CMD_BOOTM
53         bool "bootm"
54         default y
55         help
56           Boot an application image from the memory.
57
58 config CMD_BOOTZ
59         bool "bootz"
60         default y
61         help
62           Boot a Linux kernel zImage.
63
64 config CMD_BOOTCE
65         bool "bootce"
66         help
67           Boot a WindowsCE image.
68
69 config CMD_GO
70         bool "go"
71         default y
72         help
73           Start an application at a given address.
74
75 config CMD_RUN
76         bool "run"
77         default y
78         help
79           Run the command in the given environment variable.
80
81 config CMD_IMI
82         bool "iminfo"
83         default y
84         help
85           Print header information for application image.
86
87 config CMD_IMLS
88         bool "imls"
89         default !SYS_NO_FLASH
90         help
91           List all images found in flash
92
93 config CMD_XIMG
94         bool "imxtract"
95         default y
96         help
97           Extract a part of a multi-image.
98
99 endmenu
100
101 menu "DTB support"
102
103 config OF_LIBFDT
104         bool "Enable FDT commands"
105
106 config OF_BOARD_SETUP
107         bool "Support DT modifications by board code"
108         depends on OF_LIBFDT
109
110 endmenu
111
112 menu "Environment commands"
113
114 config CMD_EXPORTENV
115         bool "env export"
116         default y
117         help
118           Export environments.
119
120 config CMD_IMPORTENV
121         bool "env import"
122         default y
123         help
124           Import environments.
125
126 config CMD_EDITENV
127         bool "editenv"
128         default y
129         help
130           Edit environment variable.
131
132 config CMD_SAVEENV
133         bool "saveenv"
134         default y
135         help
136           Run the command in the given environment variable.
137
138 endmenu
139
140 menu "Memory commands"
141
142 config CMD_MEMORY
143         bool "md, mm, nm, mw, cp, cmp, base, loop"
144         default y
145         help
146           Memeory commands.
147             md - memory display
148             mm - memory modify (auto-incrementing address)
149             nm - memory modify (constant address)
150             mw - memory write (fill)
151             cp - memory copy
152             cmp - memory compare
153             base - print or set address offset
154             loop - initinite loop on address range
155
156 config CMD_CRC32
157         bool "crc32"
158         default y
159         help
160           Compute CRC32.
161
162 config LOOPW
163         bool "loopw"
164         help
165           Infinite write loop on address range
166
167 config CMD_MEMTEST
168         bool "crc32"
169         help
170           Simple RAM read/write test.
171
172 config CMD_MX_CYCLIC
173         bool "mdc, mwc"
174         help
175           mdc - memory display cyclic
176           mwc - memory write cyclic
177
178 config CMD_MEMINFO
179         bool "meminfo"
180         help
181           Display memory information.
182
183 endmenu
184
185 menu "Device access commands"
186
187 config CMD_DM
188         bool "dm - Access to driver model information"
189         depends on DM
190         default y
191         help
192           Provides access to driver model data structures and information,
193           such as a list of devices, list of uclasses and the state of each
194           device (e.g. activated). This is not required for operation, but
195           can be useful to see the state of driver model for debugging or
196           interest.
197
198 config CMD_DEMO
199         bool "demo - Demonstration commands for driver model"
200         depends on DM
201         help
202           Provides a 'demo' command which can be used to play around with
203           driver model. To use this properly you will need to enable one or
204           both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
205           Otherwise you will always get an empty list of devices. The demo
206           devices are defined in the sandbox device tree, so the easiest
207           option is to use sandbox and pass the -d point to sandbox's
208           u-boot.dtb file.
209
210 config CMD_LOADB
211         bool "loadb"
212         default y
213         help
214           Load a binary file over serial line.
215
216 config CMD_LOADS
217         bool "loads"
218         default y
219         help
220           Load an S-Record file over serial line
221
222 config CMD_FLASH
223         bool "flinfo, erase, protect"
224         default y if !SYS_NO_FLASH
225         help
226           NOR flash support.
227             flinfo - print FLASH memory information
228             erase - FLASH memory
229             protect - enable or disable FLASH write protection
230
231 config MTD_DEVICE
232         bool "MTD device support"
233
234 config CMD_MTDPARTS
235         bool "MTD partitioning support"
236         default y
237         depends on MTD_DEVICE && (CMD_FLASH || CMD_NAND)
238
239 config CMD_NAND
240         bool "nand"
241         help
242           NAND support.
243
244 config CMD_NAND_TRIMFFS
245         bool "Enable nand write.trimffs command"
246         help
247           Enable command to leave page sized runs of 0xff patterns in
248           erased state rather than overwriting them. This is required
249           for using NAND flash filesystems on NAND controllers with
250           a non-0xff ECC code for all 0xff data.
251
252 config CMD_ROMUPDATE
253         bool
254         depends on NAND
255
256 config CMD_MMC
257         bool "mmc/sd"
258         select PARTITIONS
259         help
260           MMC/SD support.
261
262 config CMD_SPI
263         bool "sspi"
264         help
265           SPI utility command.
266
267 config CMD_I2C
268         bool "i2c"
269         help
270           I2C support.
271
272 config CMD_USB
273         bool "usb"
274         help
275           USB support.
276
277 config CMD_FPGA
278         bool "fpga"
279         default y
280         help
281           FPGA support.
282
283 endmenu
284
285
286 menu "Shell scripting commands"
287
288 config CMD_ECHO
289         bool "echo"
290         default y
291         help
292           Echo args to console
293
294 config CMD_ITEST
295         bool "itest"
296         default y
297         help
298           Return true/false on integer compare.
299
300 config CMD_SOURCE
301         bool "source"
302         default y
303         help
304           Run script from memory
305
306 endmenu
307
308 menu "Network commands"
309
310 config CMD_NET
311         bool "bootp, tftpboot"
312         default y
313         help
314           Network commands.
315           bootp - boot image via network using BOOTP/TFTP protocol
316           tftpboot - boot image via network using TFTP protocol
317
318 config CMD_TFTPPUT
319         bool "tftp put"
320         help
321           TFTP put command, for uploading files to a server
322
323 config CMD_TFTPSRV
324         bool "tftpsrv"
325         help
326           Act as a TFTP server and boot the first received file
327
328 config CMD_RARP
329         bool "rarpboot"
330         help
331           Boot image via network using RARP/TFTP protocol
332
333 config CMD_DHCP
334         bool "dhcp"
335         help
336           Boot image via network using DHCP/TFTP protocol
337
338 if CMD_DHCP
339
340 menu "DHCP options"
341
342 config BOOTP_BOOTFILESIZE
343         bool "obtain bootfile size from DHCP"
344
345 config BOOTP_BOOTPATH
346         bool "obtain bootfile path from DHCP"
347
348 config BOOTP_DNS
349         bool "obtain DNS server IP address from DHCP"
350
351 config BOOTP_DNS2
352         bool "store secondary DNS IP address in dnsip2"
353
354 config BOOTP_GATEWAY
355         bool "obtain gateway IP address from DHCP"
356
357 config BOOTP_ID_CACHE_SIZE
358         int "DHCP transaction ID cache size"
359         default 4
360         help
361           BOOTP packets are uniquely identified using a 32-bit ID. The
362           server will copy the ID from client requests to responses and
363           U-Boot will use this to determine if it is the destination of
364           an incoming response. Some servers will check that addresses
365           aren't in use before handing them out (usually using an ARP
366           ping) and therefore take up to a few hundred milliseconds to
367           respond. Network congestion may also influence the time it
368           takes for a response to make it back to the client. If that
369           time is too long, U-Boot will retransmit requests. In order
370           to allow earlier responses to still be accepted after these
371           retransmissions, U-Boot's BOOTP client keeps a small cache of
372           IDs. The CONFIG_BOOTP_ID_CACHE_SIZE controls the size of this
373           cache. The default is to keep IDs for up to four outstanding
374           requests. Increasing this will allow U-Boot to accept offers
375           from a BOOTP client in networks with unusually high latency.
376
377 config BOOTP_MAY_FAIL
378         bool "Do not start over, if DHCP server is not available"
379         help
380           If the DHCP server is not found after the configured retry
381           count, the call will fail instead of starting over.  This
382           can be used to fail over to Link-local IP address
383           configuration if the DHCP server is not available.
384
385 config BOOTP_NISDOMAIN
386         bool "obtain NIS domain from DHCP"
387
388 config BOOTP_NTPSERVER
389         bool "obtain NTP server IP address from DHCP"
390
391 config BOOTP_RANDOM_DELAY
392         bool "Use a (pseudo) random delay between DHCP retries"
393         select LIB_RAND
394
395 config BOOTP_RANDOM_ID
396         bool "Generate a (pseudo) random transaction ID"
397         select LIB_RAND
398
399 config BOOTP_SEND_HOSTNAME
400         bool "send hostname in DHCP request"
401
402 config BOOTP_SUBNETMASK
403         bool "obtain subnet mask from DHCP"
404
405 config BOOTP_TIMEOFFSET
406         bool "obtain  from DHCP"
407
408 config BOOTP_VENDOREX
409         bool "obtain  from DHCP"
410
411 endmenu
412
413 endif
414
415 config CMD_NFS
416         bool "nfs"
417         default y
418         help
419           Boot image via network using NFS protocol.
420
421 config CMD_PING
422         bool "ping"
423         help
424           Send ICMP ECHO_REQUEST to network host
425
426 config CMD_CDP
427         bool "cdp"
428         help
429           Perform CDP network configuration
430
431 config CMD_SNTP
432         bool "sntp"
433         help
434           Synchronize RTC via network
435
436 config CMD_DNS
437         bool "dns"
438         help
439           Lookup the IP of a hostname
440
441 config CMD_LINK_LOCAL
442         bool "linklocal"
443         help
444           Acquire a network IP address using the link-local protocol
445
446 config CMD_MII
447         bool "MII register access"
448         help
449           Support reading/writing ETH PHY registers via MII bus
450
451 endmenu
452
453 menu "Misc commands"
454
455 config CMD_CACHE
456         bool "cache control"
457         help
458           Enable commands to switch data cache on/off.
459
460 config CMD_TIME
461         bool "time"
462         help
463           Run commands and summarize execution time.
464
465 config CMD_FUSE
466         bool "fuse read/write"
467         help
468           eFuse reading and programming support
469
470 # TODO: rename to CMD_SLEEP
471 config CMD_MISC
472         bool "sleep"
473         default y
474         help
475           Delay execution for some time
476
477 config CMD_TIMER
478         bool "timer"
479         help
480           Access the system timer.
481
482 config CMD_SETGETDCR
483         bool "getdcr, setdcr, getidcr, setidcr"
484         depends on 4xx
485         default y
486         help
487           getdcr - Get an AMCC PPC 4xx DCR's value
488           setdcr - Set an AMCC PPC 4xx DCR's value
489           getidcr - Get a register value via indirect DCR addressing
490           setidcr - Set a register value via indirect DCR addressing
491
492 endmenu
493
494 endmenu
495
496 menu "Environment configuration settings"
497
498 choice
499         prompt "Select environment non-volatile storage"
500
501 config ENV_IS_NOWHERE
502         bool "do not store environment"
503
504 config ENV_IS_IN_NAND
505         bool "store environment in NAND"
506         depends on NAND
507
508 config ENV_IS_IN_MMC
509         bool "store environment in MMC"
510         depends on MMC
511
512 config ENV_IS_IN_SPI_FLASH
513         bool "store environment in SPI flash"
514
515 endchoice
516
517 endmenu
518
519 menu "Display configuration"
520
521 config LCD
522         bool "LCD support"
523
524 config DISPLAY_BOARDINFO
525         bool "Display board info"
526
527 endmenu