I'm learning how to write a module, and when I initialize "make", I get
make[1]: *** /lib/modules/6.6.6-060606-generic/build: No such file or directory. Stop.
With this Makefile:
obj-m = foo.o
KVERSION = $(shell uname -r)
all:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
I've found this as a potential solution. As you can see, I'm running 6.6.6 but Mint only supports an inferior Kernel. Is it okay if I download my latest distro headers and use those?