Skip to contentSkip to conversation

meson: install keyboard maps only if necessary

PATCH In review [email protected] 2 participants 2 messages Mar 27, 2023 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 meson: install keyboard maps only if necessary

From: Carlos Santos <[email protected]>

They are required only for system emulation (i.e. have_system is true).

---
Changes v1->v2:
Remove stray --{enable,disable}-install-keymaps addition to scripts/meson-buildoptions.sh

Changes v2->v3:
Reset submodules (synchronize to origin/master)

---
 pc-bios/keymaps/meson.build | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
pc-bios/keymaps/meson.build +4 -2
index 158a3b410c..bff3083313 100644
@@ -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
Signature · 1 line
2.31.1
Reviewed-by on v3 1/1
#1 lore raw
Quoted 6 lines · On Mon, Mar 27, 2023 at 02:21:47PM -0300, [email protected] wrote:

From: Carlos Santos <[email protected]>

They are required only for system emulation (i.e. have_system is true).

---

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|