2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
16 include $(INCLUDE_DIR
)/package.mk
18 define Package
/pps-tools
19 SUBMENU
:=Time Synchronization
22 DEPENDS
:=@LINUX_2_6_23
23 TITLE
:=PPS
(Pulse Per Second
) Userland tools
24 URL
:=http
://wiki.enneenne.com
/index.php
/LinuxPPS_support
28 define Package
/pps-tools
/description
29 Userland tools for GPS and DCF-77 Clock syncronization. PPS support in Kernel must be enabled.
32 define Build
/InstallDev
33 $(CP
) $(PKG_BUILD_DIR
)/timepps.h
$(1)/usr
/include/
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 $(TARGET_CONFIGURE_OPTS
) \
39 CFLAGS
="$(TARGET_CFLAGS) -DHAVE_ISC_READER=1 -I ." \
40 BINDIR
="/usr/sbin" MANDIR
="/usr/man"
43 define Package
/pps-tools
/install
44 $(INSTALL_DIR
) $(1)/usr
/sbin
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ppstest
$(1)/usr
/sbin
/
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ppsctl
$(1)/usr
/sbin
/
49 $(eval
$(call BuildPackage
,pps-tools
))