wifi: cfg80211: sort certificates in build
authorJohannes Berg <johannes.berg@intel.com>
Thu, 14 Dec 2023 11:03:49 +0000 (12:03 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 14 Dec 2023 11:04:21 +0000 (12:04 +0100)
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 <johannes.berg@intel.com>
net/wireless/Makefile

index 089c841528c8545ea3e8f20b8f781e7663caeec1..72074fd36df4c8fec2e9e379f50e09816ea6ec8f 100644 (file)
@@ -25,7 +25,7 @@ ifneq ($(CONFIG_CFG80211_EXTRA_REGDB_KEYDIR),)
 cfg80211-y += extra-certs.o
 endif
 
-$(obj)/shipped-certs.c: $(wildcard $(srctree)/$(src)/certs/*.hex)
+$(obj)/shipped-certs.c: $(sort $(wildcard $(srctree)/$(src)/certs/*.hex))
        @$(kecho) "  GEN     $@"
        $(Q)(echo '#include "reg.h"'; \
          echo 'const u8 shipped_regdb_certs[] = {'; \
@@ -35,7 +35,7 @@ $(obj)/shipped-certs.c: $(wildcard $(srctree)/$(src)/certs/*.hex)
         ) > $@
 
 $(obj)/extra-certs.c: $(CONFIG_CFG80211_EXTRA_REGDB_KEYDIR) \
-                     $(wildcard $(CONFIG_CFG80211_EXTRA_REGDB_KEYDIR)/*.x509)
+                     $(sort $(wildcard $(CONFIG_CFG80211_EXTRA_REGDB_KEYDIR)/*.x509))
        @$(kecho) "  GEN     $@"
        $(Q)(set -e; \
          allf=""; \