|
Problem in compiling a device driver program
Hi All,
I'm a new aspiring device driver programming learner. I have downloaded scull source code ( of Alessandro Rubini: linux device drivers third edition )
While I run make command, I get following error
[parun@tunnel scull]$ make
make -C /lib/modules/2.6.18-1.2798.fc6/build M=/home/parun/Desktop/examples/scull LDDINC=/home/parun/Desktop/examples/scull/../include modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i586'
CC [M] /home/parun/Desktop/examples/scull/main.o
/home/parun/Desktop/examples/scull/main.c:17:26: error: linux/config.h: No such file or directory
make[2]: *** [/home/parun/Desktop/examples/scull/main.o] Error 1
make[1]: *** [_module_/home/parun/Desktop/examples/scull] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i586'
make: *** [modules] Error 2
As per my understanding, the main.c program refers a header file linux/config.h .But there was no config.h in linux source codes header directory.Is it the mistake of the scull code??
Reply me, if you find any clues
thanks and regards,
Arun
|