~mil/ppbbq10

ppbbq10/Makefile -rw-r--r-- 487 bytes
c69e8a4eMiles Alan Add WIP bumper-style case models 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
MODULE_NAME := ppbbq10

obj-m := $(MODULE_NAME).o

all: modules

modules:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
.PHONY: modules

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
.PHONY: clean

install:
	@lsmod | grep $(MODULE_NAME) > /dev/null && rmmod $(MODULE_NAME) || true
	insmod $(MODULE_NAME).ko
.PHONY: install

remove:
	rmmod $(MODULE_NAME)
.PHONY: remove

dtbo:
	dtc -I dts -O dtb -o i2c-bbq10pmod.dtbo i2c-bbq10pmod.dts
.PHONY: dtbo