Fix "No rule to make target 'arch/x86/tools/relocs_32.c'" error on make install

This commit is contained in:
Joseph Brasch 2022-01-14 18:31:26 -07:00
parent 73c48a30ac
commit 4c64ccf225

View file

@ -1,7 +1,7 @@
obj-m += nct6687.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules
install: all
sudo cp nct6687.ko /lib/modules/$(shell uname -r)/kernel/drivers/hwmon/
@ -9,4 +9,4 @@ install: all
sudo modprobe nct6687
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) clean