Command for cross compilation to build the module for simple hello program
can anyone tell me what command I have to enter for building a module??
1)I've installed the tool chain
2)I've set the path
3) Then I had written a simple hello module program & Makefile
4)CROSS_COMPILE=arm-linux- ARCH=arm make used this one for cross compilation...
5) I'm getting the error that I've posted below
make -C /lib/modules/18.104.22.168/build M=/root/Char modules
make: arm-linux-gcc: Command not found
make: Entering directory `/usr/src/linux-22.214.171.124'
CC [M] /root/Char/char.o
/bin/sh: arm-linux-gcc: command not found
make: *** [/root/Char/char.o] Error 127
make: *** [_module_/root/Char] Error 2
make: Leaving directory `/usr/src/linux-126.96.36.199'
make: *** [all] Error 2
so could you please again help me where I was going wrong & how to compile the module(