# out-of-tree module build of the mhs35 panel driver. # defaults to *your* current running kernel! KDIR ?= /lib/modules/$(shell uname -r)/build # kernel module artifacts output to build. BUILD := build all: mkdir -p $(BUILD) ln -sf ../mhs35.c ../Kbuild $(BUILD)/ $(MAKE) -C $(KDIR) M=$(CURDIR)/$(BUILD) modules clean: rm -rf $(BUILD)