7548a391c5
Follow the Intel example and simplify the Kconfig a) start from the end-product for 'select' chains b) use 'depends on' to filter out configurations. c) use snd-sof-of as a common module without any 'select' Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Link: https://lore.kernel.org/r/20211116124131.46414-1-daniel.baluta@oss.nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
26 lines
831 B
Makefile
26 lines
831 B
Makefile
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
|
|
|
|
snd-sof-objs := core.o ops.o loader.o ipc.o pcm.o pm.o debug.o topology.o\
|
|
control.o trace.o utils.o sof-audio.o stream-ipc.o
|
|
|
|
snd-sof-$(CONFIG_SND_SOC_SOF_DEBUG_PROBES) += sof-probes.o
|
|
snd-sof-$(CONFIG_SND_SOC_SOF_COMPRESS) += compress.o
|
|
|
|
snd-sof-pci-objs := sof-pci-dev.o
|
|
snd-sof-acpi-objs := sof-acpi-dev.o
|
|
snd-sof-of-objs := sof-of-dev.o
|
|
|
|
snd-sof-nocodec-objs := nocodec.o
|
|
|
|
obj-$(CONFIG_SND_SOC_SOF) += snd-sof.o
|
|
obj-$(CONFIG_SND_SOC_SOF_NOCODEC) += snd-sof-nocodec.o
|
|
|
|
|
|
obj-$(CONFIG_SND_SOC_SOF_ACPI_DEV) += snd-sof-acpi.o
|
|
obj-$(CONFIG_SND_SOC_SOF_OF_DEV) += snd-sof-of.o
|
|
obj-$(CONFIG_SND_SOC_SOF_PCI_DEV) += snd-sof-pci.o
|
|
|
|
obj-$(CONFIG_SND_SOC_SOF_INTEL_TOPLEVEL) += intel/
|
|
obj-$(CONFIG_SND_SOC_SOF_IMX_TOPLEVEL) += imx/
|
|
obj-$(CONFIG_SND_SOC_SOF_XTENSA) += xtensa/
|