mirror of
https://github.com/intrepidcs/intrepid-socketcan-kernel-module.git
synced 2026-08-05 01:18:37 +02:00
The previous version of the "install" function in the MakeFile didn't update the /etc/modules file to include intrepid as a kernel to load at boot time. This change makes the necessary change, allowing the kernel to be loaded automatically.
18 lines
485 B
Makefile
18 lines
485 B
Makefile
obj-m = intrepid.o
|
|
KVERSION = $(shell uname -r)
|
|
all:
|
|
make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
|
|
install:
|
|
mkdir -p /lib/modules/$(KVERSION)/extra
|
|
cp intrepid.ko /lib/modules/$(KVERSION)/extra/
|
|
grep -q -F 'intrepid' /etc/modules || echo 'intrepid' | tee -a /etc/modules
|
|
depmod -a
|
|
clean:
|
|
make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
|
|
reload: all
|
|
-sudo rmmod intrepid
|
|
sudo modprobe can
|
|
sudo modprobe can_raw
|
|
sudo modprobe can_dev
|
|
sudo insmod intrepid.ko
|