summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/Makefile
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>2022-02-14 09:13:30 +0200
committerMark Brown <broonie@kernel.org>2022-02-14 18:30:51 +0000
commit4965e38fa064056021254af4656b1089a42dc764 (patch)
tree70022e56dd0804d320027a88cc96b1b608983024 /sound/soc/sof/Makefile
parent0191899db468ec442bdaa7ad944085ca9ac614e8 (diff)
downloadlinux-4965e38fa064056021254af4656b1089a42dc764.tar.gz
linux-4965e38fa064056021254af4656b1089a42dc764.tar.bz2
linux-4965e38fa064056021254af4656b1089a42dc764.zip
ASoC: SOF: Makefile: Fix randconfig sof-client build when SND_SOC_SOF=y
Intel's kernel test robot found the following randconfig combination: SND_SOC_SOF=y SND_SOC_SOF_CLIENT=m In this the sof-client object is not going to be built into the snd-sof.o and we will have undefined references to the sof-client functions. Fixes: 6955d9512d0e ("ASoC: SOF: Introduce IPC SOF client support") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Peter Ujfalusi <Peter Ujfalusi <peter.ujfalusi@linux.intel.com>> Link: https://lore.kernel.org/r/20220214071330.22151-1-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/Makefile')
-rw-r--r--sound/soc/sof/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/sof/Makefile b/sound/soc/sof/Makefile
index 4d31282c847d..a0459f06c68a 100644
--- a/sound/soc/sof/Makefile
+++ b/sound/soc/sof/Makefile
@@ -2,7 +2,9 @@
snd-sof-objs := core.o ops.o loader.o ipc.o pcm.o pm.o debug.o topology.o\
control.o trace.o iomem-utils.o sof-audio.o stream-ipc.o
-snd-sof-$(CONFIG_SND_SOC_SOF_CLIENT) += sof-client.o
+ifneq ($(CONFIG_SND_SOC_SOF_CLIENT),)
+snd-sof-objs += sof-client.o
+endif
snd-sof-$(CONFIG_SND_SOC_SOF_COMPRESS) += compress.o