2 # Copyright (C) 2015-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
13 PKG_REV:=891d56e4292653c5c19ac8345159a1f1f5b2df26
15 PKG_MAINTAINER:=Wojciech Dubowik <Wojciech.Dubowik@neratec.com>
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=git://git.code.sf.net/p/linuxptp/code
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
24 PKG_LICENSE_FILES:=COPYING
26 include $(INCLUDE_DIR)/package.mk
28 define Package/linuxptp
31 SUBMENU:=Time Synchronization
32 TITLE:=Linux Precision Time Protocol (PTP) daemon
33 URL:=http://linuxptp.sourceforge.net/
34 DEPENDS:=@!USE_UCLIBC +librt
37 define Package/linuxptp/description
38 The PTP daemon (PTPd) implements version 2 of the Precision Time Protocol (PTP)
39 as defined by the IEEE 1588-2008 standard.
40 PTP was developed to provide very precise time coordination of LAN connected
45 EXTRA_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)"
47 define Package/linuxptp/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hwstamp_ctl $(1)/usr/sbin/
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/phc2sys $(1)/usr/sbin/
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/phc_ctl $(1)/usr/sbin/
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pmc $(1)/usr/sbin/
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ptp4l $(1)/usr/sbin/
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/timemaster $(1)/usr/sbin/
57 $(eval $(call BuildPackage,linuxptp))