util/mkimage: Add an option to import SBAT metadata into a .sbat section

Add a --sbat option to the grub-mkimage tool which allows us to import
an SBAT metadata formatted as a CSV file into a .sbat section of the
EFI binary.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Peter Jones authored and Daniel Kiper committed 2021-03-02 15:54:19 +01:00
1 parent f60ba9e594
commit b115471377
6 files changed
+73 -10

No files matched your search

+2 -1
View File
@@ -183,7 +183,8 @@ grub_install_generate_image (const char *dir, const char *prefix,
char *config_path,
const struct grub_install_image_target_desc *image_target,
int note,
grub_compression_t comp, const char *dtb_file);
grub_compression_t comp, const char *dtb_file,
const char *sbat_path);
const struct grub_install_image_target_desc *
grub_install_get_image_target (const char *arg);
+1
View File
@@ -24,6 +24,7 @@ struct grub_mkimage_layout
size_t exec_size;
size_t kernel_size;
size_t bss_size;
size_t sbat_size;
grub_uint64_t start_address;
void *reloc_section;
size_t reloc_size;