1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/mbedtls/Makefile.dep
2022-01-17 23:22:14 +01:00

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