forked from GothAck/hifimems-kmod
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
22 lines (16 loc) · 567 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
obj-m += hifimems-soundcard.o hifimems-codec.o
SRC := $(shell pwd)
all: devicetree
$(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules
install: devicetree
cp hifimems-soundcard.dtbo /boot/overlays/
cp hifimems-codec.ko /lib/modules/$(shell uname -r)
cp hifimems-soundcard.ko /lib/modules/$(shell uname -r)
depmod -a
clean: clean-local
$(MAKE) -C $(KERNEL_SRC) M=$(SRC) clean
clean-local:
rm hifimems-soundcard.dtbo || true
hifimems-soundcard.dtbo:
dtc -@ -I dts -O dtb -o hifimems-soundcard.dtbo hifimems-soundcard-overlay.dts
devicetree: hifimems-soundcard.dtbo