r323389 breaks the kernel build when WITHOUT_ZFS is defined in src.conf
Need to add #ifdef EFI_ZFS_BOOT guard into efi/loader/main.c PR: 222215 Reported by: Sylvain Garrigues
This commit is contained in:
parent
3c5ac992c7
commit
4f152c5b8a
@ -872,16 +872,20 @@ command_chain(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (efi_getdev((void **)&dev, name, (const char **)&path) == 0) {
|
if (efi_getdev((void **)&dev, name, (const char **)&path) == 0) {
|
||||||
|
#ifdef EFI_ZFS_BOOT
|
||||||
struct zfs_devdesc *z_dev;
|
struct zfs_devdesc *z_dev;
|
||||||
|
#endif
|
||||||
struct disk_devdesc *d_dev;
|
struct disk_devdesc *d_dev;
|
||||||
pdinfo_t *hd, *pd;
|
pdinfo_t *hd, *pd;
|
||||||
|
|
||||||
switch (dev->d_type) {
|
switch (dev->d_type) {
|
||||||
|
#ifdef EFI_ZFS_BOOT
|
||||||
case DEVT_ZFS:
|
case DEVT_ZFS:
|
||||||
z_dev = (struct zfs_devdesc *)dev;
|
z_dev = (struct zfs_devdesc *)dev;
|
||||||
loaded_image->DeviceHandle =
|
loaded_image->DeviceHandle =
|
||||||
efizfs_get_handle_by_guid(z_dev->pool_guid);
|
efizfs_get_handle_by_guid(z_dev->pool_guid);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case DEVT_NET:
|
case DEVT_NET:
|
||||||
loaded_image->DeviceHandle =
|
loaded_image->DeviceHandle =
|
||||||
efi_find_handle(dev->d_dev, dev->d_unit);
|
efi_find_handle(dev->d_dev, dev->d_unit);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user