Author: nbd Date: 2014-11-19 21:16:50 +0100 (Wed, 19 Nov 2014) New Revision: 43323
Modified: trunk/include/kernel.mk Log: build: allow AutoLoad and AutoProbe to specify modules not included in the package On out-of-tree modules depending on other out-of-tree modules from a different tree, module dependencies are not filled properly. This change helps with adding those dependencies in the AutoLoad call Signed-off-by: Felix Fietkau <[email protected]> Modified: trunk/include/kernel.mk =================================================================== --- trunk/include/kernel.mk 2014-11-19 17:35:24 UTC (rev 43322) +++ trunk/include/kernel.mk 2014-11-19 20:16:50 UTC (rev 43323) @@ -84,10 +84,8 @@ boot="$$$$$$$$2"; \ shift 2; \ for mod in $$$$$$$$mods; do \ - if [ -e $(2)/$(MODULES_SUBDIR)/$$$$$$$$mod.ko ]; then \ - mkdir -p $(2)/etc/modules.d; \ - echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$(1); \ - fi; \ + mkdir -p $(2)/etc/modules.d; \ + echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$(1); \ done; \ if [ -e $(2)/etc/modules.d/$(1) ]; then \ if [ "$$$$$$$$boot" = "1" ]; then \ @@ -103,10 +101,8 @@ boot="$$$$$$$$3"; \ shift 3; \ for mod in $$$$$$$$mods; do \ - if [ -e $(2)/$(MODULES_SUBDIR)/$$$$$$$$mod.ko ]; then \ - mkdir -p $(2)/etc/modules.d; \ - echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$$$$$$$$priority-$(1); \ - fi; \ + mkdir -p $(2)/etc/modules.d; \ + echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$$$$$$$$priority-$(1); \ done; \ if [ -e $(2)/etc/modules.d/$$$$$$$$priority-$(1) ]; then \ if [ "$$$$$$$$boot" = "1" ]; then \ _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
