#called from kbuild system ifneq ($(KERNELRELEASE),) obj-m := ss_usb.o #called from command line else KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) default: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules endif #sudo modprobe pcan #sudo modprobe candev #sudo modprobe netconsole netconsole=6666@192.168.1.54/eth0,6666@192.168.1.39/aa:00:04:00:0a:04 #sudo insmod ss_usb.ko