]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
add target ntpdate and build as application
authorMarkham <markham001@gmx.de>
Sun, 22 Nov 2015 20:03:34 +0000 (21:03 +0100)
committerMarkham <markham001@gmx.de>
Sun, 22 Nov 2015 20:03:34 +0000 (21:03 +0100)
Makefile
archive-patches/busybox-1.22.1-hd1.config
make/applications.mk
make/archives.mk
make/versions.mk

index f0e146e0d7bbc2bfdbd19f4f367151b00c3a8455..6aa3bbdacc14bb31c960e9f0ae231bd398a9b603 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -166,7 +166,7 @@ neutrino-libs:
 
 # applications.mk
 applications:
-       $(MAKE) $(D)/procps $(D)/busybox $(D)/e2fsprogs $(D)/hotplug $(D)/fbshot $(D)/vsftpd $(D)/flashcp
+       $(MAKE) $(D)/procps $(D)/busybox $(D)/e2fsprogs $(D)/hotplug $(D)/fbshot $(D)/vsftpd $(D)/flashcp $(D)/ntp
        if [ $(WIFI) = "yes" ]; then \
                $(MAKE) $(D)/wpa_supplicant; \
        else \
index 47142262cb935ac5ef2239dfd242a7e4ed053be7..3a726dd2ab4b4d4cc87d21a76c2c1c0476531442 100644 (file)
@@ -820,7 +820,7 @@ CONFIG_NETSTAT=y
 # CONFIG_FEATURE_NETSTAT_WIDE is not set
 # CONFIG_FEATURE_NETSTAT_PRG is not set
 CONFIG_NSLOOKUP=y
-CONFIG_NTPD=y
+CONFIG_NTPD=n
 # CONFIG_FEATURE_NTPD_SERVER is not set
 # CONFIG_PSCAN is not set
 CONFIG_ROUTE=y
index 27ede33380d5d511276fc39cacf4de1c3106c568..355aaa1221b6a98c955fd9f39f6decdccd3ddd1a 100755 (executable)
@@ -87,6 +87,27 @@ $(D)/fbshot: $(D)/zlib $(ARCHIVE)/fbshot-0.3.tar.gz | $(TARGETPREFIX)
        $(REMOVE)/fbshot-0.3
        touch $@
 
+$(D)/ntp: $(D)/openssl $(ARCHIVE)/ntp-$(NTP_VER).tar.gz | $(TARGETPREFIX)
+       $(UNTAR)/ntp-$(NTP_VER).tar.gz
+       set -e; cd $(BUILD_TMP)/ntp-$(NTP_VER); \
+               $(PATCH)/ntp-remove-buildtime.patch; \
+               $(BUILDENV) ./configure \
+                       --build=$(BUILD) \
+                       --host=$(TARGET) \
+                       --target=$(TARGET) \
+                       --prefix= \
+                       --disable-tick \
+                       --disable-tickadj \
+                       --with-yielding-select=yes \
+                       --without-ntpsnmpd \
+                       --disable-debugging \
+                       ; \
+               $(MAKE)
+       cp -a $(BUILD_TMP)/ntp-$(NTP_VER)/ntpdate/ntpdate $(TARGETPREFIX)/sbin/
+       $(TARGET)-strip $(TARGETPREFIX)/sbin/ntpdate
+       $(REMOVE)/ntp-$(NTP_VER)
+       touch $@
+
 $(D)/vsftpd: $(ARCHIVE)/vsftpd-3.0.2.tar.gz | $(TARGETPREFIX)
        if [ $(PLATFORM) = "nevis" ]; then \
                $(MAKE) $(D)/vsftpd-nevis; \
index 464af96f2f2f1ed5fc0b1866fb327481a2d8cbe1..4242b7cff67c6f1bd17481d9f0324b81f1da79b9 100755 (executable)
@@ -199,6 +199,9 @@ $(ARCHIVE)/rtmpdump-$(LIBRTMP_VER).tar.gz:
 $(ARCHIVE)/pkg-config-$(PKGCONFIG_VER).tar.gz:
        $(WGET) http://pkgconfig.freedesktop.org/releases/pkg-config-$(PKGCONFIG_VER).tar.gz
 
+$(ARCHIVE)/ntp-$(NTP_VER).tar.gz:
+       $(WGET) http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-$(NTP_VER).tar.gz
+
 $(ARCHIVE)/crosstool-1.16.0-downloads.tar.bz2:
        $(WGET) http://www.fhloston-paradise.de/crosstool-ng-1.16.0.tar.bz2
        $(WGET) http://www.fhloston-paradise.de/eglibc-2_13.tar.bz2
index e1832bb19ed43b606cfc99e283a07b3913f212be..7df6117967d399968412f0924c28809c8bd5ff88 100644 (file)
@@ -32,6 +32,9 @@ LUA_EXPAT_VER = 1.2.0
 # ntfs-3g; file system driver for the NTFS file system, enabling read/write support of NTFS file systems
 NTFS_3G_VER=2015.3.14
 
+# ntp; synchronize system clock over a network
+NTP_VER=4.2.8p3
+
 # openssl; toolkit for the SSL v2/v3 and TLS v1 protocol
 ifeq ($(PLATFORM), nevis)
 OPENSSL_VER=0.9.8