summaryrefslogtreecommitdiff
path: root/src/shared/efi-api.c
Commit message (Collapse)AuthorAgeFilesLines
* efi-api: check the EFI_TCG2_FINAL_EVENTS_TABLE in efi_has_tpm2()Jia Zhang2023-01-031-13/+25
| | | | | | | | | | | The EFI firmware may provide the TPM2 event log using EFI_TCG2_FINAL_EVENTS_TABLE stored in EFI configuration table, instead of the ACPI Table TPM2. If the ACPI Table TPM2 doesn't exist, try to check whether EFI_TCG2_FINAL_EVENTS_TABLE is available or not. Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com>
* Allow uneven length BootXXXX variablesGoffredo Baroncelli2022-08-231-3/+0
| | | | | | | The BootXXXX variables may have an uneven length. Don't return error in this case. Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it>
* efi-api: use string_replace_char()Yu Watanabe2022-04-201-8/+0
|
* efi-loader: split efi-api.[ch] from efi-loader.[ch]Lennart Poettering2022-03-241-0/+556
Some refactoring: split efi-loader.[ch] in two: isolate the calls that implement out boot loader interface spec, and those which implement access to upstream UEFI firmware features. They are quite different in nature and behaviour, and even semantically it makes to keep these two separate. At the very least because the previous name "efi-loader.[ch]" suggests all was about loader-specific APIs, but much of it is generic uefi stuff... While we are at it, I renamed a bunch of return parameters to follow our usual ret_xyz naming. But besides renaming no real code changes.