From patchwork Thu Oct 16 17:30:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 400341 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 968A91400F4 for ; Fri, 17 Oct 2014 04:40:50 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 72F9033930; Thu, 16 Oct 2014 17:40:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A0P2VQ--sDIa; Thu, 16 Oct 2014 17:40:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id DC8C233921; Thu, 16 Oct 2014 17:40:46 +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 116861C288A for ; Thu, 16 Oct 2014 17:40:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0A512921FF for ; Thu, 16 Oct 2014 17:40:45 +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 PFvrN6wib5HA for ; Thu, 16 Oct 2014 17:40:44 +0000 (UTC) X-Greylist: delayed 00:09:47 by SQLgrey-1.7.6 Received: from da1vs01.rockwellcollins.com (da1vs01.rockwellcollins.com [205.175.227.27]) by whitealder.osuosl.org (Postfix) with ESMTPS id 24FBA921EA for ; Thu, 16 Oct 2014 17:40:44 +0000 (UTC) Received: from ofwda1n02.rockwellcollins.com (HELO crulimr01.rockwellcollins.com) ([205.175.227.14]) by da1vs01.rockwellcollins.com with ESMTP; 16 Oct 2014 12:30:56 -0500 X-Received: from largo.rockwellcollins.com (srcnat-vips-vlan26.rockwellcollins.com [131.198.26.18]) by crulimr01.rockwellcollins.com (Postfix) with ESMTP id CBDE460734; Thu, 16 Oct 2014 12:30:55 -0500 (CDT) From: Matt Weber To: buildroot@busybox.net Date: Thu, 16 Oct 2014 12:30:54 -0500 Message-Id: <1413480654-59217-2-git-send-email-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413480654-59217-1-git-send-email-matthew.weber@rockwellcollins.com> References: <1413480654-59217-1-git-send-email-matthew.weber@rockwellcollins.com> Subject: [Buildroot] [PATCH v3 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 --- Changes v1 -> v2 - Updated Config.in option description (Suggested Thomas P) - Added conf opts to disable PPS when not selected (Suggested Thomas P) package/ntp/Config.in | 7 +++++++ package/ntp/ntp.mk | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/package/ntp/Config.in b/package/ntp/Config.in index 858a9ad..c92ae93 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 "PPS support" + 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..bb950a1 100644 --- a/package/ntp/ntp.mk +++ b/package/ntp/ntp.mk @@ -34,6 +34,13 @@ else NTP_CONF_OPTS += --without-ntpsnmpd endif +ifeq ($(BR2_PACKAGE_NTP_NTPD_ATOM_PPS),y) + NTP_CONF_OPTS += --enable-ATOM + NTP_DEPENDENCIES += pps-tools +else + NTP_CONF_OPTS += --disable-ATOM +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