Quote:
i compiled in the same directory that sources are? I feel something wrong with symlink too. That is the major part of errors in compilation of my driver. Though you link didn't help, cause `make mrproper` dont work. there are no such option in makefile mrproper i think |
Ok - this is very odd. I have an even simpler Makefile which will require some command line arguments to make. You should change directory to the directory of hello.c and create a file called, for example, hello.sh. Then make it executable with
Code:
chmod +x hello.sh Code:
./hello.sh Code:
#!/bin/bash |
Quote:
|
Quote:
Quote:
|
Quote:
|
there are no files .o, mod.*, *.ko and still when I try to send command
`make` there is answer: make: Nothing to be done for `default'. |
Quote:
Thank you very much it worked now! It compiled and created bunch of files with .ko, .o and so on!!! |
2bgeddy
can you explain pleas what it does? Code:
#!/bin/bash Code:
cat > Makefile << EOF |
Quote:
Quote:
|
I'm very sorry, but driver again refused to compile!!!
Code:
CC [M] /home/ushka/temp/hello.o |
Interesting thing when I have tried to compile kernel: linux-2.6.28 with make utility
the same error in page.h was up. Funny thing linux!!! |
Quote:
Installing and building a kernel source tree is the FIRST THING you should do when wanting to compile you own modules ! If the build process for the kernel fails then you will have problems with your modules. Quote:
You must concentrate on successfully building a kernel first eliminating any build errors before continuing. I just wish you would have made this clear at the outset. Actually this is getting highly confusing as :- Quote:
Before continuing I suggest you study The Linux Kernel in a Nutshell and Linx Device Drivers third edition and in future please give out relevant information at the outset - it would save a lot of time all round. |
All times are GMT -5. The time now is 01:11 AM. |