i’m trying to compile kernel module direct on target but i faced this error as below
root@colibri-imx6:/# make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
make: *** /lib/modules/4.1.39-2.7.2+gba2f75f/build: No such file or directory. Stop.
While we do not recommend to do any native compilation and all our BSPs do not include many of the needed environments/tools to do so you may of course still waste your time doing it. A few things to look out for: