I am just trying to learn how to driver modules for Linux Kernel. I followed Linux Device drivers 3rd edition book and started my work. I created a sample program and makefile. Please find my makefile contents below.
obj-m += testModule.o
make -C /lib/modules/3.2.36/build M=$(PWD) modules
i have exactly the same problem like this two people:
and i tried to fix it with the following:
(with the file from: http://askubuntu.com/questions/13963...not-recognized)
cd /home/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514 .201 (work)
sudo su (work?)
make: *** No
I want to add a file hstest.c which comes with bluez package but not by default added to the makefile to the sources that are compiled with the buid system.
I read about makefiles and autotools but now I am hesitant to make changes to the makefiles. Should I modify the makefile.am and then run automake or just change the makefile.in or the makefile itself ? and how ?