diff options
author | John Klug <john.klug@multitech.com> | 2016-11-15 10:37:02 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2016-11-15 10:37:02 -0600 |
commit | 09ac0882fb7cf45168197dd206d9d0482fe5f4da (patch) | |
tree | 9d9c05c0a39b9e75929f60e6bf17a4aada3f0e1d | |
parent | fa9d9ac8939b1f123826bec3de08ce615137ecf4 (diff) | |
download | meta-mlinux-09ac0882fb7cf45168197dd206d9d0482fe5f4da.tar.gz meta-mlinux-09ac0882fb7cf45168197dd206d9d0482fe5f4da.tar.bz2 meta-mlinux-09ac0882fb7cf45168197dd206d9d0482fe5f4da.zip |
Add mts-io features to GPSD init.d script
-rw-r--r-- | recipes-navigation/gpsd/gpsd/Conduit.patch | 14 | ||||
-rw-r--r-- | recipes-navigation/gpsd/gpsd_3.7.bbappend | 10 |
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) +} |