I have installed a module, acpi_call, with make && sudo make install
. The problem is the module is no more installed when I upgrade the kernel, I have to do make install
again. Why does it not happen to the other modules, andhow can I avoid this?
Thank you all, I solved.
Using the example linked by CelticWarrior, I created this dkms.conf
file:
MAKE[0]="make"
CLEAN="make clean"
BUILT_MODULE_NAME[0]=acpi_call
# BUILT_MODULE_LOCATION[0]=./
DEST_MODULE_LOCATION[0]="/extra"
PACKAGE_NAME=acpi_call
PACKAGE_VERSION=1.0
REMAKE_INITRD=yes
DEST_MODULE_LOCATION
is required as documented in man dkms
, despite the example.
Then I copied the source code in /usr/src/acpi_call-1.0
and then installed it with:
sudo dkms install -m acpi_call -v 1.0
See also the kernel.org documentation about external modules - it documents the correct way to create a makefile for building and installing an external module, and it says that the correct location for external module is under the extra
subdir.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments