[OE-core] [PATCH 1/1 v2] kbd: Limit the kbdrate application to x86, mips and sparc

jackie.huang at windriver.com jackie.huang at windriver.com
Fri Jul 12 05:42:04 UTC 2013


From: Jackie Huang <jackie.huang at windriver.com>

The code relies on hardware specific memory locations to access
and modify the keyboard repeat rate.  It also requires read/write
access to /dev/port which doesn't exist on every architecture's
root fs. The defect was raised for Qemu PowerPC but it also fails on
ARM.  The keyboard emulation in qemuppc is for an ADB (Apple Desktop
Bus) device and not compatible with an Intel driver.  There's also no
indication in the documentation that the code should work on anything
other than Intel architecture but it also works on MIPS.

Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
---
 meta/recipes-core/kbd/kbd_1.15.2.bb |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-core/kbd/kbd_1.15.2.bb b/meta/recipes-core/kbd/kbd_1.15.2.bb
index 79ea468..25ca8be 100644
--- a/meta/recipes-core/kbd/kbd_1.15.2.bb
+++ b/meta/recipes-core/kbd/kbd_1.15.2.bb
@@ -28,3 +28,11 @@ inherit update-alternatives
 
 ALTERNATIVE_${PN} = "chvt deallocvt fgconsole openvt"
 ALTERNATIVE_PRIORITY = "100"
+
+do_install_append() {
+        # Limit the kbdrate application to x86, mips and sparc.
+        if [ ${TARGET_ARCH} != "i586" -a ${TARGET_ARCH} != "x86_64" -a ${TARGET_ARCH} != "mips" \
+             -a ${TARGET_ARCH} != "mips64" -a ${TARGET_ARCH} != "sparc" ]; then
+                rm ${D}/${bindir}/kbdrate
+        fi
+}
-- 
1.7.4.1




More information about the Openembedded-core mailing list