lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1681B)


      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 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=linuxptp
     11 PKG_VERSION:=1.8
     12 PKG_RELEASE:=3
     13 
     14 PKG_MAINTAINER:=Wojciech Dubowik <Wojciech.Dubowik@neratec.com>
     15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
     16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)/v$(PKG_VERSION)
     17 PKG_MD5SUM:=5688cdfe57932273e1dbf35b3b97b9a0
     18 PKG_HASH:=fa8e00f6ec73cefa7bb313dce7f60dfe5eb9e2bde3353594e9ac18edc93e5165
     19 
     20 PKG_LICENSE:=GPL-2.0
     21 PKG_LICENSE_FILES:=COPYING
     22 
     23 include $(INCLUDE_DIR)/package.mk
     24 
     25 define Package/linuxptp
     26   SECTION:=net
     27   CATEGORY:=Network
     28   SUBMENU:=Time Synchronization
     29   TITLE:=Linux Precision Time Protocol (PTP) daemon
     30   URL:=http://linuxptp.sourceforge.net/
     31   DEPENDS:=@!USE_UCLIBC +librt
     32 endef
     33 
     34 define Package/linuxptp/description
     35  The PTP daemon (PTPd) implements version 2 of the Precision Time Protocol (PTP)
     36  as defined by the IEEE 1588-2008 standard.
     37  PTP was developed to provide very precise time coordination of LAN connected
     38  computers.
     39 endef
     40 
     41 EXTRA_CFLAGS += -DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC
     42 
     43 MAKE_VARS += \
     44 	EXTRA_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CFLAGS)"
     45 
     46 define Package/linuxptp/install
     47 	$(INSTALL_DIR) $(1)/usr/sbin
     48 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/hwstamp_ctl $(1)/usr/sbin/
     49 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/phc2sys $(1)/usr/sbin/
     50 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/phc_ctl $(1)/usr/sbin/
     51 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/pmc $(1)/usr/sbin/
     52 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/ptp4l $(1)/usr/sbin/
     53 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/timemaster $(1)/usr/sbin/
     54 endef
     55 
     56 $(eval $(call BuildPackage,linuxptp))