From patchwork Wed Oct 15 20:37:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 400084 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 2C43D14010F for ; Thu, 16 Oct 2014 07:38:15 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5ED2295087; Wed, 15 Oct 2014 20:38:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KS15mRCAhN3Q; Wed, 15 Oct 2014 20:38:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 9DD3195024; Wed, 15 Oct 2014 20:38:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3AD951C2444 for ; Wed, 15 Oct 2014 20:38:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 35C4A91D37 for ; Wed, 15 Oct 2014 20:38:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oihrnVBsuDPI for ; Wed, 15 Oct 2014 20:38:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from secvs02.rockwellcollins.com (secvs02.rockwellcollins.com [205.175.225.241]) by whitealder.osuosl.org (Postfix) with ESMTPS id CDD5491D8E for ; Wed, 15 Oct 2014 20:38:09 +0000 (UTC) Received: from nosuchhost.198.131.in-addr.arpa (HELO crulimr01.rockwellcollins.com) ([131.198.26.129]) by secvs02.rockwellcollins.com with ESMTP; 15 Oct 2014 15:37:57 -0500 X-Received: from largo.rockwellcollins.com (srcnat-vips-vlan26.rockwellcollins.com [131.198.26.18]) by crulimr01.rockwellcollins.com (Postfix) with ESMTP id 9C66F6022C; Wed, 15 Oct 2014 15:37:57 -0500 (CDT) From: Matt Weber To: buildroot@busybox.net Date: Wed, 15 Oct 2014 15:37:55 -0500 Message-Id: <1413405475-5179-2-git-send-email-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413405475-5179-1-git-send-email-matthew.weber@rockwellcollins.com> References: <1413405475-5179-1-git-send-email-matthew.weber@rockwellcollins.com> Subject: [Buildroot] [PATCH 2/2] ntp: Adding pps support to ntpd X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Bryan Brinsko Added an option for the ntpd application to support pps inputs. Signed-off-by: Bryan Brinsko Signed-off-by: Matt Weber Acked-by: Thomas Petazzoni --- package/ntp/Config.in | 7 +++++++ package/ntp/ntp.mk | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/package/ntp/Config.in b/package/ntp/Config.in index 858a9ad..7722757 100644 --- a/package/ntp/Config.in +++ b/package/ntp/Config.in @@ -34,6 +34,13 @@ config BR2_PACKAGE_NTP_NTPD system date and time in sync and optionally serving time and date information on the network via the NTP protocol. +config BR2_PACKAGE_NTP_NTPD_ATOM_PPS + bool "ntpd-pps" + depends on BR2_PACKAGE_NTP_NTPD + select BR2_PACKAGE_PPS_TOOLS + help + Compile ntpd with the ability to use an ATOM PPS source. + config BR2_PACKAGE_NTP_NTPDATE bool "ntpdate" help diff --git a/package/ntp/ntp.mk b/package/ntp/ntp.mk index 7c2cb8e..51598ba 100644 --- a/package/ntp/ntp.mk +++ b/package/ntp/ntp.mk @@ -34,6 +34,11 @@ else NTP_CONF_OPTS += --without-ntpsnmpd endif +ifeq ($(BR2_PACKAGE_NTP_NTPD_ATOM_PPS),y) + NTP_CONF_OPTS += --enable-ATOM + NTP_DEPENDENCIES += pps-tools +endif + define NTP_PATCH_FIXUPS $(SED) "s,^#if.*__GLIBC__.*_BSD_SOURCE.*$$,#if 0," $(@D)/ntpd/refclock_pcf.c $(SED) '/[[:space:](]rindex[[:space:]]*(/s/[[:space:]]*rindex[[:space:]]*(/ strrchr(/g' $(@D)/ntpd/*.c