From 8f22e7ece7d63dd193dab2bc472c6365fb898d30 Mon Sep 17 00:00:00 2001 From: Michalis Pappas Date: Tue, 4 Jun 2024 12:39:24 +0200 Subject: [PATCH] arch: Enable the ukarch_random() if HAVE_RANDOM is set Update config dependencies of ukarch_random() to enable the feature conditionally to the platform's capabilties. Signed-off-by: Michalis Pappas Reviewed-by: Alex Apostolescu Approved-by: Razvan Deaconescu GitHub-Closes: #1450 --- arch/arm/arm64/Config.uk | 2 +- arch/x86/x86_64/Config.uk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/arm64/Config.uk b/arch/arm/arm64/Config.uk index bd12a4518..a7814dea8 100644 --- a/arch/arm/arm64/Config.uk +++ b/arch/arm/arm64/Config.uk @@ -203,7 +203,7 @@ endif config ARM64_FEAT_RNG bool "Armv8.5 Random Number Generator" - select HAVE_RANDOM + default y if HAVE_RANDOM help This enables the hardware RNG functionality provided by the processor. The architecture specifies that this is implemented diff --git a/arch/x86/x86_64/Config.uk b/arch/x86/x86_64/Config.uk index 89d830dba..239b2a539 100644 --- a/arch/x86/x86_64/Config.uk +++ b/arch/x86/x86_64/Config.uk @@ -92,7 +92,7 @@ menu "Processor Features" config X86_64_HAVE_RANDOM bool "Processor-generated randomness" - select HAVE_RANDOM + default y if HAVE_RANDOM help Enable processor-generated randomness. This uses the RDRAND / RDSEED instructions provided by Intel's DRNG technology. -- 2.39.5