Created by: gizero
The kernel build infrastructure already runs depmod properly in its modules_install target, doing so in a cross-compilation friendly way. Running it with no arguments is useless and also harmful since it breaks cross-compilation contexts by scanning dependencies on the modules installed on the host instead of those being built for the target.
Patches with similar motivation where accepted by other projects providing external kernel modules and widely used in cross-compilation environments. See i.e. lttng-modules or v4l2loopback as a reference.