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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
15 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)/v
$(PKG_VERSION
)
16 PKG_HASH
:=94d6855f9b7f2d8e9b0ca6d384e3fae6226ce6fc012dbad02608bdef3be1c0d9
18 PKG_MAINTAINER
:=Wojciech Dubowik
<Wojciech.Dubowik@westermo.com
>
20 PKG_LICENSE_FILES
:=COPYING
22 include $(INCLUDE_DIR
)/package.mk
23 include $(INCLUDE_DIR
)/kernel.mk
25 define Package
/linuxptp
28 SUBMENU
:=Time Synchronization
29 TITLE
:=Linux Precision Time Protocol
(PTP
) daemon
30 URL
:=http
://linuxptp.sourceforge.net
/
33 define Package
/linuxptp
/description
34 The PTP daemon
(PTPd
) implements version
2 of the Precision Time Protocol
(PTP
)
35 as defined by the IEEE
1588-2008 standard.
36 PTP was developed to provide very precise time coordination of LAN connected
40 EXTRA_CFLAGS
+= -DHAVE_CLOCK_ADJTIME
-DHAVE_POSIX_SPAWN
-DHAVE_ONESTEP_SYNC
43 EXTRA_CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CFLAGS)" \
44 KBUILD_OUTPUT
="$(LINUX_DIR)"
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
/
56 $(eval
$(call BuildPackage
,linuxptp
))