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 <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43323 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4475136d42
commit
2a4d6c2978
1 changed files with 4 additions and 8 deletions
|
@ -84,10 +84,8 @@ define ModuleAutoLoad
|
||||||
boot="$$$$$$$$2"; \
|
boot="$$$$$$$$2"; \
|
||||||
shift 2; \
|
shift 2; \
|
||||||
for mod in $$$$$$$$mods; do \
|
for mod in $$$$$$$$mods; do \
|
||||||
if [ -e $(2)/$(MODULES_SUBDIR)/$$$$$$$$mod.ko ]; then \
|
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); \
|
|
||||||
fi; \
|
|
||||||
done; \
|
done; \
|
||||||
if [ -e $(2)/etc/modules.d/$(1) ]; then \
|
if [ -e $(2)/etc/modules.d/$(1) ]; then \
|
||||||
if [ "$$$$$$$$boot" = "1" ]; then \
|
if [ "$$$$$$$$boot" = "1" ]; then \
|
||||||
|
@ -103,10 +101,8 @@ define ModuleAutoLoad
|
||||||
boot="$$$$$$$$3"; \
|
boot="$$$$$$$$3"; \
|
||||||
shift 3; \
|
shift 3; \
|
||||||
for mod in $$$$$$$$mods; do \
|
for mod in $$$$$$$$mods; do \
|
||||||
if [ -e $(2)/$(MODULES_SUBDIR)/$$$$$$$$mod.ko ]; then \
|
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); \
|
|
||||||
fi; \
|
|
||||||
done; \
|
done; \
|
||||||
if [ -e $(2)/etc/modules.d/$$$$$$$$priority-$(1) ]; then \
|
if [ -e $(2)/etc/modules.d/$$$$$$$$priority-$(1) ]; then \
|
||||||
if [ "$$$$$$$$boot" = "1" ]; then \
|
if [ "$$$$$$$$boot" = "1" ]; then \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue