Skip to content

Commit

Permalink
kernel: preserve GKI modules in vendor modules.dep
Browse files Browse the repository at this point in the history
modprobe won't lookup system_dlkm modules.dep when GKI modules are
required by vendor modules, so they'll fail to load.

Fixes: 259906d ("kernel: consider gki modules when running depmod for vendor modules")
Change-Id: Ia5a77df91d84c78f76a03910178cc86db48724c8
  • Loading branch information
moetayuko committed Feb 2, 2025
1 parent 2f05d48 commit 0c5ab30
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion build/tasks/kernel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ define build-image-kernel-modules-lineage
exit 1; \
fi
rm -f $(4)/depmod_stderr
if [ -n "$(8)" ]; then sed -i "/^$$(basename $(8))/d" $(4)/lib/modules/0.0/modules.dep; fi
sed -e 's/\(.*modules.*\):/\/\1:/g' -e 's/ \([^ ]*modules[^ ]*\)/ \/\1/g' $(4)/lib/modules/0.0/modules.dep > $(2)/lib/modules$(6)/modules.dep
cp $(4)/lib/modules/0.0/modules.softdep $(2)/lib/modules$(6)
cp $(4)/lib/modules/0.0/modules.alias $(2)/lib/modules$(6)
Expand Down

0 comments on commit 0c5ab30

Please sign in to comment.