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!
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!