summaryrefslogtreecommitdiff
path: root/recipes/linux-input
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/linux-input
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/linux-input')
-rw-r--r--recipes/linux-input/files/makefile.patch12
-rw-r--r--recipes/linux-input/files/serio.h63
-rw-r--r--recipes/linux-input/files/snes232.patch10
-rw-r--r--recipes/linux-input/linux-input_cvs.bb22
4 files changed, 107 insertions, 0 deletions
diff --git a/recipes/linux-input/files/makefile.patch b/recipes/linux-input/files/makefile.patch
new file mode 100644
index 0000000000..6499372f83
--- /dev/null
+++ b/recipes/linux-input/files/makefile.patch
@@ -0,0 +1,12 @@
+--- Makefile.old 2004-12-05 18:33:23.000000000 +0000
++++ Makefile 2004-12-05 18:33:42.000000000 +0000
+@@ -32,8 +32,7 @@
+ CC = gcc
+ CFLAGS = -g -O2 -Wall -I../linux/include
+
+-PROGRAMS = evtest inputattach jstest jscal fftest ffmvforce ffset \
+- ffcfstress # acceltest
++PROGRAMS = evtest inputattach jstest jscal fftest
+
+ compile: $(PROGRAMS)
+
diff --git a/recipes/linux-input/files/serio.h b/recipes/linux-input/files/serio.h
new file mode 100644
index 0000000000..375f1e2716
--- /dev/null
+++ b/recipes/linux-input/files/serio.h
@@ -0,0 +1,63 @@
+#ifndef _SERIO_H
+#define _SERIO_H
+
+/*
+ * Copyright (C) 1999-2002 Vojtech Pavlik
+*
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published by
+ * the Free Software Foundation.
+ */
+
+#include <linux/ioctl.h>
+
+#define SPIOCSTYPE _IOW('q', 0x01, unsigned long)
+
+/*
+ * bit masks for use in "interrupt" flags (3rd argument)
+ */
+#define SERIO_TIMEOUT 1
+#define SERIO_PARITY 2
+#define SERIO_FRAME 4
+
+#define SERIO_TYPE 0xff000000UL
+#define SERIO_XT 0x00000000UL
+#define SERIO_8042 0x01000000UL
+#define SERIO_RS232 0x02000000UL
+#define SERIO_HIL_MLC 0x03000000UL
+#define SERIO_PS_PSTHRU 0x05000000UL
+#define SERIO_8042_XL 0x06000000UL
+
+#define SERIO_PROTO 0xFFUL
+#define SERIO_MSC 0x01
+#define SERIO_SUN 0x02
+#define SERIO_MS 0x03
+#define SERIO_MP 0x04
+#define SERIO_MZ 0x05
+#define SERIO_MZP 0x06
+#define SERIO_MZPP 0x07
+#define SERIO_VSXXXAA 0x08
+#define SERIO_SUNKBD 0x10
+#define SERIO_WARRIOR 0x18
+#define SERIO_SPACEORB 0x19
+#define SERIO_MAGELLAN 0x1a
+#define SERIO_SPACEBALL 0x1b
+#define SERIO_GUNZE 0x1c
+#define SERIO_IFORCE 0x1d
+#define SERIO_STINGER 0x1e
+#define SERIO_NEWTON 0x1f
+#define SERIO_STOWAWAY 0x20
+#define SERIO_H3600 0x21
+#define SERIO_PS2SER 0x22
+#define SERIO_TWIDKBD 0x23
+#define SERIO_TWIDJOY 0x24
+#define SERIO_HIL 0x25
+#define SERIO_SNES232 0x26
+#define SERIO_SEMTECH 0x27
+#define SERIO_LKKBD 0x28
+#define SERIO_ELO 0x29
+
+#define SERIO_ID 0xff00UL
+#define SERIO_EXTRA 0xff0000UL
+
+#endif
diff --git a/recipes/linux-input/files/snes232.patch b/recipes/linux-input/files/snes232.patch
new file mode 100644
index 0000000000..349a4aac08
--- /dev/null
+++ b/recipes/linux-input/files/snes232.patch
@@ -0,0 +1,10 @@
+--- inputattach.c~org 2007-02-24 10:13:34.000000000 -0500
++++ inputattach.c 2007-02-24 10:17:01.000000000 -0500
+@@ -372,6 +372,7 @@
+ { "--ps2serkbd", "-ps2ser", B1200, CS8, SERIO_PS2SER, 0, 0, 1, NULL },
+ { "--twiddler", "-twid", B2400, CS8, SERIO_TWIDKBD, 0, 0, 0, twiddler_init },
+ { "--twiddler-joy", "-twidjoy", B2400, CS8, SERIO_TWIDJOY, 0, 0, 0, twiddler_init },
++{ "--snes232", "-pad", B115200, CS8, SERIO_SNES232, 0x00, 0, 0, NULL },
+ { "--elotouch", "-elo", B9600, CS8 | CRTSCTS, SERIO_ELO, 0, 0, 0, NULL },
+ { "--elo4002", "-elo6b", B9600, CS8 | CRTSCTS, SERIO_ELO, 1, 0, 0, NULL },
+ { "--elo271-140", "-elo4b", B9600, CS8 | CRTSCTS, SERIO_ELO, 2, 0, 0, NULL },
diff --git a/recipes/linux-input/linux-input_cvs.bb b/recipes/linux-input/linux-input_cvs.bb
new file mode 100644
index 0000000000..d90322356c
--- /dev/null
+++ b/recipes/linux-input/linux-input_cvs.bb
@@ -0,0 +1,22 @@
+PR = "r2"
+PV = "0.0+cvs${SRCDATE}"
+
+SRC_URI = "cvs://anonymous@linuxconsole.cvs.sourceforge.net/cvsroot/linuxconsole;module=ruby \
+ file://serio.h \
+ file://makefile.patch;patch=1;pnum=0 \
+ file://snes232.patch;patch=1;pnum=0"
+LICENSE = "GPL"
+
+S = "${WORKDIR}/ruby/utils"
+
+CFLAGS =+ "-I. -I../linux/include -I../ruby-2.6/include"
+
+do_configure() {
+ install -d linux
+ install -m 0644 ${WORKDIR}/serio.h linux/
+}
+
+do_install() {
+ install -d ${D}${sbindir}
+ install evtest inputattach jstest jscal fftest ${D}${sbindir}
+}