I have to build a kernel driver. that will run under kernel build with petalinux 2018.3
The Makefile contains the line:
KERNELDIR ?= /Path/to/Kernel/Source
What is the path I should use ?
I did not find kernel source in my petalinux installation.
According to UG1144, I have to point to kernel source instead of using petalinux work-share source.
This is strange: I do not want to modify kernel source. Just insmod a kernel driver on runtime.
You can build your driver as a module in petalinux to do this. Refer UG1144 on creating modules in petalinux