diff options
author | Jan Janssen <medhefgo@web.de> | 2022-01-28 11:33:23 +0100 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2022-04-07 18:39:18 +0200 |
commit | c0e4459e09b032161807755ed758685cb2827289 (patch) | |
tree | 2f94749aace074e54627dfa9e699d4ddc7b176cd | |
parent | cedf5b1aef4da2443f00eef2c242c8b005071aca (diff) | |
download | systemd-c0e4459e09b032161807755ed758685cb2827289.tar.gz |
meson: Add efi-cflags option
-rw-r--r-- | meson_options.txt | 2 | ||||
-rw-r--r-- | src/boot/efi/meson.build | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 430b03d2b2..a315ca47c5 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -422,6 +422,8 @@ option('dbus', type : 'combo', choices : ['auto', 'true', 'false'], option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'], description : 'gnu-efi support for sd-boot') +option('efi-cflags', type : 'array', + description : 'additional flags for EFI compiler') # Note that LLD does not support PE/COFF relocations # https://lists.llvm.org/pipermail/llvm-dev/2021-March/149234.html option('efi-ld', type : 'combo', choices : ['auto', 'bfd', 'gold'], diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index ffee98bbb8..b2b090256c 100644 --- a/src/boot/efi/meson.build +++ b/src/boot/efi/meson.build @@ -229,6 +229,8 @@ foreach arg : get_option('c_args') endif endforeach +efi_cflags += get_option('efi-cflags') + efi_ldflags = [ '-fuse-ld=' + efi_ld, '-L', efi_libdir, |