-
Notifications
You must be signed in to change notification settings - Fork 151
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
Keep the Module.symvers file along with the *.ko #423
Comments
Let me see if I get this right: Your use-case is to build a dkms module that is then effectively used as input for another dkms module? Can you provide links to the modules in question? Copying the If you can outline how you see things working, ideally by adding a test, that would be appreciated. |
I am compiling my own module: a PCIe driver to a company made card. This card acquires data to internal memory and then transfers it to the host PC. The driver has been doing this successfully for more that 20 years. My precise use case is that my driver has to call functions that are exported by the nvidia driver to handle the direct data transfer from our company-card to the GPU-card. My problem is that the compilation of the nvidia proprietary driver (that uses dkms) erases the |
Thanks for the extensive reply - I think you covered everything but the part that was of interest ;-) Assuming the nvidia Module.symvers is placed in |
I've not concatenated any symvers files. What I can envision first is that dkms default behavior would be to copy the Module.symvers file alongside the final *.ko file. This need to be the default behavior of dkms. I mean it would not be practicable for me to change the nvidia dkms.conf file, adding a flag to conserve the symvers. I'd like the nvidia files installed by the apt package nvidia-kernel-dkms to be kept pristine. Likewise, I'd want the final That's the main thing I'd need, because as of now, I'm not using the Module.symvers that correspondsprecisely to the nvidia kernel module I'm using. What I could envision next, is a way to indicate in the dkms.conf of my module, that it requires another dkms module, and that the KBUILD_EXTRA_SYMBOLS would be added automatically for me. Especially since the location of the final Module.symvers file can change. But I guess dkms has all the data it needs to create this string. |
When the build is complete, only the
*.ko
files are copied to the finalmodule
directory.However, some modules export functions, and to be able to use these exported functions when compiling other modules (either using dkms or not) one need the
Module.symvers
file.This
Module.symvers
file is generated when compiling the module, but it is left in thebuild
directory. Unfortunately, this directory is deleted when the build is finished.I'd like to have an option such that the
Module.symvers
file is copied along the*.ko
files to the finalmodule
directory.The text was updated successfully, but these errors were encountered: