From: Emmanuel Vadot Date: Mon, 11 Dec 2017 18:22:33 +0000 (+0100) Subject: efi_loader: Setup logical_partition media information X-Git-Tag: v2018.01-rc3~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5f7708362812dc5c0647cdae4f05a85e57b3cf32;p=u-boot efi_loader: Setup logical_partition media information When adding a partition, set the logical_partition member in the media structure as mandated by the UEFI spec. Signed-off-by: Emmanuel Vadot Reviewed-by: Heinrich Schuchardt --- diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c index 4e457a841b..d299fc8dea 100644 --- a/lib/efi_loader/efi_disk.c +++ b/lib/efi_loader/efi_disk.c @@ -258,6 +258,8 @@ static void efi_disk_add_dev(const char *name, diskobj->media.block_size = desc->blksz; diskobj->media.io_align = desc->blksz; diskobj->media.last_block = desc->lba - offset; + if (part != 0) + diskobj->media.logical_partition = 1; diskobj->ops.media = &diskobj->media; return; out_of_memory: