boot: allow bootmeth-distro without CONFIG_NET
PATCH v2 1/1 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.
---
v2:
- Fix MENU dependency for PXE_UTILS
boot/Kconfig | 8 +++++++- boot/Makefile | 3 +-- cmd/Kconfig | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-)
boot/Kconfig +7 -1
@@ -294,6 +294,12 @@ endif # SPL endif # FIT +config PXE_UTILS + bool + select MENU + help + Utilities for parsing PXE file formats. + config BOOTSTD bool "Standard boot support" default y
@@ -345,7 +351,7 @@ config BOOTSTD_BOOTCOMMAND config BOOTMETH_DISTRO bool "Bootdev support for distro boot" - depends on CMD_PXE + select PXE_UTILS default y help Enables support for distro boot using bootdevs. This makes the
boot/Makefile +1 -2
@@ -10,8 +10,7 @@ obj-$(CONFIG_CMD_BOOTM) += bootm.o bootm_os.o obj-$(CONFIG_CMD_BOOTZ) += bootm.o bootm_os.o obj-$(CONFIG_CMD_BOOTI) += bootm.o bootm_os.o -obj-$(CONFIG_CMD_PXE) += pxe_utils.o -obj-$(CONFIG_CMD_SYSBOOT) += pxe_utils.o +obj-$(CONFIG_PXE_UTILS) += pxe_utils.o endif
cmd/Kconfig +2 -2
@@ -1825,7 +1825,7 @@ config CMD_ETHSW config CMD_PXE bool "pxe" - select MENU + select PXE_UTILS help Boot image via network using PXE protocol
@@ -2006,7 +2006,7 @@ config CMD_SOUND config CMD_SYSBOOT bool "sysboot" - select MENU + select PXE_UTILS help Boot image via local extlinux.conf file
Signature · 1 line
2.37.1
Quoted 6 lines · John Keeping
Remove the dependency on
CMD_PXEfromBOOTMETH_DISTROby introducing a new hidden kconfig symbol to control whetherpxe_utilsis compiled, allowing bootstd's distro method to be compiled without needing networking support enabled.Signed-off-by John Keeping <[email protected]>
Signature · 1 line
Tom
Quoted 7 lines · John Keeping
Remove the dependency on
CMD_PXEfromBOOTMETH_DISTROby introducing a new hidden kconfig symbol to control whetherpxe_utilsis compiled, allowing bootstd's distro method to be compiled without needing networking support enabled.Signed-off-by John Keeping <[email protected]>
Quoted 8 lines
---
v2:
- Fix MENU dependency forPXE_UTILSboot/Kconfig | 8 +++++++- boot/Makefile | 3 +-- cmd/Kconfig | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-)
Simon Glass
Reviewed-byQuoted 7 lines · John Keeping
Remove the dependency on
CMD_PXEfromBOOTMETH_DISTROby introducing a new hidden kconfig symbol to control whetherpxe_utilsis compiled, allowing bootstd's distro method to be compiled without needing networking support enabled.Signed-off-by John Keeping <[email protected]>
Quoted 8 lines
---
v2:
- Fix MENU dependency forPXE_UTILSboot/Kconfig | 8 +++++++- boot/Makefile | 3 +-- cmd/Kconfig | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-)
Applied to u-boot-dm, thanks!
Hi,
Quoted 13 lines · Simon Glass
Quoted 11 lines · John Keeping
Remove the dependency on
CMD_PXEfromBOOTMETH_DISTROby introducing a new hidden kconfig symbol to control whetherpxe_utilsis compiled, allowing bootstd's distro method to be compiled without needing networking support enabled.Signed-off-by John Keeping <[email protected]>---
v2:
- Fix MENU dependency forPXE_UTILS
Quoted 8 lines
Quoted 4 lines
boot/Kconfig | 8 +++++++- boot/Makefile | 3 +-- cmd/Kconfig | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-)Reviewed-by Simon Glass <[email protected]>Applied to u-boot-dm, thanks!
Note that I had to fix a few build errors by adding a CMD_BOOTM condition as noted in the commit message.
Regards,
Simon