HI, 
I am using this Makefile to build the kernel driver on the BBB 
itself(already apt-get installed build-essenatials on it).
obj-m += myDrvr.o

all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean


But I am getting this error : 
make -C /lib/modules/4.1.22-bone21/build 
M=/home/ubuntu/bb/exploringBB/chp06/GPIO/tests/hello-linux-module modules
Makefile:4: recipe for target 'all' failed


I checked that inside ls -l /lib/modules/  there is 4.1.22-bone21 folder is 
present which is symbolically linked with the build pointing to 
/path_to_kernel_sources_on_pc_WHERE_I_BUILT_MY_KERNEL

Is this some error I did while building the image for BBB.How can I compile 
my kernel module?

Thanks and Rgds,
Rp

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/e984d80c-106d-46a3-b1b6-0c96ff5cab09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to