Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile: do not run depmod manually #5

Merged
merged 1 commit into from
Oct 16, 2017

Conversation

gizero
Copy link
Contributor

@gizero gizero commented Oct 14, 2017

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.

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.

Signed-off-by: Andrea Galbusera <gizero@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants