From patchwork Tue Dec 8 14:53:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Voss, Samuel M Collins via buildroot" X-Patchwork-Id: 1412722 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=busybox.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=googlemail.com header.i=@googlemail.com header.a=rsa-sha256 header.s=20161025 header.b=cyKI6R0k; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Cr3986rKzz9sWC for ; Wed, 9 Dec 2020 01:54:04 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5ECE1274E3; Tue, 8 Dec 2020 14:54:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rfYfWuZMhWmo; Tue, 8 Dec 2020 14:53:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id A30242743A; Tue, 8 Dec 2020 14:53:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 8663A1BF4E3 for ; Tue, 8 Dec 2020 14:53:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7F3488735E for ; Tue, 8 Dec 2020 14:53:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8YXT8ofRVYER for ; Tue, 8 Dec 2020 14:53:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ej1-f67.google.com (mail-ej1-f67.google.com [209.85.218.67]) by hemlock.osuosl.org (Postfix) with ESMTPS id 6419E8734F for ; Tue, 8 Dec 2020 14:53:50 +0000 (UTC) Received: by mail-ej1-f67.google.com with SMTP id b9so14657740ejy.0 for ; Tue, 08 Dec 2020 06:53:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ibDTumMNUVYYGoAjPxRHNwgU9osD9JyfZ1bantb10sc=; b=cyKI6R0klK6zuIUBt7yUYWlQ5l3O6QVSMSOJCqIuuLgdkZ8xVaJp++Xc+l2ph37z3N NQGryt5jPRpj1hercw9unXzcgOKidiFddv1IgiqR1fuaegK2miCtEi2HyPC4/poR4/HM BWiWBQ0fetIDY/ha0toaAswR/mPcg2MieSQf2ZlnIMjS9SrF24brfwUXpIXAjP0ZXRpb JgRyAnGNuPcMzWZQwFhemrijrKDQ4qR+PI5zXiIs0en3gNZtqXbEYt2ttP44PdD4NaKk tURN+it001jfIyA4F7yu4LlQ+ADNdCBfooCUNyzmOBp/spIom6VfT3CzfEhxpwBx4qNu t9Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ibDTumMNUVYYGoAjPxRHNwgU9osD9JyfZ1bantb10sc=; b=mURnNZq6QmHgPK97voRfVv75Cttczpzi4j+V1c9LFtfgob75qS28jkw3+sSGUH284k nODxRkX4HD99q+YCs2Ifjri+3GDmbXC1hRnOEsxo7VKvbARqKmULoUaXXuWZqVztNRqL ZULCldkUwqQPxmvK4EPPpapb6ysnx42jd8XnHQf+1vSFhneNs/TaJO+wJ6+6plH2oxtD 7dQXOt3pVc6BtsrpJyrtAnXC5a4ImtdjRrZQIWcXHKOuRhqUlD62xiHOPq1zWp+T+RxO lnvAfEFuIxki811rr8tqK+1m+9h4AOQnfcE3Y9V1goJLRqo9cnzbi/dsApYBUuy8Mhps rXMg== X-Gm-Message-State: AOAM532Ct+HeGsuCUKFlUAf/D8NJy5da6WmVFvbOtvnG1++lU+G5I916 cjrJEmsN8O4sl8lPFqhDlhyrx24RCgHKRw== X-Google-Smtp-Source: ABdhPJyGinA/wcF+Hto2EEOgo1q6017BHLzlXhXpVXOpynQ1gNrZpcFwEdBvv0zoVDHnf3hobWIbsw== X-Received: by 2002:a17:906:1a01:: with SMTP id i1mr23682657ejf.315.1607439228638; Tue, 08 Dec 2020 06:53:48 -0800 (PST) Received: from development1.visionsystems.de (mail.visionsystems.de. [213.209.99.202]) by smtp.gmail.com with ESMTPSA id 3sm15843521ejn.7.2020.12.08.06.53.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Dec 2020 06:53:47 -0800 (PST) To: buildroot@buildroot.org Date: Tue, 8 Dec 2020 15:53:38 +0100 Message-Id: <20201208145338.29199-1-yegorslists@googlemail.com> X-Mailer: git-send-email 2.17.0 Subject: [Buildroot] [PATCH] package/rng-tools: add jitterentropy library option X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: yegorslists--- via buildroot Reply-To: yegorslists@googlemail.com Cc: Matt Weber MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Yegor Yefremov Add a menu entry to enable/disable jitterentropy library. Make it enabled by default to preserve the old behavior. Signed-off-by: Yegor Yefremov --- package/rng-tools/Config.in | 12 +++++++++++- package/rng-tools/rng-tools.mk | 9 ++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/package/rng-tools/Config.in b/package/rng-tools/Config.in index 25b41f40d6..67e3d4185b 100644 --- a/package/rng-tools/Config.in +++ b/package/rng-tools/Config.in @@ -3,7 +3,6 @@ config BR2_PACKAGE_RNG_TOOLS # pthread_setaffinity_np depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL - select BR2_PACKAGE_JITTERENTROPY_LIBRARY select BR2_PACKAGE_LIBSYSFS select BR2_PACKAGE_OPENSSL help @@ -13,6 +12,17 @@ config BR2_PACKAGE_RNG_TOOLS if BR2_PACKAGE_RNG_TOOLS +config BR2_PACKAGE_RNG_TOOLS_JITTERENTROPY_LIBRARY + bool "Jitterentropy Library support" + default y + select BR2_PACKAGE_JITTERENTROPY_LIBRARY + help + Enable Jitterentropy Library support. + + The Jitter RNG provides a noise source using the CPU + execution timing jitter. It does not depend on any + system resource other than a high-resolution time stamp. + config BR2_PACKAGE_RNG_TOOLS_NISTBEACON bool "NIST Entropy Beacon support" select BR2_PACKAGE_JANSSON diff --git a/package/rng-tools/rng-tools.mk b/package/rng-tools/rng-tools.mk index 3baddb98ee..8a971de5e9 100644 --- a/package/rng-tools/rng-tools.mk +++ b/package/rng-tools/rng-tools.mk @@ -8,7 +8,7 @@ RNG_TOOLS_VERSION = 6.10 RNG_TOOLS_SITE = $(call github,nhorman,$(RNG_TOOLS_NAME),v$(RNG_TOOLS_VERSION)) RNG_TOOLS_LICENSE = GPL-2.0 RNG_TOOLS_LICENSE_FILES = COPYING -RNG_TOOLS_DEPENDENCIES = libsysfs jitterentropy-library host-pkgconf openssl +RNG_TOOLS_DEPENDENCIES = libsysfs host-pkgconf openssl # From git RNG_TOOLS_AUTORECONF = YES @@ -28,6 +28,13 @@ else RNG_TOOLS_CONF_OPTS += --without-rtlsdr endif +ifeq ($(BR2_PACKAGE_RNG_TOOLS_JITTERENTROPY_LIBRARY),y) +RNG_TOOLS_DEPENDENCIES += jitterentropy-library +RNG_TOOLS_CONF_OPTS += --enable-jitterentropy +else +RNG_TOOLS_CONF_OPTS += --disable-jitterentropy +endif + ifeq ($(BR2_PACKAGE_RNG_TOOLS_NISTBEACON),y) RNG_TOOLS_DEPENDENCIES += jansson libcurl libxml2 RNG_TOOLS_CONF_OPTS += --with-nistbeacon