Where is build folder located?

I still trying to compile driver for pci wifi card and when I trying do make command it says -/lib/modules/4.2.3-7-osmc/build: No such file or directory. So if not there so where is it located?

You need to install the headers and create a symlink

Sam

It’s already installed, but I don’t know where is build folder located to make symlink, there is no such folder in /lib/modules/4.2.3-7-osmc even after header installed

Ok, I find the folder in /usr/src/atv-headers-4.2.3-7-osmc/tools/build and made a symlink but now when I trying to make it says:
Entering directory ’ /usr/src/atv-headers-4.2.3-7-osmc/tools/build’
No rule to make target ‘modules’. Stop
Any thoughts?

So, It was my fall - i create wrong symlink. So there is another question - how to fully remove module? I tried rmmod but after reboot module shows in lsmod again

If you installed it in /lib/modules, it may autoload.

You can blacklist it in /etc/modprobe.d/ or /usr/modules-load.d

The module may also support make uninstall

Hi vnuEndru what is/was the correct symlink could you tell us?
thanks