[ntpsec commit] Properly configure parse clock subtypes.
Eric S. Raymond
esr at ntpsec.org
Sat Oct 3 17:47:32 UTC 2015
Module: ntpsec
Branch: master
Commit: e12a44fea944c87acb8427ed1c29cc5a9b9c0eaf
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=e12a44fea944c87acb8427ed1c29cc5a9b9c0eaf
Author: Eric S. Raymond <esr at thyrsus.com>
Date: Sat Oct 3 13:47:14 2015 -0400
Properly configure parse clock subtypes.
---
pylib/refclock.py | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/pylib/refclock.py b/pylib/refclock.py
index c8a38d2..81b7b4d 100644
--- a/pylib/refclock.py
+++ b/pylib/refclock.py
@@ -213,6 +213,23 @@ def refclock_config(ctx):
rc = refclock_map[id]
+ if rc['define'] == "CLOCK_PARSE":
+ parse_clocks = (
+ "CLOCK_COMPUTIME",
+ "CLOCK_DCF7000",
+ "CLOCK_HOPF6021",
+ "CLOCK_MEINBERG",
+ "CLOCK_RAWDCF",
+ "CLOCK_RCC8000",
+ "CLOCK_SCHMID",
+ "CLOCK_TRIMTAIP",
+ "CLOCK_TRIMTSIP",
+ "CLOCK_VARITEXT",
+ "CLOCK_WHARTON_400A",
+ )
+ for subtype in parse_clocks:
+ ctx.define(subtype, 1)
+
ctx.start_msg("Enabling Refclock %s:" % id)
ctx.env.REFCLOCK_SOURCE.append((rc["file"], rc["define"]))
ctx.end_msg(rc["descr"])
More information about the vc
mailing list