Part Number:PROCESSOR-SDK-AM57X
Tool/software: Linux
I am using the AM57X SDK on Linux (using Phytec SOM) and have a PCIe card that I am trying to install and access. The PCIe card is a demo board for an FPGA and supplies a drive (written in C) and they provide instructions for compiling. Here is the makefile:
obj-m :=pci_driver.o
KDIR= /lib/modules/$(shell uname -r)/build
all:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
rm -rf $(wildcard *.o *.ko mo* Mo* *.mod.c )
The make doesn't work as the build directory is not in the Linux that booted. How do I compile this driver so I can install it in Linux?
Thanks.