summaryrefslogtreecommitdiff
path: root/src/fundamental/meson.build
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: Drop gnu-efiJan Janssen2023-03-101-16/+2
| | | | | | | This drops all mentions of gnu-efi and its manual build machinery. A future commit will bring bootloader builds back. A new bootloader meson option is now used to control whether to build sd-boot and its userspace tooling.
* boot: Simplify object erasureJan Janssen2023-01-091-0/+1
| | | | | | | | This erase_obj() machinery looks like voodoo and creates an awful lot of noise as soon as we get back to building with -O0. We can do this in a more simple way by introducing a struct that holds the information we need on cleanup. When building with optimization enabled, all this gets inlined and the eraser vanishes.
* boot: move unified kernel PE section definitions into 'fundamental' codeLennart Poettering2022-08-021-0/+1
| | | | | Le's share this code between userspace and uefispace. This is useful later when pre-measuring expected PCRs from userspace.
* boot: split out TPM PCR defines into header file we can share between ↵Lennart Poettering2022-08-021-0/+1
| | | | userspace and kernel space
* fundamental: Remove types-fundamental.hJan Janssen2022-06-271-1/+0
| | | | | | | | | | | | | This removes the fundamental typedefs in favor of just using standard C types. These are all used internally anyway and also do not do anything special to warrant any redefinition to EFI types. Even for BOOLEAN we can safely use stdbool. The defition from the EFI specification is fully compatible, including making any other values than 0/1 as undefined. The exception is sd_char as those need to be char16_t. The typedef is moved to string-util-fundamental.h instead.
* meson: Use files() for source lists for boot and fundamentalJan Janssen2022-01-091-13/+9
| | | | | This fixes build reproducibility as otherwise the full path of the source files ends up in the output binary.
* fundamental: rename type.h → types-fundamental.hLennart Poettering2021-11-111-1/+1
| | | | | | | "type.h" is a very generic name, but this header is very specific to making the "fundaemtnal" stuff work, it maps genric types in two distinct ways. Hence let's make clear in the header name already what this is about.
* boot: clean up unified boot loader entry name/version extractionLennart Poettering2021-11-111-1/+3
| | | | | | | | | | Let's make sure IMAGE_ID/IMAGE_VERSION are properly honoured, and explain in a long comment why. Let's also use ID= field again, which was lost by accident. (While we are at it do some minimal OOM checks wherever we touch something)
* sd-boot: Be more precise about secure boot modesJan Janssen2021-10-221-1/+2
| | | | Fixes: #11559
* boot/sha256: sd-ify and move to src/fundamentalLuca Boccassi2021-10-081-0/+2
|
* meson: use a/b instead of join_paths(a,b)Zbigniew Jędrzejewski-Szmek2021-07-271-2/+2
| | | | It is nicer and shorter.
* fundamental: move several macros and functions into src/fundamental/Yu Watanabe2021-02-091-0/+22
sd-boot has a copy of a subset of codes from libbasic. This makes sd-boot share the code with libbasic, and dedup the code. Note, startswith_no_case() is dropped from sd-boot, as - it is not used, - the previous implementation is not correct, - gnu-efi does not have StrniCmp() or so.