aboutsummaryrefslogtreecommitdiff
path: root/pc-bios
diff options
context:
space:
mode:
authorCarlos Santos <casantos@redhat.com>2023-03-27 14:21:47 -0300
committerMichael Tokarev <mjt@tls.msk.ru>2023-06-09 23:38:16 +0300
commit890e37e27cd6b38a6e9bccf48c05700bab429b53 (patch)
treeb8e1b2cb5fd8e3e061a769288088853b15a78c3c /pc-bios
parentfbdffb08dfe5db0ffed22619bad1772a675e11e2 (diff)
meson: install keyboard maps only if necessary
They are required only for system emulation (i.e. have_system is true). Signed-off-by: Carlos Santos <casantos@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'pc-bios')
-rw-r--r--pc-bios/keymaps/meson.build6
1 files changed, 4 insertions, 2 deletions
diff --git a/pc-bios/keymaps/meson.build b/pc-bios/keymaps/meson.build
index 158a3b410c..bff3083313 100644
--- a/pc-bios/keymaps/meson.build
+++ b/pc-bios/keymaps/meson.build
@@ -47,7 +47,7 @@ if native_qemu_keymap.found()
build_by_default: true,
output: km,
command: [native_qemu_keymap, '-f', '@OUTPUT@', args.split()],
- install: true,
+ install: have_system,
install_dir: qemu_datadir / 'keymaps')
endforeach
@@ -56,4 +56,6 @@ else
install_data(keymaps.keys(), install_dir: qemu_datadir / 'keymaps')
endif
-install_data(['sl', 'sv'], install_dir: qemu_datadir / 'keymaps')
+if have_system
+ install_data(['sl', 'sv'], install_dir: qemu_datadir / 'keymaps')
+endif