summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJerome Forissier <jerome@forissier.org>2020-10-01 14:25:05 +0200
committerJérôme Forissier <jerome@forissier.org>2020-10-01 16:49:36 +0200
commitef81a8218d8fc3811d613c70ecafa01594f30d7b (patch)
tree6c164075f025915ff69c15926882b998bb0f1d68 /Makefile
parentc56cc6860900f694c0de6b948ffe463e0ca34a94 (diff)
Makefile: sort in-tree TAs in lexical order
The Makefile function $(wildcard ...) may return matching files in any order. Therefore the "make" command is not guaranteed to always produce the same sequence of commands when building the in-tree TAs. This could be inconvenient when troubleshooting build errors in different environments for instance. In order to produce predictable builds, sort the in-tree TA makefiles in lexical order. Suggested-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Jerome Forissier <jerome@forissier.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 571fba7f..444b3e12 100644
--- a/Makefile
+++ b/Makefile
@@ -94,7 +94,7 @@ define build-user-ta
ta-mk-file := $(1)
include ta/mk/build-user-ta.mk
endef
-$(foreach t, $(wildcard ta/*/user_ta.mk), $(eval $(call build-user-ta,$(t))))
+$(foreach t, $(sort $(wildcard ta/*/user_ta.mk)), $(eval $(call build-user-ta,$(t))))
endif
include mk/cleandirs.mk