package/qemu: install keyboard maps only if necessary
PATCH v3 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 that makes the installation conditional:
https://patchwork.kernel.org/project/qemu-devel/patch/[email protected]/
Signed-off-by Carlos Santos <[email protected]>
---
Changes v1->v2
- Fixed reference to uptream patch, using the QEMU patchwork
Changes v2->v3
- Fix SOB, as required by the Buildroot policy
--- ...tall-keyboard-maps-only-if-necessary.patch | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/qemu/0003-meson-install-keyboard-maps-only-if-necessary.patch
package/qemu/0003-meson-install-keyboard-maps-only-if-necessary.patch new file +37 -0
@@ -0,0 +1,37 @@ +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]> +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
Thomas Petazzoni via buildroot
AppliedQuoted 13 lines · On Wed, 24 May 2023 10:31:38 -0300 [email protected] wrote:
From: Carlos Santos <[email protected]>
They are required only for system emulation, so pull a patch already reviewd upstream that makes the installation conditional:
https://patchwork.kernel.org/project/qemu-devel/patch/[email protected]/Signed-off-by Carlos Santos <[email protected]>---
Changesv1->v2
- Fixed reference to uptream patch, using the QEMU patchwork
Changesv2->v3
- Fix SOB, as required by the Buildroot policy
Quoted 4 lines
--- ...tall-keyboard-maps-only-if-necessary.patch | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/qemu/0003-meson-install-keyboard-maps-only-if-necessary.patch
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot