summaryrefslogtreecommitdiff
path: root/src/boot/efi/shim.c
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2023-01-06 18:07:18 +0100
committerJan Janssen <medhefgo@web.de>2023-02-21 14:46:02 +0100
commit5080a60a719da213fa90964b76cc90bd0d1cb8de (patch)
treedf289ff37bb789645f3e560e39c3e2196ad35ece /src/boot/efi/shim.c
parenta40960748907212883f4b7de7367e6870657016e (diff)
downloadsystemd-5080a60a719da213fa90964b76cc90bd0d1cb8de.tar.gz
boot: Provide our own EFI API headers
We want to get away from gnu-efi and the only really usable source of EFI headers would be EDK2, which is somewhat impractical to use and quite large to require to be around just for some headers. As a bonus point, the new headers are safe to be included in userspace code. This should not have any behavior changes as it is mostly changing header includes. There are some renames to conform to standard names and a few minor device path fixups as the struct is defined slightly different. Of note is that this removes usage of uchar.h and wchar.h as they are not guaranteed to be available in a freestanding environment. Instead efi.h will provide the needed types.
Diffstat (limited to 'src/boot/efi/shim.c')
-rw-r--r--src/boot/efi/shim.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/boot/efi/shim.c b/src/boot/efi/shim.c
index 5da298c10a..e0bb470cf2 100644
--- a/src/boot/efi/shim.c
+++ b/src/boot/efi/shim.c
@@ -8,13 +8,9 @@
* https://github.com/mjg59/efitools
*/
-#include <efi.h>
-#include <efilib.h>
-
-#include "missing_efi.h"
-#include "util.h"
#include "secure-boot.h"
#include "shim.h"
+#include "util.h"
#if defined(__x86_64__) || defined(__i386__)
#define __sysv_abi__ __attribute__((sysv_abi))