Help compiling kernel module
I am trying to write kernel modules. And am running Ubuntu 10.04 x64. I have downloaded both kernel source and headers. Unpacked kernel source and made a /usr/src/linux symbolic link pointing to the src.
Here is the output of running make: Code:
make -C /lib/modules/2.6.32-22-generic/build M= modules Code:
obj-m += hello-1.o Code:
#include <linux/module.h> /* Needed by all modules */ Thanks in advance. |
Hi -
Code:
Makefile: Code:
Actual output: Did you alias it to something in your user environment? 'Hope that helps .. PSM |
Thanks a lot for identifying my problem... I changed the $(pwd) to either $(PWD) or $(shell pwd) and both works.. Seems I have to use $(shell command) syntax to run a command in Makefiles or it consider it a variable. I thought it's like shell scripts.
Now it all works, Thanks again. :-) |
same problem with same make file
i tried both $(PWD) & $(shell pwd). it does not work.and it is not including SYMLINK as SYMLINK include/asm -> include/asm-x86
|
All times are GMT -5. The time now is 07:08 PM. |