From 522e64742fa16c4d3e7e35b9880dc8d5b11f4403 Mon Sep 17 00:00:00 2001 From: "Dobrowolski, PawelX" Date: Tue, 5 Mar 2024 13:46:21 +0100 Subject: [PATCH] lmdk: adding paths for headers in example module As an example there is a need to show how to include headers Signed-off-by: Dobrowolski, PawelX --- lmdk/modules/dummy/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lmdk/modules/dummy/CMakeLists.txt b/lmdk/modules/dummy/CMakeLists.txt index 1ede12ca1445..b66374eee4be 100644 --- a/lmdk/modules/dummy/CMakeLists.txt +++ b/lmdk/modules/dummy/CMakeLists.txt @@ -4,3 +4,18 @@ target_sources(dummy PRIVATE dummy.c) set_target_properties(dummy PROPERTIES HPSRAM_ADDR "0xa06a1000" ) + +target_compile_definitions(dummy PRIVATE CONFIG_XTENSA=1 + CONFIG_IPC_MAJOR_4=1 + CONFIG_LIBRARY=1 + XCHAL_HAVE_HIFI3=1 + SOF_MODULE_API_PRIVATE=1) + +set(LMDK_DIR_INCLUDE ../../../lmdk/include) + +target_include_directories(dummy PRIVATE "${LMDK_DIR_INCLUDE}" + "${LMDK_DIR_INCLUDE}/src/include" + "${LMDK_DIR_INCLUDE}/src/include/sof/audio/module_adapter/iadk" + "${LMDK_DIR_INCLUDE}/posix/include" + "${LMDK_DIR_INCLUDE}/posix/include/sof" +)