summaryrefslogtreecommitdiff
path: root/recipes-navigation
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2016-11-15 10:37:02 -0600
committerJohn Klug <john.klug@multitech.com>2016-11-15 10:37:02 -0600
commit09ac0882fb7cf45168197dd206d9d0482fe5f4da (patch)
tree9d9c05c0a39b9e75929f60e6bf17a4aada3f0e1d /recipes-navigation
parentfa9d9ac8939b1f123826bec3de08ce615137ecf4 (diff)
downloadmeta-mlinux-09ac0882fb7cf45168197dd206d9d0482fe5f4da.tar.gz
meta-mlinux-09ac0882fb7cf45168197dd206d9d0482fe5f4da.tar.bz2
meta-mlinux-09ac0882fb7cf45168197dd206d9d0482fe5f4da.zip
Add mts-io features to GPSD init.d script
Diffstat (limited to 'recipes-navigation')
-rw-r--r--recipes-navigation/gpsd/gpsd/Conduit.patch14
-rw-r--r--recipes-navigation/gpsd/gpsd_3.7.bbappend10
2 files changed, 24 insertions, 0 deletions
diff --git a/recipes-navigation/gpsd/gpsd/Conduit.patch b/recipes-navigation/gpsd/gpsd/Conduit.patch
new file mode 100644
index 0000000..0fced15
--- /dev/null
+++ b/recipes-navigation/gpsd/gpsd/Conduit.patch
@@ -0,0 +1,14 @@
+diff -uprN old/gpsd new/gpsd
+--- old/gpsd 2016-11-14 14:37:19.733762786 -0600
++++ new/gpsd 2016-11-14 14:43:28.733762007 -0600
+@@ -93,6 +93,10 @@ do_reload() {
+
+ case "$1" in
+ start)
++ if ! [[ -r /sys/devices/platform/mts-io/gnss-int ]] ; then
++ echo "No GPS available"
++ exit
++ fi
+ echo "Starting $DESC" "$NAME"
+ do_start
+ exit $?
diff --git a/recipes-navigation/gpsd/gpsd_3.7.bbappend b/recipes-navigation/gpsd/gpsd_3.7.bbappend
new file mode 100644
index 0000000..73b814f
--- /dev/null
+++ b/recipes-navigation/gpsd/gpsd_3.7.bbappend
@@ -0,0 +1,10 @@
+PR .= ".mlinux1"
+
+SRC_URI += " file://Conduit.patch;patchdir=.."
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}"
+
+python do_patch_prepend () {
+ import os
+ cwd = os.getcwd()
+ bb.note("Hello %s",cwd)
+}