forked from PhilippeBekaert/snd-hdspe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (37 loc) · 1.05 KB
/
Makefile
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
obj-m += sound/pci/hdsp/
# The runtime of DKMS has this environment variable to build for several versions of Linux kernel.
ifndef KERNELRELEASE
KERNELRELEASE := $(shell uname -r)
endif
KDIR ?= /lib/modules/${KERNELRELEASE}/build
PWD := $(shell pwd)
EXTRA_CFLAGS += -DDEBUG -DCONFIG_SND_DEBUG
# Force to build the module as loadable kernel module.
# Keep in mind that this configuration sound be in 'sound/pci/Kconfig' when upstreaming.
export CONFIG_SND_HDSPE=m
default: depend
$(MAKE) W=1 -C $(KDIR) M=$(PWD) modules
clean:
$(MAKE) W=1 -C $(KDIR) M=$(PWD) clean
-rm *~
-touch deps
insert: default
-rmmod snd-hdspm
insmod sound/pci/hdsp/hdspe/snd-hdspe.ko
remove:
rmmod snd-hdspe
install: default
-rmmod snd-hdspm
-ln -s $(pwd) /usr/src/alsa-hdspe-0.0
dkms install alsa-hdspe/0.0
uninstall:
dkms remove alsa-hdspe/0.0 --all
list-controls:
-rm asound.state
alsactl -f asound.state store
show-controls: list-controls
less asound.state
enable-debug-log:
echo 8 > /proc/sys/kernel/printk
depend:
gcc -MM sound/pci/hdsp/hdspe/hdspe*.c > deps