Skip to contentSkip to conversation

meson: install keyboard maps only if necessary

PATCH Superseded [email protected] 2 participants 3 messages Mar 26, 2023 – Mar 27, 2023 Arm/Amlogic Meson SoC support

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 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).

---
 pc-bios/keymaps/meson.build   | 6 ++++--
 tests/fp/berkeley-testfloat-3 | 2 +-
 ui/keycodemapdb               | 2 +-
 3 files changed, 6 insertions(+), 4 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
tests/fp/berkeley-testfloat-3 +1 -1
index 40619cbb3b..5a59dcec19 160000
@@ -1 +1 @@
-Subproject commit 40619cbb3bf32872df8c53cc457039229428a263
+Subproject commit 5a59dcec19327396a011a17fd924aed4fec416b3
ui/keycodemapdb +1 -1
index f5772a62ec..d21009b1c9 160000
@@ -1 +1 @@
-Subproject commit f5772a62ec52591ff6870b7e8ef32482371f22c6
+Subproject commit d21009b1c9f94b740ea66be8e48a1d8ad8124023
Signature · 1 line
2.31.1
#1 lore raw
Quoted 9 lines · On Sun, Mar 26, 2023 at 06:17:00PM -0300, [email protected] wrote:

From: Carlos Santos <[email protected]>

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

---
 pc-bios/keymaps/meson.build   | 6 ++++--
 tests/fp/berkeley-testfloat-3 | 2 +-
 ui/keycodemapdb               | 2 +-

This still has the accidental git submodule updates included

Quoted 41 lines
 3 files changed, 6 insertions(+), 4 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
tests/fp/berkeley-testfloat-3 +1 -1
index 40619cbb3b..5a59dcec19 160000
@@ -1 +1 @@
-Subproject commit 40619cbb3bf32872df8c53cc457039229428a263
+Subproject commit 5a59dcec19327396a011a17fd924aed4fec416b3
ui/keycodemapdb +1 -1
index f5772a62ec..d21009b1c9 160000
@@ -1 +1 @@
-Subproject commit f5772a62ec52591ff6870b7e8ef32482371f22c6
+Subproject commit d21009b1c9f94b740ea66be8e48a1d8ad8124023
Signature · 1 line
2.31.1

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 :|
#2 lore raw
Quoted 45 lines · Daniel P. Berrangé
Quoted 9 lines · On Sun, Mar 26, 2023 at 06:17:00PM -0300, [email protected] wrote:

From: Carlos Santos <[email protected]>

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

---
 pc-bios/keymaps/meson.build   | 6 ++++--
 tests/fp/berkeley-testfloat-3 | 2 +-
 ui/keycodemapdb               | 2 +-

This still has the accidental git submodule updates included

Quoted 31 lines
 3 files changed, 6 insertions(+), 4 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
tests/fp/berkeley-testfloat-3 +1 -1
index 40619cbb3b..5a59dcec19 160000
@@ -1 +1 @@
-Subproject commit 40619cbb3bf32872df8c53cc457039229428a263
+Subproject commit 5a59dcec19327396a011a17fd924aed4fec416b3
ui/keycodemapdb +0 -0
Quoted 8 lines
Quoted 8 lines

index f5772a62ec..d21009b1c9 160000

ui/keycodemapdb +1 -2
@@ -1 +1 @@
-Subproject commit f5772a62ec52591ff6870b7e8ef32482371f22c6
+Subproject commit d21009b1c9f94b740ea66be8e48a1d8ad8124023
--

2.31.1

I submitted an updated patch. Thanks.

Signature · 4 lines
Carlos Santos
Senior Software Maintenance Engineer
Red Hat
[email protected]    T: +55-11-3534-6186