[PATCH] boot: allow bootmeth-distro without CONFIG_NET

Simon Glass sjg at chromium.org
Tue Jul 26 22:09:06 CEST 2022


Hi John,

On Thu, 21 Jul 2022 at 10:56, John Keeping <john at metanate.com> wrote:
>
> 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 at metanate.com>
> ---
>  boot/Kconfig  | 7 ++++++-
>  boot/Makefile | 3 +--
>  cmd/Kconfig   | 2 ++
>  3 files changed, 9 insertions(+), 3 deletions(-)

With this patch I got some build errors, for example:

Building current source for 1 boards (1 thread, 40 jobs per thread)
   powerpc:  +   qemu-ppce500
+powerpc-linux-ld.bfd: boot/pxe_utils.o: in function `pxe_menu_to_menu':
+boot/pxe_utils.c:1442: undefined reference to `menu_create'
+powerpc-linux-ld.bfd: boot/pxe_utils.c:1478: undefined reference to
`menu_default_set'
+powerpc-linux-ld.bfd: boot/pxe_utils.o: in function `handle_pxe_menu':
+boot/pxe_utils.c:1539: undefined reference to `menu_get_choice'
+powerpc-linux-ld.bfd: boot/pxe_utils.c:1540: undefined reference to
`menu_destroy'
+boot/pxe_utils.c:1453: undefined reference to `menu_item_add'
+powerpc-linux-ld.bfd: boot/pxe_utils.c:1481: undefined reference to
`menu_destroy'


Regards,
Simon


More information about the U-Boot mailing list