File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed
Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ elseif(CONFIG_IPC_MAJOR_4)
66 set (mixer_src mixin_mixout/mixin_mixout.c mixin_mixout/mixin_mixout_generic.c mixin_mixout/mixin_mixout_hifi3.c)
77endif ()
88
9- if (( NOT CONFIG_LIBRARY) OR CONFIG_LIBRARY_STATIC )
9+ if (NOT CONFIG_COMP_HOST_MODULES_SO )
1010 add_local_sources(sof
1111 host-legacy.c
1212 component .c
@@ -17,6 +17,7 @@ if((NOT CONFIG_LIBRARY) OR CONFIG_LIBRARY_STATIC)
1717 audio_stream.c
1818 channel_map.c
1919 )
20+
2021 if (CONFIG_COMP_BLOB)
2122 add_local_sources(sof data_blob.c)
2223 endif ()
@@ -62,7 +63,7 @@ if((NOT CONFIG_LIBRARY) OR CONFIG_LIBRARY_STATIC)
6263 dai-legacy.c
6364 )
6465 endif ()
65- if (CONFIG_COMP_KPB)
66+ if (CONFIG_COMP_KPB AND NOT CONFIG_LIBRARY_STATIC )
6667 add_local_sources(sof
6768 kpb.c
6869 )
@@ -89,7 +90,7 @@ if((NOT CONFIG_LIBRARY) OR CONFIG_LIBRARY_STATIC)
8990 if (CONFIG_COMP_RTNR)
9091 add_subdirectory (rtnr)
9192 endif ()
92- if (CONFIG_COMP_BASEFW_IPC4)
93+ if (CONFIG_COMP_BASEFW_IPC4 AND NOT CONFIG_LIBRARY )
9394 add_local_sources(sof
9495 base_fw.c
9596 )
@@ -125,6 +126,11 @@ add_local_sources(sof
125126 component .c
126127 data_blob.c
127128 buffer.c
129+ source_api_helper.c
130+ sink_api_helper.c
131+ sink_source_utils.c
132+ audio_stream.c
133+ channel_map.c
128134)
129135
130136# Audio Modules with various optimizaitons
Original file line number Diff line number Diff line change @@ -684,4 +684,12 @@ config WRAP_ACTUAL_POSITION
684684 It is not necessary that on wrap, the buffer position would be zero.At wrap,
685685 in some cases based on the period size, the frame may not exactly be at the
686686 end of the buffer and roll over for some bytes from the beginning of the buffer.
687+
688+ config COMP_HOST_MODULES_SO
689+ bool "Build modules as shared objects"
690+ default n
691+ help
692+ Select if you want to build modules as shared objects that can be used to run
693+ pipelines on the host with the testbench or the ALSA plugin.
694+
687695endmenu
Original file line number Diff line number Diff line change 33
44add_local_sources(sof module_adapter.c module/generic.c)
55
6- if ((NOT CONFIG_LIBRARY) OR CONFIG_LIBRARY_STATIC)
6+ if (NOT CONFIG_COMP_HOST_MODULES_SO)
7+
78 if (CONFIG_CADENCE_CODEC)
89 add_local_sources(sof module/cadence.c)
910
You can’t perform that action at this time.
0 commit comments