mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #12628 from aabadie/pr/make/develhelp_cleanup
make/develhelp: make usage consistent + add ci check
This commit is contained in:
commit
372ae95d28
14
dist/tools/buildsystem_sanity_check/check.sh
vendored
14
dist/tools/buildsystem_sanity_check/check.sh
vendored
@ -201,6 +201,19 @@ checks_tests_application_not_defined_in_makefile() {
|
||||
| error_with_message "Don't define APPLICATION in test Makefile"
|
||||
}
|
||||
|
||||
# Develhelp should not be set via CFLAGS
|
||||
checks_develhelp_not_defined_via_cflags() {
|
||||
local patterns=()
|
||||
local pathspec=()
|
||||
|
||||
patterns+=(-e '^[[:space:]]*CFLAGS[[:space:]:+]+=[[:space:]:+]-DDEVELHELP')
|
||||
|
||||
pathspec+=('**/Makefile')
|
||||
|
||||
git -C "${RIOTBASE}" grep "${patterns[@]}" -- "${pathspec[@]}" \
|
||||
| error_with_message "Use DEVELHELP ?= 1 instead of using CFLAGS directly"
|
||||
}
|
||||
|
||||
error_on_input() {
|
||||
! grep ''
|
||||
}
|
||||
@ -214,6 +227,7 @@ all_checks() {
|
||||
check_not_setting_board_equal
|
||||
check_board_insufficient_memory_not_in_makefile
|
||||
checks_tests_application_not_defined_in_makefile
|
||||
checks_develhelp_not_defined_via_cflags
|
||||
}
|
||||
|
||||
main() {
|
||||
|
@ -22,7 +22,7 @@ USEMODULE += fmt
|
||||
# Comment this out to disable code in RIOT that does safety checking
|
||||
# which is not needed in a production environment but helps in the
|
||||
# development process:
|
||||
CFLAGS += -DDEVELHELP
|
||||
DEVELHELP ?= 1
|
||||
|
||||
# For debugging and demonstration purposes, we limit the lifetime to 60s
|
||||
CFLAGS += -DCORD_LT=60
|
||||
|
@ -21,7 +21,7 @@ USEMODULE += xtimer
|
||||
# Comment this out to disable code in RIOT that does safety checking
|
||||
# which is not needed in a production environment but helps in the
|
||||
# development process:
|
||||
CFLAGS += -DDEVELHELP
|
||||
DEVELHELP ?= 1
|
||||
|
||||
# For debugging and demonstration purposes, we limit the lifetime to the minimal
|
||||
# allowed value of 60s (see draft-ietf-core-resource-directory-11, Table 2)
|
||||
|
@ -48,7 +48,7 @@ CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(3*THREAD_STACKSIZE_DEFAULT\)
|
||||
# Comment this out to disable code in RIOT that does safety checking
|
||||
# which is not needed in a production environment but helps in the
|
||||
# development process:
|
||||
CFLAGS += -DDEVELHELP
|
||||
DEVELHELP ?= 1
|
||||
|
||||
# Change this to 0 show compiler invocation lines by default:
|
||||
QUIET ?= 1
|
||||
|
@ -40,7 +40,7 @@ CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(3*THREAD_STACKSIZE_DEFAULT\)
|
||||
# Comment this out to disable code in RIOT that does safety checking
|
||||
# which is not needed in a production environment but helps in the
|
||||
# development process:
|
||||
CFLAGS += -DDEVELHELP
|
||||
DEVELHELP ?= 1
|
||||
|
||||
# Change this to 0 show compiler invocation lines by default:
|
||||
QUIET ?= 1
|
||||
|
@ -19,7 +19,7 @@ USEPKG += ndn-riot
|
||||
# Comment this out to disable code in RIOT that does safety checking
|
||||
# which is not needed in a production environment but helps in the
|
||||
# development process:
|
||||
CFLAGS += -DDEVELHELP
|
||||
DEVELHELP ?= 1
|
||||
|
||||
# Change this to 0 show compiler invocation lines by default:
|
||||
QUIET ?= 1
|
||||
|
@ -2,6 +2,5 @@ include ../Makefile.tests_common
|
||||
|
||||
USEMODULE += lc709203f
|
||||
USEMODULE += xtimer
|
||||
CFLAGS += -DDEVELHELP
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
@ -7,11 +7,6 @@ include ../Makefile.tests_common
|
||||
# be then accordingly extended.
|
||||
BOARD_WHITELIST := samr21-xpro iotlab-m3
|
||||
|
||||
# Comment this out to disable code in RIOT that does safety checking
|
||||
# which is not needed in a production environment but helps in the
|
||||
# development process:
|
||||
CFLAGS += -DDEVELHELP
|
||||
|
||||
# Modules to include:
|
||||
USEMODULE += shell
|
||||
USEMODULE += shell_commands
|
||||
|
@ -11,8 +11,6 @@ DISABLE_MODULE += auto_init
|
||||
USEMODULE += od
|
||||
USEMODULE += socket_zep
|
||||
|
||||
CFLAGS += -DDEVELHELP
|
||||
|
||||
TERMFLAGS ?= -z [::1]:17754
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
Loading…
Reference in New Issue
Block a user