Skip to contentSkip to conversation

ASoC: SOF: Makefile: Fix randconfig sof-client build when SND_SOC_SOF=y

PATCH Superseded Peter Ujfalusi 1 participant 1 message Feb 14, 2022

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Peter Ujfalusi

author maintainer
#0 lore raw

PATCH 1/1 ASoC: SOF: Makefile: Fix randconfig sof-client build when SND_SOC_SOF=y

From: Peter Ujfalusi <[email protected]>

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")

---
Hi Mark, Pierre,

When the client support was added we did some permutation tests (at least I did) but missed this combination.
It is a valid one for sure and the proper fix is via the Makefile.

Sorry for mising this

Regards,
Peter

 sound/soc/sof/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
sound/soc/sof/Makefile +3 -1
index 4d31282c847d..a0459f06c68a 100644
@@ -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
 
Signature · 1 line
2.35.1