omgps: add sysfs node for 2.6.32 and newer kernels
authorMartin Jansa <Martin.Jansa@gmail.com>
Sun, 22 Aug 2010 21:35:31 +0000 (23:35 +0200)
committerMartin Jansa <Martin.Jansa@gmail.com>
Sun, 22 Aug 2010 21:45:01 +0000 (23:45 +0200)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/omgps/omgps/sysfs.node.2.6.32.patch [new file with mode: 0644]
recipes/omgps/omgps_svn.bb

diff --git a/recipes/omgps/omgps/sysfs.node.2.6.32.patch b/recipes/omgps/omgps/sysfs.node.2.6.32.patch
new file mode 100644 (file)
index 0000000..d18a2fd
--- /dev/null
@@ -0,0 +1,11 @@
+diff -uNr omgps.orig//src/uart.c omgps/src/uart.c
+--- omgps.orig//src/uart.c     2010-08-22 23:34:09.000000000 +0200
++++ omgps/src/uart.c   2010-08-22 23:33:54.000000000 +0200
+@@ -30,6 +30,7 @@
+  * NOTE: these file paths are subject to change according to kernel and distribution.
+  */
+ static const char *sysfs_gps_power[] = {
++      "/sys/bus/platform/devices/gta02-pm-gps.0/power_on",
+       "/sys/bus/platform/devices/neo1973-pm-gps.0/power_on",
+       "/sys/bus/platform/devices/neo1973-pm-gps.0/pwron"
+ };
index b48a928..1c993d6 100644 (file)
@@ -6,9 +6,10 @@ DEPENDS = "gtk+ python-pygobject dbus-glib"
 #PACKAGES = "${PN}-dbg ${PN}"
 SRCREV = "109"
 PV = "0.1+svnr${SRCPV}"
-PR = "r0"
+PR = "r1"
 S = "${WORKDIR}/${PN}"
 SRC_URI = "svn://omgps.googlecode.com/svn/trunk;module=omgps;proto=http \
-           file://gcc-4.4.patch"
+           file://gcc-4.4.patch \
+          file://sysfs.node.2.6.32.patch"
 
 inherit autotools