diff --git a/package/ntpsec/Config.in b/package/ntpsec/Config.in index c81673481e..3b20daecc7 100644 --- a/package/ntpsec/Config.in +++ b/package/ntpsec/Config.in @@ -29,6 +29,13 @@ config BR2_PACKAGE_NTPSEC_NTS help Enable Network Time Security (NTS) support. +config BR2_PACKAGE_NTPSEC_REFCLOCK_ALL + bool "refclock-all" + select BR2_PACKAGE_PPS_TOOLS + help + Enable all refclocks (hardware, sync source and discplined + clocks) + endif comment "ntpsec needs a toolchain w/ wchar, threads, dynamic library" diff --git a/package/ntpsec/ntpsec.mk b/package/ntpsec/ntpsec.mk index a0d0662947..ac4b90e37a 100644 --- a/package/ntpsec/ntpsec.mk +++ b/package/ntpsec/ntpsec.mk @@ -53,6 +53,12 @@ ifeq ($(BR2_PACKAGE_NTPSEC_NTS),) NTPSEC_CONF_OPTS += --disable-nts endif +# refclocks are disabled by default, can only be enabled +ifeq ($(BR2_PACKAGE_NTPSEC_REFCLOCK_ALL),y) +NTPSEC_DEPENDENCIES += pps-tools +NTPSEC_CONF_OPTS += --refclock=all +endif + define NTPSEC_INSTALL_NTPSEC_CONF $(INSTALL) -m 644 package/ntpsec/ntpd.etc.conf $(TARGET_DIR)/etc/ntp.conf endef