Without this, build would fail if the stub is not available in /usr/lib/.
# D-Bus introspection XML export
dbus_programs = []
+# A list of boot stubs. Required for testing of ukify.
+boot_stubs = []
+
basic_includes = include_directories(
'src/basic',
'src/fundamental',
if want_tests != 'false' and want_kernel_install
args = [kernel_install.full_path(), loaderentry_install, uki_copy_install]
- if want_ukify
- args += [ukify.full_path(), ukify_install]
+ if want_ukify and boot_stubs.length() > 0
+ args += [ukify.full_path(), ukify_install, boot_stubs[0]]
endif
test('test-kernel-install',
# 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,
'@INPUT@',
'@OUTPUT@',
])
+ boot_targets += exe
+ if name.startswith('linux')
+ boot_stubs += exe
+ endif
endforeach
alias_target('systemd-boot', boot_targets)
uki_copy_install="${3:?}"
ukify="${4:-}"
ukify_install="${5:-}"
+boot_stub="${6:-}"
if [[ -d "${PROJECT_BUILD_ROOT:-}" ]]; then
bootctl="${PROJECT_BUILD_ROOT}/bootctl"
else
export BOOT_MNT="$D/boot"
export MACHINE_ID='3e0484f3634a418b8e6a39e8828b03e3'
export KERNEL_INSTALL_UKIFY="$ukify"
+export KERNEL_INSTALL_BOOT_STUB="$boot_stub"
# Test type#1 installation
"$kernel_install" -v add 1.1.1 "$D/sources/linux" "$D/sources/initrd"