meson: Add missing boot headers and use @INPUT@ for linking

This commit is contained in:
Jan Janssen
2022-01-21 08:48:17 +09:00
committed by Yu Watanabe
parent 381ccb5cc0
commit 1e11b6a76d
+10 -1
View File
@@ -317,11 +317,13 @@ efi_headers = files(
'disk.h',
'drivers.h',
'graphics.h',
'initrd.h',
'linux.h',
'measure.h',
'missing_efi.h',
'pe.h',
'random-seed.h',
'secure-boot.h',
'shim.h',
'splash.h',
'util.h',
@@ -404,7 +406,14 @@ foreach tuple : [['systemd_boot.so', systemd_boot_efi_name, systemd_boot_objects
tuple[0],
input : tuple[2],
output : tuple[0],
command : [cc.cmd_array(), '-o', '@OUTPUT@', efi_ldflags, efi_cflags, tuple[2], '-lefi', '-lgnuefi', '-lgcc'],
command : [cc.cmd_array(),
'-o', '@OUTPUT@',
efi_cflags,
efi_ldflags,
'@INPUT@',
'-lefi',
'-lgnuefi',
'-lgcc'],
install : tuple[3],
install_dir : bootlibdir)