-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathKbuild
30 lines (21 loc) · 751 Bytes
/
Kbuild
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
CONFIG_SND_SAMPLE_CORE = m
CONFIG_SND_SAMPLE_I2S = m
CONFIG_SND_SAMPLE_I2S_SPDIF = m
CONFIG_SND_SAMPLE_DEVICE = m
# For debug
CONFIG_SND_SAMPLE_DEBUG = y
ifeq ($(CONFIG_SND_SAMPLE_DEBUG),y)
DBGFLAGS = -O1 -g -DCONFIG_SND_SAMPLE_DEBUG
endif
EXTRA_CFLAGS += $(DBGFLAGS)
EXTRA_CFLAGS += -I$(LDDINC)
# Sample ALSA SoC driver
snd-sample-core-objs := sample-core.o sample-util.o
obj-$(CONFIG_SND_SAMPLE_CORE) += snd-sample-core.o
snd-sample-i2s-objs := sample-i2s.o
obj-$(CONFIG_SND_SAMPLE_I2S) += snd-sample-i2s.o
snd-sample-i2s-spdif-objs := sample-i2s-spdif.o
obj-$(CONFIG_SND_SAMPLE_I2S_SPDIF) += snd-sample-i2s-spdif.o
# Sample ALSA SoC device
snd-sample-device-objs := sample-device.o
obj-$(CONFIG_SND_SAMPLE_DEVICE) += snd-sample-device.o