I have a PL design to which I need to write my own char device driver to control. I did the driver development on my linux VM and have a standard kernel module makefile
obj-m += mydriver.o
mydriver-objs := my_driver.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
however when I go to build it on my zedboard linux install (Linaro) i get this error:
make: *** /lib/modules/3.18.0-xilinx-06444-g06af32c/build: No such file or directory. Stop.
make: *** [all] Error 2
how may I go about building my driver on zynq?