summaryrefslogtreecommitdiff
path: root/recipes-support/ntp/files/logtime.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-support/ntp/files/logtime.patch')
-rw-r--r--recipes-support/ntp/files/logtime.patch58
1 files changed, 26 insertions, 32 deletions
diff --git a/recipes-support/ntp/files/logtime.patch b/recipes-support/ntp/files/logtime.patch
index 6b104ce..bb253f4 100644
--- a/recipes-support/ntp/files/logtime.patch
+++ b/recipes-support/ntp/files/logtime.patch
@@ -1,13 +1,9 @@
- Create a test to log time since boot MONOTONIC_RAW or uptime
- and the REALTIME clock (UTC)
- Not real sure how the build should work. To build logtime
- do bitbake -c devshell ntp
- Then cd clockstuff, and to:
- make logtime
-==============================================================
-diff -Naur old/clockstuff/logtime.c new/clockstuff/logtime.c
---- old/clockstuff/logtime.c 1969-12-31 18:00:00.000000000 -0600
-+++ new/clockstuff/logtime.c 2017-01-27 16:55:46.420307603 -0600
+# The logtime test is used to compare the kernel realtime
+# clock and the kernel monotonic clock, so that leap
+# second may be observed.
+diff -Naru old/tests/ntpd/logtime.c new/tests/ntpd/logtime.c
+--- old/tests/ntpd/logtime.c 1969-12-31 18:00:00.000000000 -0600
++++ new/tests/ntpd/logtime.c 2017-05-30 13:22:11.827179154 -0500
@@ -0,0 +1,44 @@
+#include <time.h>
+#include <stdio.h>
@@ -53,27 +49,25 @@ diff -Naur old/clockstuff/logtime.c new/clockstuff/logtime.c
+ }
+
+}
-diff -Naur old/clockstuff/Makefile.am new/clockstuff/Makefile.am
---- old/clockstuff/Makefile.am 2017-01-27 16:50:58.929973639 -0600
-+++ new/clockstuff/Makefile.am 2017-01-27 16:53:22.625139584 -0600
-@@ -1,7 +1,7 @@
- #AUTOMAKE_OPTIONS = ../ansi2knr no-dependencies
- AUTOMAKE_OPTIONS =
--noinst_PROGRAMS = @PROPDELAY@ @CHUTEST@ @CLKTEST@
--EXTRA_PROGRAMS = propdelay chutest clktest
-+noinst_PROGRAMS = @PROPDELAY@ @CHUTEST@ @CLKTEST@ @LOGTIME@
-+EXTRA_PROGRAMS = propdelay chutest clktest logtime
+diff -Naru old/tests/ntpd/Makefile.am new/tests/ntpd/Makefile.am
+--- old/tests/ntpd/Makefile.am 2017-05-30 13:31:45.124160267 -0500
++++ new/tests/ntpd/Makefile.am 2017-05-30 16:53:59.784755988 -0500
+@@ -29,6 +29,7 @@
+ test-ntp_restrict \
+ test-ntp_scanner \
+ test-ntp_signd \
++ logtime \
+ $(NULL)
- INCLUDES = -I$(top_srcdir)/include
- # We need -lm (and perhaps $(COMPAT) for propdelay, -lntp for {chu,clk}test
-diff -Naur old/configure.ac new/configure.ac
---- old/configure.ac 2017-01-27 17:59:46.940532782 -0600
-+++ new/configure.ac 2017-01-27 17:55:26.626841232 -0600
-@@ -4115,6 +4115,7 @@
- AC_SUBST([PROPDELAY]) dnl Set to "propdelay"
- AC_SUBST([CHUTEST]) dnl Set to "chutest"
- AC_SUBST([CLKTEST]) dnl Set to "clktest"
-+AC_SUBST([LOGTIME]) dnl Set to "logtime"
- AC_SUBST([MAKE_ADJTIMED])
- AC_MSG_CHECKING([if we want HP-UX adjtimed support])
+@@ -191,8 +192,8 @@
+ ## check-libntp.mf - automake fragment
+ ## slightly adapted for deeper directory
+
+-BUILT_SOURCES += check-libntpd check-libntp check-libunity
+-CLEANFILES += check-libntpd check-libntp check-libunity
++BUILT_SOURCES += check-libntpd check-libntp check-libunity logtime
++CLEANFILES += check-libntpd check-libntp check-libunity logtime
+
+ check-libntpd: ../../ntpd/libntpd.a
+ @echo stamp > $@