diff --git a/Makefile.dep b/Makefile.dep index 43e358b99de29..d636d644682bb 100644 --- a/Makefile.dep +++ b/Makefile.dep @@ -46,13 +46,6 @@ ifneq (,$(filter libfixmath-unittests,$(USEMODULE))) USEMODULE += libfixmath endif -ifneq (,$(filter random,$(USEMODULE))) - # select default prng if no prng is selected - ifeq (,$(filter prng_%,$(USEMODULE))) - USEMODULE += prng_musl_lcg - endif -endif - ifneq (,$(filter spiffs,$(USEMODULE))) USEPKG += spiffs USEMODULE += vfs diff --git a/makefiles/defaultmodules_deps.inc.mk b/makefiles/defaultmodules_deps.inc.mk index 6d2f01fcd40a4..5a975f6e67f80 100644 --- a/makefiles/defaultmodules_deps.inc.mk +++ b/makefiles/defaultmodules_deps.inc.mk @@ -22,6 +22,13 @@ ifneq (,$(filter auto_init_libcose_crypt,$(USEMODULE))) USEMODULE += libcose_crypt_init endif +ifneq (,$(filter random,$(USEMODULE))) + # select default prng if no prng is selected + ifeq (,$(filter prng_%,$(USEMODULE))) + USEMODULE += prng_musl_lcg + endif +endif + ifneq (,$(filter xtimer,$(USEMODULE))) ifeq (,$(filter ztimer_xtimer_compat,$(USEMODULE))) USEMODULE += div