]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: Add efi-cflags option
authorJan Janssen <medhefgo@web.de>
Fri, 28 Jan 2022 10:33:23 +0000 (11:33 +0100)
committerJan Janssen <medhefgo@web.de>
Thu, 7 Apr 2022 16:39:18 +0000 (18:39 +0200)
meson_options.txt
src/boot/efi/meson.build

index 430b03d2b2748316742ace95ce2fd7324084e020..a315ca47c573ced109093d345bf24d97591ac099 100644 (file)
@@ -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'],
index ffee98bbb83e6cf0aab1caddb06ae2254a23aa26..b2b090256ceb2b5c4cdce81f0c2e97e8d569a55f 100644 (file)
@@ -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,