mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
22 lines
622 B
Makefile
22 lines
622 B
Makefile
ifneq (,$(filter mbedtls_entropy,$(USEMODULE)))
|
|
USEMODULE += mbedtls_contrib
|
|
USEMODULE += hashes
|
|
|
|
FEATURES_REQUIRED_ANY += periph_adc|periph_hwrng
|
|
|
|
# include sources if hardware is available
|
|
FEATURES_OPTIONAL += periph_hwrng
|
|
ifneq (,$(filter periph_hwrng,$(FEATURES_USED)))
|
|
DEFAULT_MODULE += mbedtls_entropy_source_hwrng
|
|
endif
|
|
|
|
FEATURES_OPTIONAL += periph_adc
|
|
ifneq (,$(filter periph_adc,$(FEATURES_USED)))
|
|
DEFAULT_MODULE += mbedtls_entropy_source_adc
|
|
endif
|
|
|
|
ifneq (,$(filter mbedtls_entropy_source_adc,$(USEMODULE) $(DEFAULT_MODULE)))
|
|
USEMODULE += entropy_source_adc_noise
|
|
endif
|
|
endif
|