diff options
author | Jerome Forissier <jerome@forissier.org> | 2020-10-01 14:25:05 +0200 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2020-10-01 16:49:36 +0200 |
commit | ef81a8218d8fc3811d613c70ecafa01594f30d7b (patch) | |
tree | 6c164075f025915ff69c15926882b998bb0f1d68 /Makefile | |
parent | c56cc6860900f694c0de6b948ffe463e0ca34a94 (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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |