aboutsummaryrefslogtreecommitdiff
path: root/lib/Kconfig
diff options
context:
space:
mode:
authorAdam Ford2018-02-06 10:18:18 -0600
committerTom Rini2018-02-08 12:48:22 -0500
commita5a37567c4f7bd6faf85ef4b720f6efce3e8bbbf (patch)
tree0f02a585c7f0438cf9088aff857baa8b7d887679 /lib/Kconfig
parent99bec1aead5927c54f4364bfe10823a86fe0dad2 (diff)
Convert CONFIG LIB_HW_RAND to Kconfig
config_fallbacks.h had some logic to automatically select LIB_RAND if RANDOM_UUID or CMD_UUID were set if LIB_HW_RAND wasn't already selected. By migrating LIB_HW_RAND to Kconfig, we can remove this check from config_fallbacks.h and put it into Kconfig Signed-off-by: Adam Ford <aford173@gmail.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> [trini: Turn into a choice, add NET_RANDOM_ETHADDR] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r--lib/Kconfig18
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/Kconfig b/lib/Kconfig
index 710deb7a630..87db2e396ee 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -65,10 +65,22 @@ config REGEX
regex support to some commands, for example "env grep" and
"setexpr".
-config LIB_RAND
- bool "Pseudo-random library support "
+choice
+ prompt "Pseudo-random library support type"
+ depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID
+ default LIB_RAND
help
- This library provides pseudo-random number generator functions.
+ Select the library to provide pseudo-random number generator
+ functions. LIB_HW_RAND supports certain hardware engines that
+ provide this functionality. If in doubt, select LIB_RAND.
+
+config LIB_RAND
+ bool "Pseudo-random library support"
+
+config LIB_HW_RAND
+ bool "HW Engine for random libray support"
+
+endchoice
config SPL_TINY_MEMSET
bool "Use a very small memset() in SPL"