]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/boot/efi/meson.build
test-efi-create-disk.sh: allow running from separate build dir, hook up to meson
[thirdparty/systemd.git] / src / boot / efi / meson.build
index 69c74059832e6c34d5172280aa0e4d114932bbdb..2a69bc5c256e7a2955b3eadbfc8a29f0be3ad829 100644 (file)
@@ -158,7 +158,7 @@ if have_gnu_efi
          no_undefined_symbols,
          args : [so])
 
-    custom_target(
+    stub = custom_target(
       tuple[1],
       input : so,
       output : tuple[1],
@@ -175,5 +175,18 @@ if have_gnu_efi
                 ['@INPUT@', '@OUTPUT@'],
       install : true,
       install_dir : bootlibdir)
+
+    set_variable(tuple[0].underscorify(), so)
+    set_variable(tuple[0].underscorify() + '_stub', stub)
   endforeach
 endif
+
+############################################################
+
+if have_gnu_efi
+  test_efi_disk_img = custom_target(
+    'test-efi-disk.img',
+    input : [systemd_boot_so, stub_so_stub],
+    output : 'test-efi-disk.img',
+    command : [test_efi_create_disk_sh, '@OUTPUT@', '@INPUT0@', '@INPUT1@', splash_bmp])
+endif