Part Number: EVMK2H
Hi,
I need to write a kernel module for PCI and then cross compile it using ti-evmk2h-processor-sdk-5.02.00.10. How do i have to set up the make file, i tried one with the following
obj-m := pci_mod_PBv7.o
KDIR := /home/sheraz/ti-processor-sdk-linux-k2hk-evm-05.02.00.10/board-support/linux-4.14.79+gitAUTOINC+bde58ab01e-gbde58ab01e
#CCFLAGS:= -O0#yaseen add to force no optimization
ARCH=arm
CROSS_COMPILE=arm-linux-gnueabihf-
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
but when i make i get the following
make[1]: Entering directory '/home/sheraz/ti-processor-sdk-linux-k2hk-evm-05.02.00.10/board-support/linux-4.14.79+gitAUTOINC+bde58ab01e-gbde58ab01e'
WARNING: Symbol version dump ./Module.symvers
is missing; modules will have no dependencies and modversions.
make[2]: *** No rule to make target 'tools/objtool/objtool', needed by '/home/sheraz/Desktop/pci_mod_PBv7/pci_mod_PBv7.o'. Stop.
Makefile:1527: recipe for target '_module_/home/sheraz/Desktop/pci_mod_PBv7' failed
make[1]: *** [_module_/home/sheraz/Desktop/pci_mod_PBv7] Error 2
make[1]: Leaving directory '/home/sheraz/ti-processor-sdk-linux-k2hk-evm-05.02.00.10/board-support/linux-4.14.79+gitAUTOINC+bde58ab01e-gbde58ab01e'
Makefile:12: recipe for target 'default' failed
make: *** [default] Error 2
Any Idea what am i doing wrong?