On Mon, May 24, 2010 at 10:57 PM, rohan raizada
<[email protected]> wrote:
> Hi,
>
> I have written a small LKM for android. Now when i try to build it I
> get the following error:
>
> make ARCH=arm 
> CROSS_COMPILE=../../../prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi-
> -C /home/roaan/mydroid/common/kernel/ M=`pwd` modules
> make: Entering directory `/home/roaan/mydroid/common/kernel'
> make: *** No rule to make target `modules'.  Stop.
> make: Leaving directory `/home/roaan/mydroid/common/kernel
>
> The module that i want to build is hello.c in the current directory.

Then create a proper Makefile to build the module, it should be very trivial
to do that (hint, never call make on your own to build a kernel module).

Please read the documentation on the kernel build system to find out
how to do this.

good luck,

greg k-h

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to