Bonjour,
J'essaye de modifier sata_sil. C'est a dire j'essaye de recompiler un module a part en utilisant dkms. Je ne comprends pas ce qu'il manque a mon fichier Makefile.
J'utilise mandy 10.1 CE, gcc et le kernel source 2.6.8.1-10mdk sont installes
J'ai mis Le nouveau module dans l'arborescence (sans probleme):
# dkms status
sata_sil, 2: added
Mon dkms.conf est:
code
ACKAGE_NAME=sata_sil
PACKAGE_VERSION=2
DEST_MODULE_LOCATION[0]=/kernel/drivers/scsi
BUILT_MODULE_NAME[0]=sata_sil
MAKE[0]="make KERNEL_PATH=${kernel_source_dir}"
AUTOINSTALL=yes
La compilation est lancee avec
# dkms build -m sata_sil -v 2
qui donne:
Preparing kernel 2.6.8.1-10mdk for module build:
(This is not compiling a kernel, only just preparing kernel symbols)
Storing current .config to be restored when complete
Running Mandrakelinux style preparation routine
make clean....
using /lib/modules/2.6.8.1-10mdk/source/arch/i386/defconfig
make oldconfig....
running dkms_mkkerneldoth....
Building module:
cleaning build area...(bad exit status: 2)
make KERNELRELEASE=2.6.8.1-10mdk KERNEL_PATH=/lib/modules/2.6.8.1-10mdk/source...(bad exit status: 2)
Error! Bad return status for module build on kernel: 2.6.8.1-10mdk (i686)
Consult the make.log in the build directory
/var/lib/dkms/sata_sil/2/build/ for more information.
# cat /var/lib/dkms/sata_sil/2/build/make.log
DKMS make.log for sata_sil-2 for kernel 2.6.8.1-10mdk (i686)
Thu May 26 22:06:52 BST 2005
Les erreurs sont
Makefile:6: *** missing separator. Stop
ou
make: *** No targets. Stop
en fonctio de mon makefile
Mon makefile est une courte version du scsi makefile.
Les lignes commentees sont celles que j'ai essayees
#
# Makefile for linux/drivers/scsi
#
#obj-$(CONFIG_SCSI_SATA_SIL) += libata.o sata_sil.o
#obj mysata += libata.o sata_sil.o
# libata.o sata_sil.o
#make -C /lib/modules/2.6.8.1-10mdk/build
[root@localhost sata_sil-2]# ls -l
-rwxr-xr-x 1 root root 181 May 26 21:30 dkms.conf*
-rw-r--r-- 1 root root 180 May 26 21:26 dkms.conf~
-rw-r--r-- 1 root root 84385 Sep 8 2004 libata-core.c
-rw-r--r-- 1 root root 3503 Sep 8 2004 libata.h
-rw-r--r-- 1 root root 39284 Sep 8 2004 libata-scsi.c
-rw-r--r-- 1 root root 132 May 26 22:09 Makefile
-rw-r--r-- 1 root root 131 May 26 22:06 Makefile~
-rw-r--r-- 1 root root 13087 May 26 20:46 sata_sil.c
Merci d'avance pour toute idee