All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] chrony: enable pps support
@ 2016-11-18 20:26 James Knight
  2016-11-26 13:59 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: James Knight @ 2016-11-18 20:26 UTC (permalink / raw)
  To: buildroot

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.

Signed-off-by: James Knight <james.knight@rockwellcollins.com>
---
 package/chrony/chrony.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/chrony/chrony.mk b/package/chrony/chrony.mk
index adfbd36..5f3160e 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
-- 
2.8.4.windows.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] chrony: enable pps support
  2016-11-18 20:26 [Buildroot] [PATCH 1/1] chrony: enable pps support James Knight
@ 2016-11-26 13:59 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-11-26 13:59 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 18 Nov 2016 15:26:31 -0500, James Knight wrote:
> 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.
> 
> Signed-off-by: James Knight <james.knight@rockwellcollins.com>
> ---
>  package/chrony/chrony.mk | 6 ++++++
>  1 file changed, 6 insertions(+)

Applied to master, thanks.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-26 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-18 20:26 [Buildroot] [PATCH 1/1] chrony: enable pps support James Knight
2016-11-26 13:59 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.