Hello,
I am trying to cross compile kernel module for AM3517 using TI SDK v05.07
The linux kernel I am using is 2.6.37
I created hello.c and the Makefile based on the linux kernel module programming guide found online in my /home/intro/1 directory
My makefile looks like -
obj-m += hello.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
When I run the command 'make' it compiles fine and creates the required hello.ko for my ubuntu12.04. I am now however trying to make the kernel module for my AM3517.
My kernel source directory is
/opt/ti-sdk-am3517-evm-05.07.00.00/board-support/linux-2.6.37-psp04.02.00.07
When I replaced /lib/modules/$(shell uname -r)/build from the above makefile with the Kernel Source directory and ran
make ARCH=arm CROSS_COMPILE=/opt/ti-sdk-am3517-evm-05.07.00.00/linux-devkit/bin//arm-arago-linux-gnueabi-
it didnt work
What would I need to include in my makefile to cross compile kernel module?