diff options
Diffstat (limited to 'recipes-navigation')
-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) +} |