Skip to content

Commit

Permalink
smart-amp-test: add toml preprocessing when modular
Browse files Browse the repository at this point in the history
When building smart-amp-test as a module, we also need to
preprocess its TOML configuration file. Add it to cmake.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
  • Loading branch information
lyakh committed Apr 29, 2024
1 parent a64dcf6 commit fa142ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/samples/audio/smart_amp_test_llext/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ target_link_options(${MODULE} PRIVATE

add_custom_command(OUTPUT lib${MODULE}_out.so
DEPENDS ${MODULE}
COMMAND ${CMAKE_C_COMPILER} -E ${CMAKE_CURRENT_LIST_DIR}/llext.toml.h -P -DREM=
-I${SOF_BASE} -I${SOF_BASE}src
-imacros ../include/generated/autoconf.h
-o rimage_config.toml
COMMAND ${SOF_BASE}scripts/llext_link_helper.py
-f lib${MODULE}.so -t "0xa06ca000" ${CMAKE_C_COMPILER} --
${MODULE_LINKER_PARAMS} ${EXTRA_LINKER_PARAMS} -fPIC
Expand Down

0 comments on commit fa142ec

Please sign in to comment.