Skip to contentSkip to conversation

package/qemu: install keyboard maps only if necessary

PATCH Superseded [email protected] 2 participants 4 messages Apr 9, 2023 – May 23, 2023 Arm/Amlogic Meson SoC support

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/qemu: install keyboard maps only if necessary

From: Carlos Santos <[email protected]>

They are required only for system emulation, so pull a patch already reviewd upstream[1,2] that makes the installation conditional.

1. https://lists.gnu.org/archive/html/qemu-devel/2023-03/msg06428.html
2. https://lists.gnu.org/archive/html/qemu-devel/2023-03/msg06438.html

---
 ...tall-keyboard-maps-only-if-necessary.patch | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch
package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch new file +36 -0
new file mode 100644
index 0000000000..91ea1e86c9
@@ -0,0 +1,36 @@
+From 9d9b74f806f5dbca53df6630c1a0591eaedd4500 Mon Sep 17 00:00:00 2001
+From: Carlos Santos <[email protected]>
+Date: Sun, 1 Jan 2023 21:00:57 -0300
+Subject: [PATCH] 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 <[email protected]>
+---
+ pc-bios/keymaps/meson.build | 6 ++++--
+ 1 file 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
+-- 
+2.31.1
+
Signature · 6 lines
2.31.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Carlos,

Quoted 20 lines · On 09/04/2023 02:09, [email protected] wrote:

From: Carlos Santos <[email protected]>

They are required only for system emulation, so pull a patch already reviewd upstream[1,2] that makes the installation conditional.

1. https://lists.gnu.org/archive/html/qemu-devel/2023-03/msg06428.html
2. https://lists.gnu.org/archive/html/qemu-devel/2023-03/msg06438.html

---
  ...tall-keyboard-maps-only-if-necessary.patch | 36 +++++++++++++++++++
  1 file changed, 36 insertions(+)

create mode 100644 package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch

package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch new file +0 -0
new file mode 100644
index 0000000000..91ea1e86c9

package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch line 8

Quoted 8 lines
package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch new file +8 -0
@@ -0,0 +1,36 @@
+From 9d9b74f806f5dbca53df6630c1a0591eaedd4500 Mon Sep 17 00:00:00 2001
+From: Carlos Santos <[email protected]>
+Date: Sun, 1 Jan 2023 21:00:57 -0300
+Subject: [PATCH] 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 <[email protected]>

We need the SoB for [email protected] on this. The SoB is a short way for
you (the private person, not the Redhat employee) to assert that you are entitled to contribute the patch under qemu's license.

Also, please link to the upstream patchwork entry here, like this:

Upstream: https://patchwork.kernel.org/project/qemu-devel/patch/[email protected]/

Regards,
Arnout

Quoted 18 lines
package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch new file +18 -0
+---
+ pc-bios/keymaps/meson.build | 6 ++++--
+ 1 file 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

package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch line 36

Quoted 10 lines
package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch new file +10 -0
+   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
+--
+2.31.1
+

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
Quoted 28 lines · Arnout Vandecappelle

Hi Carlos,

Quoted 24 lines · On 09/04/2023 02:09, [email protected] wrote:

From: Carlos Santos <[email protected]>

They are required only for system emulation, so pull a patch already reviewd upstream[1,2] that makes the installation conditional.

1. https://lists.gnu.org/archive/html/qemu-devel/2023-03/msg06428.html
2. https://lists.gnu.org/archive/html/qemu-devel/2023-03/msg06438.html

---
  ...tall-keyboard-maps-only-if-necessary.patch | 36 +++++++++++++++++++
  1 file changed, 36 insertions(+)

create mode 100644 package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch

package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch new file +4 -0
new file mode 100644
index 0000000000..91ea1e86c9
@@ -0,0 +1,36 @@
+From 9d9b74f806f5dbca53df6630c1a0591eaedd4500 Mon Sep 17 00:00:00 2001
+From: Carlos Santos <[email protected]>
+Date: Sun, 1 Jan 2023 21:00:57 -0300
+Subject: [PATCH] meson: install keyboard maps only if necessary
Quoted 8 lines

package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch line 8

Quoted 4 lines
package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch new file +4 -0
+
+They are required only for system emulation (i.e. have_system is true).
+
+Signed-off-by: Carlos Santos <[email protected]>

We need the SoB for [email protected] on this. The SoB is a short way for
you (the private person, not the Redhat employee) to assert that you are entitled to contribute the patch under qemu's license.

Thousands of Red Hat employees contribute to free software projects using their work email addresses. There is no contradiction between personal and employee activity regarding this. Check this document for additional information:

Red Hat’s open source participation guidelines
https://www.redhat.com/en/resources/open-source-participation-guidelines-overview

Quoted 4 lines

Also, please link to the upstream patchwork entry here, like this:

Upstream:
https://patchwork.kernel.org/project/qemu-devel/patch/[email protected]/

This makes sense. I will update the commit message to fix the link.

Signature · 5 lines
Carlos Santos <[email protected]>
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Hello,

Quoted 49 lines · Carlos Santos
Quoted 28 lines · Arnout Vandecappelle

Hi Carlos,

Quoted 24 lines · On 09/04/2023 02:09, [email protected] wrote:

From: Carlos Santos <[email protected]>

They are required only for system emulation, so pull a patch already reviewd upstream[1,2] that makes the installation conditional.

1. https://lists.gnu.org/archive/html/qemu-devel/2023-03/msg06428.html
2. https://lists.gnu.org/archive/html/qemu-devel/2023-03/msg06438.html

---
  ...tall-keyboard-maps-only-if-necessary.patch | 36 +++++++++++++++++++
  1 file changed, 36 insertions(+)

create mode 100644 package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch

package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch new file +4 -0
new file mode 100644
index 0000000000..91ea1e86c9
@@ -0,0 +1,36 @@
+From 9d9b74f806f5dbca53df6630c1a0591eaedd4500 Mon Sep 17 00:00:00 2001
+From: Carlos Santos <[email protected]>
+Date: Sun, 1 Jan 2023 21:00:57 -0300
+Subject: [PATCH] meson: install keyboard maps only if necessary
Quoted 8 lines

package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch line 8

Quoted 4 lines
package/qemu/0004-meson-install-keyboard-maps-only-if-necessary.patch new file +4 -0
+
+They are required only for system emulation (i.e. have_system is true).
+
+Signed-off-by: Carlos Santos <[email protected]>

We need the SoB for [email protected] on this. The SoB is a short way for
you (the private person, not the Redhat employee) to assert that you are entitled to contribute the patch under qemu's license.

Thousands of Red Hat employees contribute to free software projects using their work email addresses. There is no contradiction between personal and employee activity regarding this. Check this document for additional information:

Red Hat’s open source participation guidelines
https://www.redhat.com/en/resources/open-source-participation-guidelines-overview

Quoted 2 lines

Also, please link to the upstream patchwork entry here, like this:

Quoted 7 lines
Quoted 2 lines

Upstream:
https://patchwork.kernel.org/project/qemu-devel/patch/[email protected]/

This makes sense. I will update the commit message to fix the link.

--
Carlos Santos <[email protected]>

I sent an updated patch:

    https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Signature · 5 lines
Carlos Santos <[email protected]>
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot