1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 17:43:51 +01:00

Merge pull request #18025 from leandrolanzieri/pr/sys/random/change_kconfig_default_backend

sys/random/kconfig: remove HWRNG default in backend choice
This commit is contained in:
benpicco 2022-05-24 11:35:21 +02:00 committed by GitHub
commit eb09fe21fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 5 additions and 54 deletions

View File

@ -1,8 +1,4 @@
CONFIG_MODULE_RANDOM=y
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
# Since the makefile cannot we have to override until end of migration
# Remove when TEST_KCONFIG is complete
CONFIG_MODULE_PRNG_MUSL_LCG=y
CONFIG_MODULE_PERIPH_HWRNG=y
CONFIG_MODULE_PERIPH_UART=y
CONFIG_MODULE_NEWLIB=y

View File

@ -13,11 +13,15 @@ menuconfig MODULE_RANDOM
if MODULE_RANDOM
comment "This platform has a Hardware RNG, consider using it"
depends on HAS_PERIPH_HWRNG && !MODULE_PRNG_HWRNG
choice RANDOM_IMPLEMENTATION
bool "PRNG Implementation"
depends on TEST_KCONFIG
default MODULE_PRNG_HWRNG if HAS_PERIPH_HWRNG
default MODULE_PRNG_MUSL_LCG
# TODO: make HWRNG on platforms where it is available is a better default, but we want to
# match Makefile.dep. Add it back when migration is done.
menuconfig MODULE_PRNG_FORTUNA
bool "Fortuna"

View File

@ -1,6 +1 @@
CONFIG_MODULE_SOCKET_ZEP=y
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
# Since the makefile cannot we have to override until end of migration
# Remove when TEST_KCONFIG is complete
CONFIG_MODULE_PRNG_MUSL_LCG=y

View File

@ -1,7 +1,3 @@
CONFIG_MODULE_EMBUNIT=y
CONFIG_MODULE_RANDOM=y
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
# Since the makefile cannot we have to override until end of migration
# Remove when TEST_KCONFIG is complete
CONFIG_MODULE_PRNG_MUSL_LCG=y
CONFIG_PACKAGE_C25519=y

View File

@ -1,7 +1,3 @@
CONFIG_MODULE_EMBUNIT=y
CONFIG_MODULE_RANDOM=y
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
# Since the makefile cannot we have to override until end of migration
# Remove when TEST_KCONFIG is complete
CONFIG_MODULE_PRNG_MUSL_LCG=y
CONFIG_PACKAGE_CIFRA=y

View File

@ -1,7 +1,3 @@
CONFIG_MODULE_EMBUNIT=y
CONFIG_MODULE_RANDOM=y
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
# Since the makefile cannot we have to override until end of migration
# Remove when TEST_KCONFIG is complete
CONFIG_MODULE_PRNG_MUSL_LCG=y
CONFIG_PACKAGE_HACL=y

View File

@ -1,10 +1,6 @@
CONFIG_MODULE_EMBUNIT=y
CONFIG_MODULE_LIBCOSE_CRYPT_HACL=y
CONFIG_MODULE_MEMARRAY=y
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
# Since the makefile cannot we have to override until end of migration
# Remove when TEST_KCONFIG is complete
CONFIG_MODULE_PRNG_MUSL_LCG=y
CONFIG_MODULE_RANDOM=y
CONFIG_PACKAGE_HACL=y
CONFIG_PACKAGE_LIBCOSE=y

View File

@ -1,7 +1,3 @@
CONFIG_MODULE_EMBUNIT=y
CONFIG_MODULE_RANDOM=y
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
# Since the makefile cannot we have to override until end of migration
# Remove when TEST_KCONFIG is complete
CONFIG_MODULE_PRNG_MUSL_LCG=y
CONFIG_PACKAGE_LIBHYDROGEN=y

View File

@ -1,7 +1,3 @@
CONFIG_MODULE_HASHES=y
CONFIG_MODULE_RANDOM=y
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
# Since the makefile cannot we have to override until end of migration
# Remove when TEST_KCONFIG is complete
CONFIG_MODULE_PRNG_MUSL_LCG=y
CONFIG_PACKAGE_MICRO-ECC=y

View File

@ -1,7 +1,3 @@
CONFIG_MODULE_EMBUNIT=y
CONFIG_MODULE_RANDOM=y
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
# Since the makefile cannot we have to override until end of migration
# Remove when TEST_KCONFIG is complete
CONFIG_MODULE_PRNG_MUSL_LCG=y
CONFIG_PACKAGE_MONOCYPHER=y

View File

@ -1,7 +1,3 @@
CONFIG_MODULE_EMBUNIT=y
CONFIG_MODULE_RANDOM=y
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
# Since the makefile cannot we have to override until end of migration
# Remove when TEST_KCONFIG is complete
CONFIG_MODULE_PRNG_MUSL_LCG=y
CONFIG_PACKAGE_QDSA=y

View File

@ -1,7 +1,3 @@
CONFIG_MODULE_EMBUNIT=y
CONFIG_MODULE_RANDOM=y
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
# Since the makefile cannot we have to override until end of migration
# Remove when TEST_KCONFIG is complete
CONFIG_MODULE_PRNG_MUSL_LCG=y
CONFIG_PACKAGE_TWEETNACL=y

View File

@ -4,5 +4,4 @@ CONFIG_MODULE_ATOMIC_UTILS=y
CONFIG_MODULE_FMT=y
CONFIG_MODULE_SHELL=y
CONFIG_MODULE_RANDOM=y
CONFIG_MODULE_PRNG_MUSL_LCG=y
CONFIG_ZTIMER_USEC=y

View File

@ -3,5 +3,3 @@
CONFIG_MODULE_EMBUNIT=y
CONFIG_MODULE_ATOMIC_UTILS=y
CONFIG_MODULE_RANDOM=y
# Force tinymt32 to be selected
CONFIG_MODULE_PRNG_MUSL_LCG=y

View File

@ -6,8 +6,3 @@ CONFIG_MODULE_FIDO2_CTAP_TRANSPORT=y
CONFIG_MODULE_FIDO2_CTAP_TRANSPORT_HID=y
CONFIG_PACKAGE_FIDO2_TESTS=y
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
# Since the makefile cannot we have to override until end of migration
# Remove when TEST_KCONFIG is complete
CONFIG_MODULE_PRNG_MUSL_LCG=y