summaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-04-14 18:45:24 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-05-05 18:42:37 +0200
commit3f80c1393e489b829201152a056b5195a08eb734 (patch)
treedc6d22311401cfb94b1a0bc6c229bc01241c5747 /src/boot
parentf9a6cb0e138ddeeebe767b2632a35fa933e53c5f (diff)
downloadsystemd-3f80c1393e489b829201152a056b5195a08eb734.tar.gz
test/60-ukify: override stub location in tests
Without this, build would fail if the stub is not available in /usr/lib/.
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/efi/meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build
index 67ce00838d..9a560cf193 100644
--- a/src/boot/efi/meson.build
+++ b/src/boot/efi/meson.build
@@ -334,7 +334,7 @@ foreach efi_elf_binary : efi_elf_binaries
# FIXME: Use build_tgt.name() with meson >= 0.54.0
name = fs.name(efi_elf_binary.full_path()).split('.')[0]
name += name.startswith('linux') ? '.efi.stub' : '.efi'
- boot_targets += custom_target(
+ exe = custom_target(
name,
output : name,
input : efi_elf_binary,
@@ -351,6 +351,10 @@ foreach efi_elf_binary : efi_elf_binaries
'@INPUT@',
'@OUTPUT@',
])
+ boot_targets += exe
+ if name.startswith('linux')
+ boot_stubs += exe
+ endif
endforeach
alias_target('systemd-boot', boot_targets)