summaryrefslogtreecommitdiff
path: root/meta-openmoko/packages/openmoko2/neod
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-05-23 14:10:08 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-05-23 14:10:08 +0000
commit56bd25c1cac0d0b433c3b2b5b4e075319b4aa324 (patch)
tree9ce3944acd48cd1bca09e0e422d71d6ef8e63c6e /meta-openmoko/packages/openmoko2/neod
parentfb8af86c44daed3714b0ee1c611c74a736b0823d (diff)
downloadopenembedded-core-56bd25c1cac0d0b433c3b2b5b4e075319b4aa324.tar.gz
openembedded-core-56bd25c1cac0d0b433c3b2b5b4e075319b4aa324.tar.bz2
openembedded-core-56bd25c1cac0d0b433c3b2b5b4e075319b4aa324.zip
openmoko: merge with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4552 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta-openmoko/packages/openmoko2/neod')
-rw-r--r--meta-openmoko/packages/openmoko2/neod/htc.patch32
-rw-r--r--meta-openmoko/packages/openmoko2/neod/ipaq.patch32
2 files changed, 64 insertions, 0 deletions
diff --git a/meta-openmoko/packages/openmoko2/neod/htc.patch b/meta-openmoko/packages/openmoko2/neod/htc.patch
new file mode 100644
index 0000000000..0ced894a45
--- /dev/null
+++ b/meta-openmoko/packages/openmoko2/neod/htc.patch
@@ -0,0 +1,32 @@
+Index: neod/configure.ac
+===================================================================
+--- neod.orig/configure.ac 2007-09-15 23:01:30.000000000 +0200
++++ neod/configure.ac 2007-09-15 23:02:01.000000000 +0200
+@@ -32,6 +32,10 @@
+ NEOD_CFLAGS="$NEOD_CFLAGS -DNEOD_PLATFORM_MOTOROLA_EZX"
+ fi
+
++if test x"$neod_platform" = x"htc"; then
++ NEOD_CFLAGS="$NEOD_CFLAGS -DNEOD_PLATFORM_HTC"
++fi
++
+ CFLAGS=$NEOD_CFLAGS
+
+ AC_OUTPUT([
+Index: neod/src/buttonactions.c
+===================================================================
+--- neod.orig/src/buttonactions.c 2007-09-15 23:02:15.000000000 +0200
++++ neod/src/buttonactions.c 2007-09-15 23:04:16.000000000 +0200
+@@ -63,6 +63,12 @@
+ #define TOUCHSCREEN_BUTTON_KEYCODE 0x14a
+ #endif
+
++#ifdef NEOD_PLATFORM_HTC
++ #define AUX_BUTTON_KEYCODE 0xd4 /* camera */
++ #define POWER_BUTTON_KEYCODE 0x74 /* power */
++ #define TOUCHSCREEN_BUTTON_KEYCODE 0x14a
++#endif
++
+ #define HEADPHONE_INSERTION_SWITCHCODE 0x02
+
+ GPollFD input_fd[10];
diff --git a/meta-openmoko/packages/openmoko2/neod/ipaq.patch b/meta-openmoko/packages/openmoko2/neod/ipaq.patch
new file mode 100644
index 0000000000..19b61ab1f5
--- /dev/null
+++ b/meta-openmoko/packages/openmoko2/neod/ipaq.patch
@@ -0,0 +1,32 @@
+Index: neod/src/buttonactions.c
+===================================================================
+--- neod.orig/src/buttonactions.c 2007-09-29 17:24:43.000000000 +0200
++++ neod/src/buttonactions.c 2007-09-29 17:24:49.000000000 +0200
+@@ -69,6 +69,12 @@
+ #define TOUCHSCREEN_BUTTON_KEYCODE 0x14a
+ #endif
+
++#ifdef NEOD_PLATFORM_IPAQ
++ #define AUX_BUTTON_KEYCODE 89 /* _KEY_RECORD */
++ #define POWER_BUTTON_KEYCODE 0x74 /* KEY_POWER */
++ #define TOUCHSCREEN_BUTTON_KEYCODE 0x14a
++#endif
++
+ #define HEADPHONE_INSERTION_SWITCHCODE 0x02
+
+ GPollFD input_fd[10];
+Index: neod/configure.ac
+===================================================================
+--- neod.orig/configure.ac 2007-09-29 17:25:12.000000000 +0200
++++ neod/configure.ac 2007-09-29 17:25:48.000000000 +0200
+@@ -36,6 +36,10 @@
+ NEOD_CFLAGS="$NEOD_CFLAGS -DNEOD_PLATFORM_HTC"
+ fi
+
++if test x"$neod_platform" = x"ipaq"; then
++ NEOD_CFLAGS="$NEOD_CFLAGS -DNEOD_PLATFORM_IPAQ"
++fi
++
+ CFLAGS=$NEOD_CFLAGS
+
+ AC_OUTPUT([