summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/chrony/chrony.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/chrony/chrony.mk b/package/chrony/chrony.mk
index adfbd3664b..5f3160e199 100644
--- a/package/chrony/chrony.mk
+++ b/package/chrony/chrony.mk
@@ -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
OpenPOWER on IntegriCloud