diff options
Diffstat (limited to 'include/kernel.mk')
-rw-r--r-- | include/kernel.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/kernel.mk b/include/kernel.mk index 7674f0dadc..d780ef0ce2 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -136,6 +136,7 @@ define ModuleAutoLoad local mod; \ shift 2; \ for mod in $$$$$$$$mods; do \ + [ -e $(2)/$(MODULES_SUBDIR)/$$$$$$$$mod.ko ] || continue; \ mkdir -p $(2)/etc/modules.d; \ echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$(1); \ done; \ @@ -154,6 +155,7 @@ define ModuleAutoLoad local mod; \ shift 3; \ for mod in $$$$$$$$mods; do \ + [ -e $(2)/$(MODULES_SUBDIR)/$$$$$$$$mod.ko ] || continue; \ mkdir -p $(2)/etc/modules.d; \ echo "$$$$$$$$mod" >> $(2)/etc/modules.d/$$$$$$$$priority-$(1); \ done; \ |