net: Make CMD_NET a menuconfig
[platform/kernel/u-boot.git] / net / Kconfig
1 #
2 # Network configuration
3 #
4
5 menuconfig NET
6         bool "Networking support"
7         default y
8
9 if NET
10
11 config NET_RANDOM_ETHADDR
12         bool "Random ethaddr if unset"
13         help
14           Selecting this will allow the Ethernet interface to function
15           even when the ethaddr variable for that interface is unset.
16           A new MAC address will be generated on every boot and it will
17           not be added to the environment.
18
19 config NETCONSOLE
20         bool "NetConsole support"
21         help
22           Support the 'nc' input/output device for networked console.
23           See README.NetConsole for details.
24
25 config NET_TFTP_VARS
26         bool "Control TFTP timeout and count through environment"
27         depends on CMD_TFTPBOOT
28         default y
29         help
30           If set, allows controlling the TFTP timeout through the
31           environment variable tftptimeout, and the TFTP maximum
32           timeout count through the variable tftptimeoutcountmax.
33           If unset, timeout and maximum are hard-defined as 1 second
34           and 10 timouts per TFTP transfer.
35
36 config BOOTP_BOOTPATH
37         bool "Enable BOOTP BOOTPATH"
38         depends on CMD_BOOTP
39
40 config BOOTP_DNS
41         bool "Enable bootp DNS"
42         depends on CMD_BOOTP
43
44 config BOOTP_GATEWAY
45         bool "Enable BOOTP gateway"
46         depends on CMD_BOOTP
47
48 config BOOTP_HOSTNAME
49         bool "Enable BOOTP hostname"
50         depends on CMD_BOOTP
51
52 config BOOTP_PXE
53         bool "Enable BOOTP PXE"
54         depends on CMD_BOOTP
55
56 config BOOTP_SUBNETMASK
57         bool "Enable BOOTP subnetmask"
58         depends on CMD_BOOTP
59
60 config BOOTP_PXE_CLIENTARCH
61         hex
62         depends on CMD_BOOTP
63         default 0x16 if ARM64
64         default 0x15 if ARM
65         default 0 if X86
66
67 config BOOTP_VCI_STRING
68         string
69         depends on CMD_BOOTP
70         default "U-Boot.armv7" if CPU_V7 || CPU_V7M
71         default "U-Boot.armv8" if ARM64
72         default "U-Boot.arm" if ARM
73         default "U-Boot"
74
75 endif   # if NET