]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
rng: Tighten some rng driver dependencies
authorTom Rini <trini@konsulko.com>
Fri, 26 Sep 2025 15:31:42 +0000 (09:31 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 8 Oct 2025 22:13:06 +0000 (16:13 -0600)
In this case, the NPCM RNG driver also provides some of the functions
that are implemented in the generic LIB_RAND file, so only allow this to
be built when that is disabled. The exynos RNG driver depends on ARM
SMCCC calls and so cannot be built outside of that. Express these
requirements in Kconfig as well.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/rng/Kconfig

index b35d8c66b9c6a955c10aad2fbe56b1622af8715e..19b2b7076774aae392d5245dcdd63a505298ac0f 100644 (file)
@@ -40,7 +40,7 @@ config RNG_MSM
 
 config RNG_NPCM
        bool "Nuvoton NPCM SoCs Random Number Generator support"
-       depends on DM_RNG
+       depends on DM_RNG && !LIB_RAND
        help
          Enable random number generator on NPCM SoCs.
          This unit can provide 750 to 1000 random bits per second
@@ -122,7 +122,7 @@ config RNG_TURRIS_RWTM
 
 config RNG_EXYNOS
        bool "Samsung Exynos True Random Number Generator support"
-       depends on DM_RNG
+       depends on DM_RNG && ARM
        help
          Enable support for True Random Number Generator (TRNG) available on
          Exynos SoCs.