[oe-commits] Martin Jansa : omgps: add sysfs node for 2.6.32 and newer kernels
git version control
git at git.openembedded.org
Sun Aug 22 21:45:26 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 6978dc4ef8989651497e18088807d7377f016fb5
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=6978dc4ef8989651497e18088807d7377f016fb5
Author: Martin Jansa <Martin.Jansa at gmail.com>
Date: Sun Aug 22 23:35:31 2010 +0200
omgps: add sysfs node for 2.6.32 and newer kernels
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
recipes/omgps/omgps/sysfs.node.2.6.32.patch | 11 +++++++++++
recipes/omgps/omgps_svn.bb | 5 +++--
2 files changed, 14 insertions(+), 2 deletions(-)
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
index 0000000..d18a2fd
--- /dev/null
+++ b/recipes/omgps/omgps/sysfs.node.2.6.32.patch
@@ -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"
+ };
diff --git a/recipes/omgps/omgps_svn.bb b/recipes/omgps/omgps_svn.bb
index b48a928..1c993d6 100644
--- a/recipes/omgps/omgps_svn.bb
+++ b/recipes/omgps/omgps_svn.bb
@@ -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
More information about the Openembedded-commits
mailing list