Skip to content

Commit

Permalink
makefiles: select default prng _after_ recursive dependency resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
mguetschow committed Dec 2, 2024
1 parent ad5440a commit 71fbb66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions makefiles/defaultmodules_deps.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71fbb66

Please sign in to comment.