Makefile not working for kernel module
I have tried creating a make file to run a simple hello world module though keep getting the following error when I input make in the command line:
Code:
make -C /lib/modules/3.5.0-23-generic/build M= modules 1: Code:
obj-m += hello-1.o Code:
obj-m += hello-1.o |
This is the basic "module Makefile" :
Code:
obj-m := hello-1.o |
In Make file just write :-
Code:
obj-m:= hello-1.o Code:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules Code:
$(PWD) Code:
$(shell uname -r) |
All times are GMT -5. The time now is 06:30 AM. |