It allows to use sysboot command on board which have no NET support. Currently, sysboot command can't be used if CMD_NET and NET flags are not set, while sysboot allows to load extlinux.conf file from local filesystem, so it doesn't need to depend of CMD_NET and NET flags.
One solution would be to put sysboot command's code outside pxe.c and create a new sysboot.c file. But sysboot command code is imbricated with pxe command code and as all CMD_NET relative code is already under CMD_NET flag, the easiest way to break sysboot dependency with CMD_NET and NET flags is to move CMD_PXE outside CMD_NET and NET section in Kconfig. Signed-off-by: Patrice Chotard <patrice.chot...@st.com> --- Kconfig | 2 +- cmd/Kconfig | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Kconfig b/Kconfig index 66b059f749..ce2ad16ea5 100644 --- a/Kconfig +++ b/Kconfig @@ -87,7 +87,7 @@ config DISTRO_DEFAULTS select CMD_FS_GENERIC select CMD_PART if PARTITIONS select CMD_PING if CMD_NET - select CMD_PXE if NET + select CMD_PXE select ENV_VARS_UBOOT_CONFIG select HUSH_PARSER select SUPPORT_RAW_INITRD diff --git a/cmd/Kconfig b/cmd/Kconfig index 07060c63a7..2cb0935632 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1499,12 +1499,6 @@ config CMD_ETHSW operations such as enabling / disabling a port and viewing/maintaining the filtering database (FDB) -config CMD_PXE - bool "pxe" - select MENU - help - Boot image via network using PXE protocol - config CMD_WOL bool "wol" help @@ -1636,6 +1630,12 @@ config CMD_MISC help Delay execution for some time +config CMD_PXE + bool "pxe" + select MENU + help + Boot image via network using PXE protocol or via local extlinux.conf file + config MP bool "support for multiprocessor" help -- 2.17.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot