Article 6HWV6 Makifile ***/lib/modules/5.10.168.... no such file or directory

Makifile ***/lib/modules/5.10.168.... no such file or directory

by
Beta2024
from LinuxQuestions.org on (#6HWV6)
Hello,
I am newbie, and I got a problem with make file in Linux, please help me.
My makefile as below:
obj-m += helloMod.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

And I got Error:
make[1]: *** /lib/modules/5.10.168-ti-r71/build: No such file or directory. Stop.

I stuck right here, please help me, thanks a lot!
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments