]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: Provide our own EFI API headers 26446/head
authorJan Janssen <medhefgo@web.de>
Fri, 6 Jan 2023 17:07:18 +0000 (18:07 +0100)
committerJan Janssen <medhefgo@web.de>
Tue, 21 Feb 2023 13:46:02 +0000 (14:46 +0100)
commit5080a60a719da213fa90964b76cc90bd0d1cb8de
treedf289ff37bb789645f3e560e39c3e2196ad35ece
parenta40960748907212883f4b7de7367e6870657016e
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.
59 files changed:
src/boot/efi/bcd.h
src/boot/efi/boot.c
src/boot/efi/console.c
src/boot/efi/console.h
src/boot/efi/cpio.c
src/boot/efi/cpio.h
src/boot/efi/devicetree.c
src/boot/efi/devicetree.h
src/boot/efi/disk.c
src/boot/efi/disk.h
src/boot/efi/drivers.c
src/boot/efi/drivers.h
src/boot/efi/efi-string.c
src/boot/efi/efi-string.h
src/boot/efi/efi.h [new file with mode: 0644]
src/boot/efi/graphics.c
src/boot/efi/graphics.h
src/boot/efi/initrd.c
src/boot/efi/initrd.h
src/boot/efi/linux.c
src/boot/efi/linux.h
src/boot/efi/linux_x86.c
src/boot/efi/log.c
src/boot/efi/measure.c
src/boot/efi/measure.h
src/boot/efi/meson.build
src/boot/efi/missing_efi.h [deleted file]
src/boot/efi/part-discovery.c
src/boot/efi/part-discovery.h
src/boot/efi/pe.c
src/boot/efi/pe.h
src/boot/efi/proto/block-io.h [new file with mode: 0644]
src/boot/efi/proto/console-control.h [new file with mode: 0644]
src/boot/efi/proto/device-path.h [new file with mode: 0644]
src/boot/efi/proto/dt-fixup.h [new file with mode: 0644]
src/boot/efi/proto/file-io.h [new file with mode: 0644]
src/boot/efi/proto/graphics-output.h [new file with mode: 0644]
src/boot/efi/proto/load-file.h [new file with mode: 0644]
src/boot/efi/proto/loaded-image.h [new file with mode: 0644]
src/boot/efi/proto/rng.h [new file with mode: 0644]
src/boot/efi/proto/security-arch.h [new file with mode: 0644]
src/boot/efi/proto/shell-parameters.h [new file with mode: 0644]
src/boot/efi/proto/simple-text-io.h [new file with mode: 0644]
src/boot/efi/proto/tcg.h [new file with mode: 0644]
src/boot/efi/random-seed.c
src/boot/efi/random-seed.h
src/boot/efi/secure-boot.c
src/boot/efi/secure-boot.h
src/boot/efi/shim.c
src/boot/efi/shim.h
src/boot/efi/splash.c
src/boot/efi/splash.h
src/boot/efi/stub.c
src/boot/efi/ticks.c
src/boot/efi/util.c
src/boot/efi/util.h
src/boot/efi/vmm.c
src/boot/efi/vmm.h
src/fundamental/string-util-fundamental.h