Skip to content

Commit 9dfc213

Browse files
committed
cmake/zephyr: move auxiliary modules like math earlier in build rules
Split the build directory listing into two. First introduce directories that add auxiliary modules to the build. These directories provide modules that may be used by other modules. Then a second list for all other directories. This split avoids dependency issues with llext modules that require auxiliary modules to be introduced first. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 9392160 commit 9dfc213

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

zephyr/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,17 @@ macro(sof_list_append_ifdef feature_toggle list)
203203
endif()
204204
endmacro()
205205

206+
# directories with auxiliary modules need to be listed first
207+
# - llext dependencies need to added to linkage first
208+
add_subdirectory(../src/math/ math_unused_install/)
209+
210+
# remaining directories (in alphabetical order)
206211
add_subdirectory(../src/audio/ audio_unused_install/)
207212
add_subdirectory(../src/debug/debug_stream/ debug_stream_unused_install/)
208213
add_subdirectory(../src/debug/telemetry/ telemetry_unused_install/)
209214
add_subdirectory(../src/debug/tester/ debug_tester_unused_install/)
210215
add_subdirectory(../src/init/ init_unused_install/)
211216
add_subdirectory(../src/ipc/ ipc_unused_install/)
212-
add_subdirectory(../src/math/ math_unused_install/)
213217
add_subdirectory(../src/schedule/ schedule_unused_install/)
214218
add_subdirectory(test/)
215219

0 commit comments

Comments
 (0)