Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Keep modinfo happy in newer kernels #230

@geofft

Description

@geofft

I see this warning:

WARNING: could not find /home/ubuntu/linux-kernel-module-rust/hello-world/.hello_world.rust.o.cmd for /home/ubuntu/linux-kernel-module-rust/hello-world/hello_world.rust.o

Looking around a bit, I see torvalds/linux@70f30cf, which I'm now worried about:

    Going forward, the missing *.symvers or *.cmd is a fatal error.
    This should not happen because scripts/Makefile.modpost guards the
    -i option files with $(wildcard $(input-symdump)).

I think we need to either generate the .cmd file or explicitly tell modinfo to skip our .o file. (I assume the skip option exists because closed-source modules with precompiled .o files are a thing.)

I think this is generated as an -MD or thereabouts of input C files, and we could almost certainly do that easily for bindings.c. I'm less sure if we can do that for bindgen but presumably it's doable somehow with libclang....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions