Skip to content

Commit

Permalink
fixup! core: make idle thread optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Jun 8, 2020
1 parent 97b36f1 commit 8f7a320
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,9 @@ FEATURES_OPTIONAL += periph_pm
# always select provided architecture features
FEATURES_REQUIRED += $(filter arch_%,$(FEATURES_PROVIDED))

# don't use idle thread if architecture has needed support
FEATURES_OPTIONAL += no_idle_thread

ifneq (,$(filter ecc_%,$(USEMODULE)))
USEMODULE += ecc
endif
Expand Down
4 changes: 1 addition & 3 deletions makefiles/defaultmodules.inc.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
DEFAULT_MODULE += board cpu
DEFAULT_MODULE += core core_idle_thread core_init core_msg core_panic
DEFAULT_MODULE += sys
DEFAULT_MODULE += board cpu core core_init core_msg core_panic sys

DEFAULT_MODULE += auto_init

Expand Down
5 changes: 5 additions & 0 deletions makefiles/features_modules.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ endif

# select cortexm_svc pseudomodule if the corresponding feature is used
USEMODULE += $(filter cortexm_svc, $(FEATURES_USED))

# select core_idle_thread if the feature no_idle_thread is *not* used
ifeq (, $(filter no_idle_thread, $(FEATURES_USED)))
USEMODULE += core_idle_thread
endif

0 comments on commit 8f7a320

Please sign in to comment.