I have a Linux system running from a kernel image I compiled off the sources from a Git repository. When I am running Linux, I would like to install a driver for some NI instrument. When I try running the installer, it tells me that it cannot detect the Linux kernel sources, and that those are required for the driver.
I have the sources available, so that's not an issue, but I don't know how to make those available to this installer. Are kernel sources traditionally kept in some specific directory, or is there some environment variable that tells where they are?
Also, what constitutes the kernel sources? There is a large number of files in the Git repo I pulled, but many of those files seem to be build or make files for different platforms. What specifically is needed for a kernel module?