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
lede-17.01
Felix Fietkau 2016-01-28 22:42:29 +00:00
parent 34df4d40e2
commit fefe200a00
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ define ModuleAutoLoad
mods="$$$$$$$$1"; \ mods="$$$$$$$$1"; \
boot="$$$$$$$$2"; \ boot="$$$$$$$$2"; \
shift 2; \ shift 2; \
for mod in $$$$$$$$mods; do \ for mod in $(sort $$$$$$$$mods); do \
mkdir -p $(2)/etc/modules.d; \ mkdir -p $(2)/etc/modules.d; \
echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$(1); \ echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$(1); \
done; \ done; \
@ -107,7 +107,7 @@ define ModuleAutoLoad
mods="$$$$$$$$2"; \ mods="$$$$$$$$2"; \
boot="$$$$$$$$3"; \ boot="$$$$$$$$3"; \
shift 3; \ shift 3; \
for mod in $$$$$$$$mods; do \ for mod in $(sort $$$$$$$$mods); do \
mkdir -p $(2)/etc/modules.d; \ mkdir -p $(2)/etc/modules.d; \
echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$$$$$$$$priority-$(1); \ echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$$$$$$$$priority-$(1); \
done; \ done; \