mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #14123 from jue89/fix/ztimer_pseudomodules
ztimer: relocate PSEUDOMODULES definitions
This commit is contained in:
commit
a665fcc542
13
dist/tools/buildsystem_sanity_check/check.sh
vendored
13
dist/tools/buildsystem_sanity_check/check.sh
vendored
@ -276,6 +276,18 @@ check_files_in_boards_not_reference_board_var() {
|
||||
| error_with_message 'Code in boards/ should not use $(BOARDS) to reference files since this breaks external BOARDS changing BOARDSDIR"'
|
||||
}
|
||||
|
||||
check_no_pseudomules_in_makefile_dep() {
|
||||
local patterns=()
|
||||
local pathspec=()
|
||||
|
||||
patterns+=(-e 'PSEUDOMODULES[\t ]*[+:]*=')
|
||||
|
||||
pathspec+=('**/Makefile.dep')
|
||||
|
||||
git -C "${RIOTBASE}" grep "${patterns[@]}" -- "${pathspec[@]}" \
|
||||
| error_with_message "Don't define PSEUDOMODULES in Makefile.dep"
|
||||
}
|
||||
|
||||
error_on_input() {
|
||||
! grep ''
|
||||
}
|
||||
@ -292,6 +304,7 @@ all_checks() {
|
||||
checks_tests_application_not_defined_in_makefile
|
||||
checks_develhelp_not_defined_via_cflags
|
||||
check_files_in_boards_not_reference_board_var
|
||||
check_no_pseudomules_in_makefile_dep
|
||||
}
|
||||
|
||||
main() {
|
||||
|
@ -107,6 +107,7 @@ PSEUDOMODULES += stdio_cdc_acm
|
||||
PSEUDOMODULES += stdio_uart_rx
|
||||
PSEUDOMODULES += suit_transport_%
|
||||
PSEUDOMODULES += wakaama_objects_%
|
||||
PSEUDOMODULES += xtimer_on_ztimer
|
||||
PSEUDOMODULES += zptr
|
||||
PSEUDOMODULES += ztimer%
|
||||
|
||||
|
@ -111,3 +111,9 @@ endif
|
||||
ifneq (,$(filter zptr,$(USEMODULE)))
|
||||
include $(RIOTBASE)/sys/zptr/Makefile.include
|
||||
endif
|
||||
|
||||
# Convert xtimer into a pseudo module if its API is already implemented by
|
||||
# ztimer's compatibility wrapper
|
||||
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
||||
PSEUDOMODULES += xtimer
|
||||
endif
|
||||
|
@ -35,7 +35,6 @@ endif
|
||||
# make xtimer use ztimer_usec as low level timer
|
||||
ifneq (,$(filter xtimer_on_ztimer,$(USEMODULE)))
|
||||
USEMODULE += ztimer_usec
|
||||
PSEUDOMODULES += xtimer_on_ztimer
|
||||
endif
|
||||
|
||||
# "ztimer_xtimer_compat" is a wrapper of the xtimer API on ztimer_used
|
||||
@ -43,7 +42,6 @@ endif
|
||||
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
||||
USEMODULE += div
|
||||
USEMODULE += ztimer_usec
|
||||
PSEUDOMODULES += xtimer
|
||||
endif
|
||||
|
||||
ifneq (,$(filter ztimer_%,$(USEMODULE)))
|
||||
|
Loading…
Reference in New Issue
Block a user