]> git.ozlabs.org Git - petitboot/commit
lib/efi: Add new struct efi_mount
authorGeoff Levand <geoff@infradead.org>
Fri, 10 Aug 2018 17:29:14 +0000 (17:29 +0000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 14 Aug 2018 01:12:02 +0000 (11:12 +1000)
commit15751f10a1368f56ca10b2bc84011253216103aa
treedb99768c51bbc6fb889f676309a3db3ec16646f2
parent6f157d5e4154069174c6b6268a7f13bb48a74593
lib/efi: Add new struct efi_mount

To make it easier to manage EFI variables add a new struct efi_mount
that holds the path to the EFI file system mount and the EFI variable
name GUID. Update the lib/efi routines to use struct efi_mount.  Add
a new routine efi_check_mount based on the checks done in
platform-arm64.

This change to using struct efi_mount removes the static variable
efivarfs_path making the lib/efi routines stateless.

Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
lib/efi/efivar.c
lib/efi/efivar.h