lib/efi: Add new routines to access efi variables
authorGe Song <ge.song@hxt-semitech.com>
Thu, 2 Aug 2018 17:29:36 +0000 (17:29 +0000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 7 Aug 2018 01:30:36 +0000 (11:30 +1000)
commita915889b7fbbc4be11f9a37ea7afb5b3f3d41173
treed0d1e8d524e086ded019c19f6c5e54c967f51fe0
parentec07742d2a37f8f96705fc0f20d9b22b583dad57
lib/efi: Add new routines to access efi variables

Provide methods to load/store petitboot's configuration on efi-based
platforms. A test case is also provided.

Signed-off-by: Ge Song <ge.song@hxt-semitech.com>
[Cleanup file comments, make efivarfs_path static.]
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
lib/Makefile.am
lib/efi/efivar.c [new file with mode: 0644]
lib/efi/efivar.h [new file with mode: 0644]
test/lib/test-efivar.c [new file with mode: 0644]