Dear all, I made some modifications in the /usr/src/linux/drivers/ide/pci/sis5513.c file. It is the driver for my ide-controller. Now I would like to compile this file and load it as a module.
"make sis5513" gives me erros. Please advise.
Thank You, Shreyas Phadnis
Sometime Today, SP cobbled together some glyphs to say:
I made some modifications in the /usr/src/linux/drivers/ide/pci/sis5513.c file.
[snip]
"make sis5513" gives me erros.
not sure, but you may want to try one of the following:
make sis5513.o or make sis5513.ko
depending on whether you have linux 2.4 or linux 2.6
Sometime Today, SP cobbled together some glyphs to say:
I made some modifications in the /usr/src/linux/drivers/ide/pci/sis5513.c file.
"make sis5513" gives me erros.
" make -C </path/to/linux/kernel/src/> M=`pwd` "
basically first cd to the src driectory of the module and run this.
of course this will make all the drivers specified by the Makefile in that directory..
for further info / customisations lookup kbuild.
regards Erle
On Thu, 2005-06-02 at 03:25 +0530, Philip Tellis wrote:
Sometime Today, SP cobbled together some glyphs to say:
I made some modifications in the /usr/src/linux/drivers/ide/pci/sis5513.c file.
Cool, there ARE some adventurous device driver buckers on the list. *Rubs his hands in glee*
[snip]
"make sis5513" gives me erros.
not sure, but you may want to try one of the following:
Perhaps you might want to send us your Makefile and the kernel version you are using... and a dump of what make throws.
make sis5513.o or make sis5513.ko
AFAIK, make sis5513 should do the trick as long as you have something like:
obj-m := sis5513.c in your Makefile.
depending on whether you have linux 2.4 or linux 2.6
Regards
ah