@@ -246,9 +246,9 @@ endif
246246#
247247# BIN has the form bin[-[arch-]platform]
248248
249- ARCHS := $(patsubst arch/% ,% ,$(wildcard arch/* ) )
249+ ARCHS := $(patsubst arch/% ,% ,$(sort $( wildcard arch/* ) ) )
250250PLATFORMS := $(patsubst config/defaults/% .h,% ,\
251- $(wildcard config/defaults/* .h) )
251+ $(sort $( wildcard config/defaults/* .h) ) )
252252archs :
253253 @$(ECHO ) $(ARCHS )
254254
@@ -307,8 +307,8 @@ srcdirs :
307307
308308# SRCS lists all .c or .S files found in any SRCDIR
309309#
310- SRCS += $(wildcard $(patsubst % ,% /* .c,$(SRCDIRS ) ) )
311- SRCS += $(wildcard $(patsubst % ,% /* .S,$(SRCDIRS ) ) )
310+ SRCS += $(sort $( wildcard $(patsubst % ,% /* .c,$(SRCDIRS ) ) ) )
311+ SRCS += $(sort $( wildcard $(patsubst % ,% /* .S,$(SRCDIRS ) ) ) )
312312srcs :
313313 @$(ECHO ) $(SRCS )
314314
@@ -677,7 +677,7 @@ endef
677677$(BIN ) /% .objs : $(BIN ) /% .tmp
678678 $(Q )$(ECHO ) $(call objs_list,$< )
679679$(BIN ) /% .sizes : $(BIN ) /% .tmp
680- $(Q )$(SIZE ) -t $(foreach OBJ,$(call objs_list,$< ) ,$(wildcard $(BIN ) /$(subst _,?,$(OBJ ) ) .o) ) | \
680+ $(Q )$(SIZE ) -t $(foreach OBJ,$(call objs_list,$< ) ,$(sort $( wildcard $(BIN ) /$(subst _,?,$(OBJ ) ) .o) ) ) | \
681681 sort -g
682682
683683# Get dependency list for the specified target
@@ -807,7 +807,7 @@ $(BIN)/%.o : payload/%.img
807807 $(Q )$(LD ) -b binary -r -o $@ $< --undefined obj_payload \
808808 --defsym obj_$* =0
809809
810- BOBJS += $(patsubst payload/% .img,$(BIN ) /% .o,$(wildcard payload/* .img) )
810+ BOBJS += $(patsubst payload/% .img,$(BIN ) /% .o,$(sort $( wildcard payload/* .img) ) )
811811
812812# The "allXXXs" targets for each suffix
813813#
0 commit comments