You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2015-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=linuxptp
  9. PKG_VERSION:=1.8
  10. PKG_RELEASE:=2
  11. PKG_REV:=891d56e4292653c5c19ac8345159a1f1f5b2df26
  12. PKG_MAINTAINER:=Wojciech Dubowik <Wojciech.Dubowik@neratec.com>
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  14. PKG_SOURCE_URL:=git://git.code.sf.net/p/linuxptp/code
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_VERSION:=$(PKG_REV)
  17. PKG_SOURCE_PROTO:=git
  18. PKG_MD5SUM:=
  19. PKG_LICENSE:=GPL-2.0
  20. PKG_LICENSE_FILES:=COPYING
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/linuxptp
  23. SECTION:=net
  24. CATEGORY:=Network
  25. SUBMENU:=Time Synchronization
  26. TITLE:=Linux Precision Time Protocol (PTP) daemon
  27. URL:=http://linuxptp.sourceforge.net/
  28. DEPENDS:=@!USE_UCLIBC +librt
  29. endef
  30. define Package/linuxptp/description
  31. The PTP daemon (PTPd) implements version 2 of the Precision Time Protocol (PTP)
  32. as defined by the IEEE 1588-2008 standard.
  33. PTP was developed to provide very precise time coordination of LAN connected
  34. computers.
  35. endef
  36. MAKE_VARS += \
  37. EXTRA_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)"
  38. define Package/linuxptp/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/hwstamp_ctl $(1)/usr/sbin/
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/phc2sys $(1)/usr/sbin/
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/phc_ctl $(1)/usr/sbin/
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/pmc $(1)/usr/sbin/
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ptp4l $(1)/usr/sbin/
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/timemaster $(1)/usr/sbin/
  46. endef
  47. $(eval $(call BuildPackage,linuxptp))