0003-meson-install-keyboard-maps-only-if-necessary.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 9d9b74f806f5dbca53df6630c1a0591eaedd4500 Mon Sep 17 00:00:00 2001
  2. From: Carlos Santos <casantos@redhat.com>
  3. Date: Sun, 1 Jan 2023 21:00:57 -0300
  4. Subject: [PATCH] meson: install keyboard maps only if necessary
  5. They are required only for system emulation (i.e. have_system is true).
  6. Upstream: https://patchwork.kernel.org/project/qemu-devel/patch/20230327172147.196607-1-casantos@redhat.com/
  7. Signed-off-by: Carlos Santos <casantos@redhat.com>
  8. Signed-off-by: Carlos Santos <unixmania@gmail.com>
  9. ---
  10. pc-bios/keymaps/meson.build | 6 ++++--
  11. 1 file changed, 4 insertions(+), 2 deletions(-)
  12. diff --git a/pc-bios/keymaps/meson.build b/pc-bios/keymaps/meson.build
  13. index 158a3b410c..bff3083313 100644
  14. --- a/pc-bios/keymaps/meson.build
  15. +++ b/pc-bios/keymaps/meson.build
  16. @@ -47,7 +47,7 @@ if native_qemu_keymap.found()
  17. build_by_default: true,
  18. output: km,
  19. command: [native_qemu_keymap, '-f', '@OUTPUT@', args.split()],
  20. - install: true,
  21. + install: have_system,
  22. install_dir: qemu_datadir / 'keymaps')
  23. endforeach
  24. @@ -56,4 +56,6 @@ else
  25. install_data(keymaps.keys(), install_dir: qemu_datadir / 'keymaps')
  26. endif
  27. -install_data(['sl', 'sv'], install_dir: qemu_datadir / 'keymaps')
  28. +if have_system
  29. + install_data(['sl', 'sv'], install_dir: qemu_datadir / 'keymaps')
  30. +endif
  31. --
  32. 2.31.1