From d4afff0112647ae99c30249579dd94a569a048d4 Mon Sep 17 00:00:00 2001 From: Curtis Malainey Date: Wed, 12 Jul 2023 17:13:27 -0700 Subject: [PATCH] audio: Kconfig: Add toplevel stub switch Now that we have the ability to do a posix builds we can start working towards a "make allyesconfig" equivalent. One limitation though is that we cannot build what we don't have, in this case 3P blocks. This commit adds a toplevel config for 3P adapters to switch to a stub file so they can still have their builds validated. These will also be eventually enabled in the fuzzers. Signed-off-by: Curtis Malainey --- src/audio/Kconfig | 7 +++++++ src/audio/google/Kconfig | 1 + 2 files changed, 8 insertions(+) diff --git a/src/audio/Kconfig b/src/audio/Kconfig index ac9863d68..46b2d85a5 100644 --- a/src/audio/Kconfig +++ b/src/audio/Kconfig @@ -114,6 +114,13 @@ config COMP_SRC help Select for SRC component +config COMP_STUBS + bool "Build all selected third-party (3P) components with stubs" + default n + help + Select to force all 3P blocks to link against stubs rather than their libraries. This + should only be used in testing environments like fuzzers or CI. + if COMP_SRC choice diff --git a/src/audio/google/Kconfig b/src/audio/google/Kconfig index 664eb27ec..027e15a2c 100644 --- a/src/audio/google/Kconfig +++ b/src/audio/google/Kconfig @@ -15,6 +15,7 @@ config COMP_GOOGLE_HOTWORD_DETECT config COMP_GOOGLE_RTC_AUDIO_PROCESSING bool "Google Real Time Communication Audio processing" select COMP_BLOB + select GOOGLE_RTC_AUDIO_PROCESSING_MOCK if COMP_STUBS default n help Select for Google real-time communication audio processing. It