From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vicente Olivert Riera Date: Wed, 7 Oct 2015 13:19:37 +0100 Subject: [Buildroot] [PATCH 1/1] ntp: add ntptime option In-Reply-To: <1444076966-9308-1-git-send-email-james.knight@rockwellcollins.com> References: <1444076966-9308-1-git-send-email-james.knight@rockwellcollins.com> Message-ID: <56150DD9.3030600@imgtec.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear James Knight, On 10/05/2015 09:29 PM, James Knight wrote: > Allow the `ntptime` utility to be included on a target. > > Signed-off-by: James Knight Reviewed-by: Vicente Olivert Riera Tested-by: Vicente Olivert Riera Build test for MIPS architecture: $ file output/target/usr/bin/ntptime output/target/usr/bin/ntptime: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1, dynamically linked (uses shared libs), for GNU/Linux 2.6.32, with unknown capability 0x41000000 = 0xf676e75, with unknown capability 0x10000 = 0x70403, not stripped Regards, Vincent. > --- > package/ntp/Config.in | 6 ++++++ > package/ntp/ntp.mk | 1 + > 2 files changed, 7 insertions(+) > > diff --git a/package/ntp/Config.in b/package/ntp/Config.in > index d4caddf..1763225 100644 > --- a/package/ntp/Config.in > +++ b/package/ntp/Config.in > @@ -67,6 +67,12 @@ config BR2_PACKAGE_NTP_NTPSNMPD > help > Install ntpsnmpd NTP SNMP MIB agent. > > +config BR2_PACKAGE_NTP_NTPTIME > + bool "ntptime" > + help > + The ntptime utility program is used to read and set kernel time > + variables. > + > config BR2_PACKAGE_NTP_NTPTRACE > bool "ntptrace" > depends on BR2_PACKAGE_PERL > diff --git a/package/ntp/ntp.mk b/package/ntp/ntp.mk > index 5997247..a3818ea 100644 > --- a/package/ntp/ntp.mk > +++ b/package/ntp/ntp.mk > @@ -46,6 +46,7 @@ NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPDATE) += ntpdate/ntpdate > NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPDC) += ntpdc/ntpdc > NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPQ) += ntpq/ntpq > NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPSNMPD) += ntpsnmpd/ntpsnmpd > +NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPTIME) += util/ntptime > NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPTRACE) += scripts/ntptrace/ntptrace > NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_SNTP) += sntp/sntp > NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_TICKADJ) += util/tickadj >