2017-10-14 07:30:55 +08:00
|
|
|
# Kconfig - entropy generator driver configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig ENTROPY_GENERATOR
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "Entropy Drivers"
|
2017-10-14 07:30:55 +08:00
|
|
|
help
|
|
|
|
Include entropy drivers in system config.
|
|
|
|
|
|
|
|
if ENTROPY_GENERATOR
|
|
|
|
|
|
|
|
source "drivers/entropy/Kconfig.mcux"
|
|
|
|
source "drivers/entropy/Kconfig.stm32"
|
|
|
|
source "drivers/entropy/Kconfig.esp32"
|
2017-09-19 16:01:27 +08:00
|
|
|
source "drivers/entropy/Kconfig.nrf5"
|
2018-02-11 17:34:33 +08:00
|
|
|
source "drivers/entropy/Kconfig.native_posix"
|
2017-10-14 07:30:55 +08:00
|
|
|
|
|
|
|
config ENTROPY_HAS_DRIVER
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
This is an option to be enabled by individual entropy driver
|
|
|
|
to signal that there is a true entropy driver.
|
|
|
|
|
|
|
|
config ENTROPY_NAME
|
|
|
|
string "Entropy Device Name"
|
|
|
|
default "ENTROPY_0"
|
|
|
|
help
|
|
|
|
Specify the device name to be used for the ENTROPY driver.
|
|
|
|
|
|
|
|
config SYS_LOG_ENTROPY_LEVEL
|
|
|
|
int "Random Log level"
|
|
|
|
depends on SYS_LOG
|
|
|
|
default 0
|
|
|
|
range 0 4
|
|
|
|
help
|
|
|
|
Sets log level for entropy driver.
|
|
|
|
Levels are:
|
|
|
|
- 0 OFF: do not write
|
|
|
|
- 1 ERROR: only write SYS_LOG_ERR
|
|
|
|
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
|
|
|
|
- 3 INFO: write SYS_LOG_INF in addition to previous levels
|
|
|
|
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
|
|
|
|
|
|
|
|
endif
|