1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

meson: add systemd-boot and systemd-stub build target aliases

Allows to quickly build systemd-boot by itself without having to
reference the full path of the build target:

$ ninja -C foo systemd-stub
ninja: Entering directory `foo'
[21/21] Generating src/boot/efi/linuxx64.efi.stub with a custom command
$ ninja -C foo systemd-boot
ninja: Entering directory `foo'
[10/10] Generating src/boot/efi/systemd-bootx64.efi with a custom command
This commit is contained in:
Luca Boccassi 2022-04-27 22:00:48 +01:00
parent 0a5e638cc7
commit 705d6b34ee

View File

@ -428,7 +428,7 @@ foreach tuple : [['systemd-boot@0@.@1@', systemd_boot_objects, false, 'systemd-b
install_tag: tuple[3], install_tag: tuple[3],
install_dir : bootlibdir) install_dir : bootlibdir)
custom_target( efi = custom_target(
tuple[0].format(efi_arch[0], 'efi'), tuple[0].format(efi_arch[0], 'efi'),
input : elf, input : elf,
output : tuple[0].format(efi_arch[0], 'efi'), output : tuple[0].format(efi_arch[0], 'efi'),
@ -449,4 +449,6 @@ foreach tuple : [['systemd-boot@0@.@1@', systemd_boot_objects, false, 'systemd-b
install : true, install : true,
install_tag: tuple[3], install_tag: tuple[3],
install_dir : bootlibdir) install_dir : bootlibdir)
alias_target(tuple[3], efi)
endforeach endforeach