From be4890f75e7c68ae6bc5978a85860d78d05ae02b Mon Sep 17 00:00:00 2001 From: Ruslan Bukin Date: Tue, 30 Jul 2019 14:54:18 +0000 Subject: [PATCH] Fix EFI loader build when LOADER_NET_SUPPORT=no. Sponsored by: DARPA, AFRL --- stand/efi/loader/conf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stand/efi/loader/conf.c b/stand/efi/loader/conf.c index d08ded39b4f2..a5d2ad7c613f 100644 --- a/stand/efi/loader/conf.c +++ b/stand/efi/loader/conf.c @@ -40,7 +40,9 @@ struct devsw *devsw[] = { &efipart_cddev, &efipart_hddev, &efihttp_dev, /* ordering with efinet_dev matters */ +#if defined(LOADER_NET_SUPPORT) &efinet_dev, +#endif &vdisk_dev, #ifdef EFI_ZFS_BOOT &zfs_dev, @@ -64,7 +66,9 @@ struct fs_ops *file_system[] = { }; struct netif_driver *netif_drivers[] = { +#if defined(LOADER_NET_SUPPORT) &efinetif, +#endif NULL };