summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2016-04-26 10:01:58 -0400
committerEric S. Raymond <esr@thyrsus.com>2016-04-26 10:01:58 -0400
commit9f3be076421d70871b627b256961def30a460ddd (patch)
treee49f9226540e2ffc811e4817f8eb562b69991ec9 /SConstruct
parent476d5d1c02c7edb2feae1d8e61318f145113c84a (diff)
downloadgpsd-9f3be076421d70871b627b256961def30a460ddd.tar.gz
Give ODROID C2 users some hope of getting HAT autodetection of pps0 right.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 8 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 3bfb95ab..61cb905b 100644
--- a/SConstruct
+++ b/SConstruct
@@ -778,6 +778,14 @@ else:
announce("Forcing pps=no (neither TIOCMIWAIT nor RFC2783 API is available)")
env["pps"] = False
+ # This works for the Raspberry Pi. Someday, configure more interlligently
+ # for workalikes like the ODROID C2.
+ confdefs.append('''\
+/* Magic device which, if present, means to grab a static /dev/pps0 for KPPS */
+#define MAGIC_HAT_GPS "/dev/ttyAMA0"
+''')
+
+
confdefs.append('''\
/* Some libcs do not have strlcat/strlcpy. Local copies are provided */
#ifndef HAVE_STRLCAT