[Buildroot] [PATCH 1/1] ntp: add ntptime option

Vicente Olivert Riera Vincent.Riera at imgtec.com
Wed Oct 7 12:19:37 UTC 2015


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 <james.knight at rockwellcollins.com>
Reviewed-by: Vicente Olivert Riera <Vincent.Riera at imgtec.com>
Tested-by: Vicente Olivert Riera <Vincent.Riera at imgtec.com>

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
> 



More information about the buildroot mailing list