diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2016-11-13 23:59:52 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-12-03 21:21:24 +0300 |
commit | bfb380b30ad2d678c09037560abb6f09a5e9c9b6 (patch) | |
tree | 8913753f84a9c8dce8a80b2c7e12350c4030e48e /cmd | |
parent | 3337e3af5d3dd52e1fa043fc117594fbf3e029f4 (diff) | |
download | u-boot-bfb380b30ad2d678c09037560abb6f09a5e9c9b6.tar.xz |
cmd: move CMD_PXE to Kconfig
Currently, CMD_PXE is forcibly enabled in config_distro_defaults.h, so
that general purpose distributions can rely on it being defined. This
header is included, under conditions or not, by various archs or
famillies of archs / SoCs.
However, it is very possible that boards based on those SoCs will not
have a physical ethernet connector at all, even if the have a MAC; for
example, the Nanopi Neo AIR (sunxi H3) does not. It is also possible
that network booting is absolutely not necessary for a device.
However, it is not possible to disable the PXE command, as it is
forcibly enabled and is non-configurable.
But it turns out we already have a config option to build a distro-ready
image, in the name of DISTRO_DEFAULTS.
Move CMD_PXE out of the hard-coded config_distro_defaults.h into a
Kconfig option, that gets selected by DISTRO_DEFAULTS when it is set.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Joe Hershberger <joe.hershberger@ni.com>
[trini: Make it select MENU, run moveconfig.py]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index bafba6f61c..586a6456e4 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -524,6 +524,12 @@ config CMD_DHCP help Boot image via network using DHCP/TFTP protocol +config CMD_PXE + bool "pxe" + select MENU + help + Boot image via network using PXE protocol + config CMD_NFS bool "nfs" default y |