summaryrefslogtreecommitdiff
path: root/src/fundamental
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/fundamental
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/fundamental')
-rw-r--r--src/fundamental/string-util-fundamental.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fundamental/string-util-fundamental.h b/src/fundamental/string-util-fundamental.h
index c35ce5b88f..f55dcbf56a 100644
--- a/src/fundamental/string-util-fundamental.h
+++ b/src/fundamental/string-util-fundamental.h
@@ -2,8 +2,7 @@
#pragma once
#if SD_BOOT
-# include <efi.h>
-# include <efilib.h>
+# include "efi.h"
# include "efi-string.h"
#else
# include <string.h>