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