boot: allow bootmeth-distro without CONFIG_NET
authorJohn Keeping <john@metanate.com>
Thu, 28 Jul 2022 10:19:15 +0000 (11:19 +0100)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Aug 2022 19:42:56 +0000 (13:42 -0600)
commitbe43a35bff17550fa707795a06eaed6114eb1742
tree8ebd680644e7351e8bca6c78618109926aef3533
parent5d1637a40cd1c30f62ebee6e1e1611d5f5613003
boot: allow bootmeth-distro without CONFIG_NET

Remove the dependency on CMD_PXE from BOOTMETH_DISTRO by introducing a
new hidden kconfig symbol to control whether pxe_utils is compiled,
allowing bootstd's distro method to be compiled without needing
networking support enabled.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Correct build errors when CMD_BOOTM is not enabled:
Signed-off-by: Simon Glass <sjg@chromium.org>
boot/Kconfig
boot/Makefile
boot/pxe_utils.c
cmd/Kconfig
include/command.h