![]() |
editing a kernel module make file
I am need to edit a Makefile that is used to install the fusion kernel module. The Makefile checks the output of uname -r to determine the module build directory. Here is the original code
Code:
KERNEL_MODLIB = /lib/modules/$(shell uname -r)Code:
KERNEL_MODLIB = /lib/modules/$(shell ls /lib/modules)question: How can I specify depmod to use a specific module diretory then the directoy specified by uname -r. if you care to look, this is the code used in the Makefile Code:
(if test $(KERNEL_PATCHLEVEL) = 4; then cp $(SUB)/fusion.o $(KERNEL_MODLIB); else cp $(SUB)/fusion.ko $(KERNEL_MODLIB); fi) && depmod -ae |
Man depmod says :
Code:
... |
| All times are GMT -5. The time now is 06:05 PM. |