Here is how you build a kernel without the sources - just the headers:
http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html
The procedure can be easily adapted to the mx5 kernel.
Daiane Angolini said:
"__LINUX_ARM_ARCH__" is not definedDid you configure your source code?
I don´t know how to build a module without the kernel source code, although it looks like it´s a configuration missing error...
"__LINUX_ARM_ARCH__" is not defined
Did you configure your source code?
I don´t know how to build a module without the kernel source code, although it looks like it´s a configuration missing error...
Hi,
Thanks for your reply,
I tried your command, I am getting this error (attached file). Please suggest.
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
WARNING: Symbol version dump /home/lucid/ltib/rpm/BUILD/linux-2.6.35.3/Module.symvers
is missing; modules will have no dependencies and modversions.
Regards,
Swamy
Did you set up your cross-compilation correctly?
You need to set the CROSS_COMPILE=[toolchain prefix] and ARCH=arm when you compile, e.g.
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -j6
Also, your cross-compiler needs to be in the PATH.