From: Martin Jansa Date: Sun, 22 Aug 2010 21:35:31 +0000 (+0200) Subject: omgps: add sysfs node for 2.6.32 and newer kernels X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6978dc4ef8989651497e18088807d7377f016fb5;p=openembedded.git omgps: add sysfs node for 2.6.32 and newer kernels Signed-off-by: Martin Jansa --- 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 0000000000..d18a2fdb40 --- /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 b48a92896e..1c993d66ec 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