Skip to content

Commit bf6b980

Browse files
committed
wifi: cfg80211: sort certificates in build
The build can become unreproducible if the list of files found by $(wildcard ...) differs. Sort the list to avoid this. Signed-off-by: Johannes Berg <[email protected]>
1 parent afd5499 commit bf6b980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/wireless/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ifneq ($(CONFIG_CFG80211_EXTRA_REGDB_KEYDIR),)
2525
cfg80211-y += extra-certs.o
2626
endif
2727

28-
$(obj)/shipped-certs.c: $(wildcard $(srctree)/$(src)/certs/*.hex)
28+
$(obj)/shipped-certs.c: $(sort $(wildcard $(srctree)/$(src)/certs/*.hex))
2929
@$(kecho) " GEN $@"
3030
$(Q)(echo '#include "reg.h"'; \
3131
echo 'const u8 shipped_regdb_certs[] = {'; \
@@ -35,7 +35,7 @@ $(obj)/shipped-certs.c: $(wildcard $(srctree)/$(src)/certs/*.hex)
3535
) > $@
3636

3737
$(obj)/extra-certs.c: $(CONFIG_CFG80211_EXTRA_REGDB_KEYDIR) \
38-
$(wildcard $(CONFIG_CFG80211_EXTRA_REGDB_KEYDIR)/*.x509)
38+
$(sort $(wildcard $(CONFIG_CFG80211_EXTRA_REGDB_KEYDIR)/*.x509))
3939
@$(kecho) " GEN $@"
4040
$(Q)(set -e; \
4141
allf=""; \

0 commit comments

Comments
 (0)