xref: /linux/sound/soc/sof/Makefile (revision 23c996fc2bc1978a02c64eddb90b4ab5d309c8df)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2
3snd-sof-y := core.o ops.o loader.o ipc.o pcm.o pm.o debug.o topology.o\
4		control.o trace.o iomem-utils.o sof-audio.o stream-ipc.o\
5		fw-file-profile.o
6
7# IPC implementations
8ifneq ($(CONFIG_SND_SOC_SOF_IPC3),)
9snd-sof-y +=	ipc3.o ipc3-loader.o ipc3-topology.o ipc3-control.o ipc3-pcm.o\
10		ipc3-dtrace.o
11endif
12ifneq ($(CONFIG_SND_SOC_SOF_IPC4),)
13snd-sof-y += ipc4.o ipc4-loader.o ipc4-topology.o ipc4-control.o ipc4-pcm.o\
14		ipc4-mtrace.o ipc4-telemetry.o
15endif
16
17# SOF client support
18ifneq ($(CONFIG_SND_SOC_SOF_CLIENT),)
19snd-sof-y += sof-client.o
20endif
21
22snd-sof-$(CONFIG_SND_SOC_SOF_COMPRESS) += compress.o
23
24snd-sof-pci-y := sof-pci-dev.o
25snd-sof-acpi-y := sof-acpi-dev.o
26snd-sof-of-y := sof-of-dev.o
27
28snd-sof-ipc-flood-test-y := sof-client-ipc-flood-test.o
29snd-sof-ipc-msg-injector-y := sof-client-ipc-msg-injector.o
30snd-sof-ipc-kernel-injector-y := sof-client-ipc-kernel-injector.o
31snd-sof-probes-y := sof-client-probes.o
32ifneq ($(CONFIG_SND_SOC_SOF_IPC3),)
33snd-sof-probes-y += sof-client-probes-ipc3.o
34endif
35ifneq ($(CONFIG_SND_SOC_SOF_IPC4),)
36snd-sof-probes-y += sof-client-probes-ipc4.o
37endif
38
39snd-sof-nocodec-y := nocodec.o
40
41snd-sof-utils-y := sof-utils.o
42
43obj-$(CONFIG_SND_SOC_SOF) += snd-sof.o
44obj-$(CONFIG_SND_SOC_SOF_NOCODEC) += snd-sof-nocodec.o
45
46obj-$(CONFIG_SND_SOC_SOF) += snd-sof-utils.o
47
48obj-$(CONFIG_SND_SOC_SOF_ACPI_DEV) += snd-sof-acpi.o
49obj-$(CONFIG_SND_SOC_SOF_OF_DEV) += snd-sof-of.o
50obj-$(CONFIG_SND_SOC_SOF_PCI_DEV) += snd-sof-pci.o
51
52obj-$(CONFIG_SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST) += snd-sof-ipc-flood-test.o
53obj-$(CONFIG_SND_SOC_SOF_DEBUG_IPC_MSG_INJECTOR) += snd-sof-ipc-msg-injector.o
54obj-$(CONFIG_SND_SOC_SOF_DEBUG_IPC_KERNEL_INJECTOR) += snd-sof-ipc-kernel-injector.o
55obj-$(CONFIG_SND_SOC_SOF_DEBUG_PROBES) += snd-sof-probes.o
56
57obj-$(CONFIG_SND_SOC_SOF_INTEL_TOPLEVEL) += intel/
58obj-$(CONFIG_SND_SOC_SOF_IMX_TOPLEVEL) += imx/
59obj-$(CONFIG_SND_SOC_SOF_AMD_TOPLEVEL) += amd/
60obj-$(CONFIG_SND_SOC_SOF_XTENSA) += xtensa/
61obj-$(CONFIG_SND_SOC_SOF_MTK_TOPLEVEL) += mediatek/
62