Skip to contentSkip to conversation

chrony: enable pps support

PATCH New James Knight 2 participants 2 messages Nov 18, 2016 – Nov 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 chrony: enable pps support

Chrony has the ability to support PPS. Its enablement is determined primarily from the existence of sys/timepps.h. This file is provided from the pps-tools package. Adjusting Chrony's Makefile to depend on the pps-tools package if a developer has included pps-tools as part of a build. Relates to 2cfc966f431c7c715b3fc11ca0467d47432fca33.

---
 package/chrony/chrony.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/chrony/chrony.mk +6 -0
index adfbd36..5f3160e 100644
@@ -34,6 +34,12 @@ else
 CHRONY_CONF_OPTS += --disable-readline
 endif
 
+# If pps-tools is available, build it before so the package can use it
+# (HAVE_SYS_TIMEPPS_H).
+ifeq ($(BR2_PACKAGE_PPS_TOOLS),y)
+CHRONY_DEPENDENCIES += pps-tools
+endif
+
 define CHRONY_CONFIGURE_CMDS
 	cd $(@D) && $(TARGET_CONFIGURE_OPTS) ./configure $(CHRONY_CONF_OPTS)
 endef
Signature · 1 line
2.8.4.windows.1
#1 lore raw

PATCH 1/1 chrony: enable pps support

Hello,

Quoted 10 lines · James Knight

Chrony has the ability to support PPS. Its enablement is determined primarily from the existence of sys/timepps.h. This file is provided from the pps-tools package. Adjusting Chrony's Makefile to depend on the pps-tools package if a developer has included pps-tools as part of a build. Relates to 2cfc966f431c7c715b3fc11ca0467d47432fca33.

---
 package/chrony/chrony.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com