Thank Yi. I previously tried what the the book you refered me to
suggested, after gathering the information from various tutorials on
the web. But it was insightful, and more organized. So thanks for
that.
For any future newbies who make the same mistake like me -
My problem was that in my source code directory make call I did not
reference the kernel build directory Makefile, but the kernel source
code one. i.e.
# make -C <kernel source code directory> M=`pwd` modules
while I should have done was
# make -C <kernel source code directory>/out/target/product/vm/obj/
kernel M=`pwd` modules
Thanks for all the help here!
On Aug 1, 8:26 pm, Yi Sun <
beyo...@gmail.com> wrote:
> I did not read your early e-mail since it is cut off , but here is what I can help:
>
> It depends on how you want to build your module. If you want to build a driver as a kernel module that has the source code comes with the android-x86 kernel source code, then the only thing you need to do is to change the vm_defconfig and rebuild the kernel. If you have your own driver code that is separated from the standard kernel code, then you can point your kernel dir to the android-x86 kernel directory and rebuild your module.
> For the detail on how to build kernel with Android-x86. you can check on:
http://www.android-x86.org/documents/customizekernel
> For the detail on how to write a makefile for a kernel module, you can find from herehttp://
lwn.net/Kernel/LDD3/