summaryrefslogtreecommitdiff
path: root/src/boot/efi
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-16 12:04:46 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-23 21:47:29 -0400
commitd83f4f506d560fb67add370f49510b9c55c467c8 (patch)
tree256ecf0c75a3282eaeed0db1460e306d81628e09 /src/boot/efi
parentfdd147a88e888e14fbd86b522998a8a566d09fd1 (diff)
test-efi-create-disk.sh: allow running from separate build dir, hook up to meson
This allow test-efi-disk.img to be created under meson. The invocation of qemu is not converted yet, in particular because the command-line used in Makefile.am is outdated.
Diffstat (limited to 'src/boot/efi')
-rw-r--r--src/boot/efi/meson.build15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build
index 69c7405983..2a69bc5c25 100644
--- a/src/boot/efi/meson.build
+++ b/src/boot/efi/meson.build
@@ -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