Skip to content

Keep Module.symvers of all modules #548

Open

Description

@DeadMaX

Hello !

This patch in the issue #423 didn't work if the modules are build in a sub-folder

I added this lines to solve my problem inside the for loop just bellow:

        if [[ -f "$build_dir/${built_module_location[$count]}/Module.symvers" ]] ; then
            cp -f "$build_dir/${built_module_location[$count]}/Module.symvers" "$tmp_base_dir/module/Module.${built_module_name[$count]}.symvers"
        fi

Activity

  1. self-assigned this
    on Sep 15, 2025
  2. anbe42 commented on Sep 16, 2025

    @anbe42
    Collaborator

    How do you use these Module.symvers files from the other modules?
    Is your code publically available somewhere?
    At some point I started #470 but got stuck and didn't find time to look into it again.

  3. anbe42 commented on Sep 16, 2025

    @anbe42
    Collaborator

    If ${built_module_location[$count]} is empty, i.e. all modules are built in the top level directory, this may produce duplicate copies of Module.symvers. Same might happen if multiple modules are built in the same subdirectory. But duplicates are probably harmless.

    Also I'll use Module.${dest_module_name[$count]}.symvers as dest_module_name[*] is required to be unique.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions