aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-28 22:42:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-28 22:42:29 +0000
commitfefe200a00995320e1e04e1c3325eece71b47b92 (patch)
treec652cbf8b60a76f40ff5ae2d9d2ddfa06a034639
parent34df4d40e2012a7db80588a18b1f5fdde913977e (diff)
downloadupstream-fefe200a00995320e1e04e1c3325eece71b47b92.tar.gz
upstream-fefe200a00995320e1e04e1c3325eece71b47b92.tar.bz2
upstream-fefe200a00995320e1e04e1c3325eece71b47b92.zip
include/kernel: sort module lists for reproducibility
This is to get reproducible builds of, eg, the kmod-sched ipkg. Locale preferences can change build order, but the locale is already been defined for the entire build process, so it doesn't need to be specified here. Signed-off-by: bryan newbold <bnewbold@robocracy.org> SVN-Revision: 48540
-rw-r--r--include/kernel.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index bb3c97228c..432e8ce123 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -90,7 +90,7 @@ define ModuleAutoLoad
mods="$$$$$$$$1"; \
boot="$$$$$$$$2"; \
shift 2; \
- for mod in $$$$$$$$mods; do \
+ for mod in $(sort $$$$$$$$mods); do \
mkdir -p $(2)/etc/modules.d; \
echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$(1); \
done; \
@@ -107,7 +107,7 @@ define ModuleAutoLoad
mods="$$$$$$$$2"; \
boot="$$$$$$$$3"; \
shift 3; \
- for mod in $$$$$$$$mods; do \
+ for mod in $(sort $$$$$$$$mods); do \
mkdir -p $(2)/etc/modules.d; \
echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$$$$$$$$priority-$(1); \
done; \