blob: 89cf76318922685fc0bf951aa85b050a022fe811 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# 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)
|