Compile kernel module

Post Reply
tarek.elsherbiny
Posts: 16
Joined: Mon Feb 02, 2009 7:23 am

Compile kernel module

Post by tarek.elsherbiny » Thu Feb 19, 2009 1:48 pm

I am trying to compile a kernel module using the following command:

make ARCH=arm -C /home/tarek/workspace/FriendlyARM/Kernel/kernel-2.6.13 M=`pwd` modules

but i get errors

Is there any thing wrong I am doing?

Thanks

vibnwis
Posts: 20
Joined: Sun Dec 21, 2008 12:20 am

Re: Compile kernel module

Post by vibnwis » Wed Jun 10, 2009 3:30 am

you need to specify the cross-compiler. Add this line to yours.
CROSS_COMPILE = /path/to/cross-compiler/arm-linux-

Notes: the cross-compiler is only partial filename ie arm-linux-. The Makefile will add gcc, cpp, etc

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests