]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lib: Kconfig dependencies for pseudo-random library
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 19 Jan 2020 18:28:12 +0000 (19:28 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 25 Jan 2020 17:04:36 +0000 (12:04 -0500)
drivers/rng/sandbox_rng.c requires rand() to be defined but configuration
option CONFIG_CONFIG_LIB_RAND selected in drivers/rng/Kconfig does not
exist.

test/lib/test_aes.c requires rand() to be defined.

Fix the selection criteria for choice "Pseudo-random library support type".

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/rng/Kconfig
lib/Kconfig

index 35a3bd192aa94ea1bf210c7e406db4119aad4e28..893b89d49b1dc8f6e47dd80b1ee10e9bf39b061f 100644 (file)
@@ -9,7 +9,6 @@ config DM_RNG
 config RNG_SANDBOX
        bool "Sandbox random number generator"
        depends on SANDBOX && DM_RNG
-       select CONFIG_LIB_RAND
        help
          Enable random number generator for sandbox. This is an
          emulation of a rng device.
index d040a87d26c5730c7d60ed40e8f2eafc64efbc73..ab6aff710dd6e430ab41e17f0a889275208415bc 100644 (file)
@@ -150,7 +150,8 @@ config REGEX
 
 choice
        prompt "Pseudo-random library support type"
-       depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID
+       depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID || \
+                  RNG_SANDBOX || UT_LIB && AES
        default LIB_RAND
        help
          Select the library to provide pseudo-random number generator