]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: use efi-includedir to look for header
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Apr 2017 17:22:28 +0000 (13:22 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Apr 2017 01:47:29 +0000 (21:47 -0400)
This change mirrors cba49f2deab481045408d5452ac8c84fc03bccd5.

src/boot/efi/meson.build

index 2a69bc5c256e7a2955b3eadbfc8a29f0be3ad829..059cc7be31d504b5a483a336c9350b59e37913d4 100644 (file)
@@ -32,7 +32,8 @@ if conf.get('ENABLE_EFI', 0) == 1 and get_option('gnu-efi') != 'false'
   efi_cc = get_option('efi-cc')
   efi_ld = get_option('efi-ld')
 
-  efibind_h = 'efi/@0@/efibind.h'.format(efi_arch)
+  efi_incdir = get_option('efi-includedir')
+  efibind_h = '@0@/@1@/efibind.h'.format(efi_incdir, efi_arch)
   have_header = cc.has_header(efibind_h)
 
   if have_header and EFI_MACHINE_TYPE_NAME == ''
@@ -73,8 +74,6 @@ if have_gnu_efi
     efi_ldsdir = join_paths(efi_libdir, 'gnuefi')
   endif
 
-  efi_incdir = get_option('efi-includedir')
-
   message('efi-libdir: "@0@"'.format(efi_libdir))
   message('efi-ldsdir: "@0@"'.format(efi_ldsdir))
   message('efi-includedir: "@0@"'.format(efi_incdir))