Author: nbd
Date: 2016-01-28 23:42:29 +0100 (Thu, 28 Jan 2016)
New Revision: 48540

Modified:
   trunk/include/kernel.mk
Log:
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 <[email protected]>

Modified: trunk/include/kernel.mk
===================================================================
--- trunk/include/kernel.mk     2016-01-28 22:42:25 UTC (rev 48539)
+++ trunk/include/kernel.mk     2016-01-28 22:42:29 UTC (rev 48540)
@@ -90,7 +90,7 @@
                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 @@
                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; \
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to