2015-05-21 00:40:39 +08:00
|
|
|
# Kconfig - random generator driver configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
|
|
|
#
|
2015-10-07 00:00:37 +08:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
2015-10-07 00:00:37 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
2015-10-07 00:00:37 +08:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
|
|
|
|
2015-03-19 06:24:43 +08:00
|
|
|
menu "Random Generation Configuration"
|
2016-05-25 07:17:13 +08:00
|
|
|
config RANDOM_GENERATOR
|
|
|
|
bool
|
2015-05-28 05:14:51 +08:00
|
|
|
prompt "Custom random generator"
|
2016-05-25 07:17:13 +08:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option signifies that the target uses a real random number
|
2015-05-28 05:14:51 +08:00
|
|
|
generator.
|
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config TEST_RANDOM_GENERATOR
|
2015-03-19 06:24:43 +08:00
|
|
|
bool
|
|
|
|
prompt "Non-random number generator"
|
2015-05-28 05:14:51 +08:00
|
|
|
depends on !RANDOM_GENERATOR
|
2015-03-19 06:24:43 +08:00
|
|
|
default n
|
|
|
|
help
|
2015-05-28 05:14:51 +08:00
|
|
|
This option signifies that the kernel's random number APIs are
|
|
|
|
permitted to return values that are not truly random.
|
|
|
|
This capability is provided for testing purposes, when a truly random
|
|
|
|
number generator is not available. The non-random number generator
|
|
|
|
should not be used in a production environment.
|
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config X86_TSC_RANDOM_GENERATOR
|
2015-05-28 05:14:51 +08:00
|
|
|
bool
|
|
|
|
prompt "x86 timestamp counter based number generator"
|
2015-10-09 18:20:52 +08:00
|
|
|
depends on TEST_RANDOM_GENERATOR && X86
|
2015-05-28 05:14:51 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
This options enables number generator based on timestamp counter
|
2016-08-18 07:33:08 +08:00
|
|
|
of x86 boards, obtained with rdtsc instruction.
|
2015-03-19 06:24:43 +08:00
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config TIMER_RANDOM_GENERATOR
|
2015-05-28 05:14:51 +08:00
|
|
|
bool
|
|
|
|
prompt "System timer clock based number generator"
|
|
|
|
depends on TEST_RANDOM_GENERATOR && !X86_TSC_RANDOM_GENERATOR
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This options enables number generator based on system timer
|
|
|
|
clock. This number generator is not random and used for
|
|
|
|
testing only.
|
2016-06-23 00:53:28 +08:00
|
|
|
|
2016-10-25 22:29:42 +08:00
|
|
|
config RANDOM_KSDK
|
2016-06-23 00:53:28 +08:00
|
|
|
bool
|
2016-10-25 22:29:42 +08:00
|
|
|
prompt "KSDK Random driver"
|
2016-06-23 00:53:28 +08:00
|
|
|
depends on RANDOM_GENERATOR && HAS_RNGA
|
|
|
|
default n
|
|
|
|
help
|
2016-10-25 22:31:06 +08:00
|
|
|
This option enables the random number generator accelerator (RNGA)
|
|
|
|
driver based on the KSDK RNGA driver.
|
2016-06-23 00:53:28 +08:00
|
|
|
|
2015-03-19 06:24:43 +08:00
|
|
|
endmenu
|