1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

Merge pull request #13222 from fjmolinas/pr_deps_sort

makefiles/dependencies_debug.inc.mk: add DEPENDENCY_DEBUG_SORT_VARS
This commit is contained in:
Alexandre Abadie 2020-01-28 14:21:41 +01:00 committed by GitHub
commit ac446f71da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,13 @@ file_save_dependencies_variables = $(call file_save_variable,$(DEPENDENCY_DEBUG_
# Remove file before to be sure appending is started with an empty file
file_save_variable = $(shell mkdir -p $(dir $1); rm -f $1)$(foreach v,$2,$(file >>$1,$(call _print_var,$v)))
# print variables sorted, this can eliminate false positives but will not allow
# to tell in what order the variables where updated.
DEPENDENCY_DEBUG_SORT_VARS ?= 0
# Remove spaces in case of empty value
# Remove spaces around value as it happens
_print_var = $(strip $1 = $(strip $($1)))
ifneq (1,$(DEPENDENCY_DEBUG_SORT_VARS))
_print_var = $(strip $1 = $(strip $($1)))
else
_print_var = $(sort $(strip $1 = $(strip $($1))))
endif