Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/rng-tools: add nistbeacon option
Date: Tue, 7 Apr 2020 09:18:53 +0200	[thread overview]
Message-ID: <20200407071853.GD22325@scaer> (raw)
In-Reply-To: <20200404213653.1538752-1-fontaine.fabrice@gmail.com>

Fabrice, All,

On 2020-04-04 23:36 +0200, Fabrice Fontaine spake thusly:
> Add an option to enable nistbeacon which is available since version 6.1
> and
> https://github.com/nhorman/rng-tools/commit/aefe862e187a1ef608f9826b2b4a5bbabd5e9945
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  package/rng-tools/Config.in    | 17 +++++++++++++++++
>  package/rng-tools/rng-tools.mk | 11 ++++++++---
>  2 files changed, 25 insertions(+), 3 deletions(-)
> 
> diff --git a/package/rng-tools/Config.in b/package/rng-tools/Config.in
> index a86fbb0f74..25b41f40d6 100644
> --- a/package/rng-tools/Config.in
> +++ b/package/rng-tools/Config.in
> @@ -11,5 +11,22 @@ config BR2_PACKAGE_RNG_TOOLS
>  
>  	  http://sourceforge.net/projects/gkernel/
>  
> +if BR2_PACKAGE_RNG_TOOLS
> +
> +config BR2_PACKAGE_RNG_TOOLS_NISTBEACON
> +	bool "NIST Entropy Beacon support"
> +	select BR2_PACKAGE_JANSSON
> +	select BR2_PACKAGE_LIBCURL
> +	select BR2_PACKAGE_LIBXML2
> +	help
> +	  Enable NIST Entropy Beacon support.
> +
> +	  Entropy gathered from the NIST network entropy beacon. Note
> +	  that this entropy source is disabled by default as it should
> +	  never be used for cryptographic purposes, or any use case in
> +	  which random data should be known only by a single entity.
> +
> +endif
> +
>  comment "rng-tools needs a toolchain w/ NPTL"
>  	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
> diff --git a/package/rng-tools/rng-tools.mk b/package/rng-tools/rng-tools.mk
> index 8ebfc0975a..3baddb98ee 100644
> --- a/package/rng-tools/rng-tools.mk
> +++ b/package/rng-tools/rng-tools.mk
> @@ -12,9 +12,7 @@ RNG_TOOLS_DEPENDENCIES = libsysfs jitterentropy-library host-pkgconf openssl
>  # From git
>  RNG_TOOLS_AUTORECONF = YES
>  
> -RNG_TOOLS_CONF_OPTS = \
> -	--without-nistbeacon \
> -	--without-pkcs11
> +RNG_TOOLS_CONF_OPTS = --without-pkcs11
>  
>  # Work around for uClibc or musl toolchains which lack argp_*()
>  # functions.
> @@ -30,6 +28,13 @@ else
>  RNG_TOOLS_CONF_OPTS += --without-rtlsdr
>  endif
>  
> +ifeq ($(BR2_PACKAGE_RNG_TOOLS_NISTBEACON),y)
> +RNG_TOOLS_DEPENDENCIES += jansson libcurl libxml2
> +RNG_TOOLS_CONF_OPTS += --with-nistbeacon
> +else
> +RNG_TOOLS_CONF_OPTS += --without-nistbeacon
> +endif
> +
>  define RNG_TOOLS_INSTALL_INIT_SYSV
>  	$(INSTALL) -D -m 755 package/rng-tools/S21rngd \
>  		$(TARGET_DIR)/etc/init.d/S21rngd
> -- 
> 2.25.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2020-04-07  7:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-04 21:36 [Buildroot] [PATCH 1/1] package/rng-tools: add nistbeacon option Fabrice Fontaine
2020-04-07  7:18 ` Yann E. MORIN [this message]
2020-04-07 19:20 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200407071853.GD22325@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox