[Git][NTPsec/ntpsec][master] Implement --disable-kernel-pll configuration option.
Eric S. Raymond
gitlab at mg.gitlab.com
Wed Sep 28 18:22:04 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
c6b45a2d by Eric S. Raymond at 2016-09-28T14:21:52-04:00
Implement --disable-kernel-pll configuration option.
- - - - -
2 changed files:
- wafhelpers/configure.py
- wafhelpers/options.py
Changes:
=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -434,8 +434,8 @@ def cmd_configure(ctx, config):
# file /usr/include/sys/timex.h for the particular
# architecture to be in place."
#
- if ctx.get_define("HAVE_SYS_TIMEX_H"):
- ctx.define("HAVE_KERNEL_PLL", 1, comment="Whether phase-locked loop for timing exists")
+ if ctx.get_define("HAVE_SYS_TIMEX_H") and not ctx.options.disable_kernel_pll:
+ ctx.define("HAVE_KERNEL_PLL", 1, comment="Whether phase-locked loop for timing exists and is enabled")
# SO_REUSEADDR socket option is needed to open a socket on an
# interface when the port number is already in use on another
=====================================
wafhelpers/options.py
=====================================
--- a/wafhelpers/options.py
+++ b/wafhelpers/options.py
@@ -16,6 +16,7 @@ def options_cmd(ctx, config):
grp.add_option('--enable-seccomp', action='store_true', default=False, help="Enable seccomp (restricts syscalls).")
grp.add_option('--disable-dns-lookup', action='store_true', default=False, help="Disable DNS lookups.")
grp.add_option('--disable-dns-retry', action='store_true', default=False, help="Disable retrying DNS lookups.")
+ grp.add_option('--disable-kernel-pll', action='store_true', default=False, help="Disable kernel PLL.")
grp.add_option('--disable-mdns-registration', action='store_true', default=False, help="Disable MDNS registration.")
grp.add_option('--enable-classic-mode', action='store_true', default=False, help="Strict configuration and log-format compatibility with NTP Classic")
grp.add_option('--enable-debug-timing', action='store_true', default=False, help="Collect timing statistics for debugging.")
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c6b45a2d332ab98f278691fbb462e6b65a528649
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160928/0c1d3164/attachment.html>
More information about the vc
mailing list