Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Few LMDK fixes #9311

Merged
merged 3 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lmdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
To build dummy loadable library execute:

cd libraries/dummy
cmake -B build -G <Ninja/Makefile> -DRIMAGE_INSTALL_DIR="path/where/rimage/executable/is" -DSNIGNING_KEY="path/to/key"
cmake -B build -G <Ninja/Makefile> -DRIMAGE_INSTALL_DIR="path/where/rimage/executable/is" -DSIGNING_KEY="path/to/key"
cd --build build


Expand All @@ -14,4 +14,4 @@ signing key for rimage. If RIMAGE_INSTALL_DIR is not provided, rimage will be se
where SOF project installs it. Dummy module sets up toolchain file in the project file.
However, in your library you can select toolchain file in the configure step command:

cmake -B build -G <Ninja/Makefile> --toolchain "../../cmake/xtensa-toolchain.cmake" -DSNIGNING_KEY="path/to/key"
cmake -B build -G <Ninja/Makefile> --toolchain "../../cmake/xtensa-toolchain.cmake" -DSIGNING_KEY="path/to/key"
4 changes: 2 additions & 2 deletions lmdk/cmake/ldscripts/data_linker_script.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SECTIONS {
} >HPSRAM_seg : rodata_phdr

/* Module manifest is here */
.module 0 : {
.module : {
KEEP(*(.module))
}
} >HPSRAM_seg : rodata_phdr
}
5 changes: 4 additions & 1 deletion lmdk/modules/smart_amp_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ target_compile_definitions(smart_amp_test PRIVATE
CONFIG_IPC_MAJOR_4=1
)

target_include_directories(smart_amp_test PRIVATE "${SOF_BASE}/src/include")
target_include_directories(smart_amp_test PRIVATE
"${SOF_BASE}/src/include"
"${SOF_BASE}/posix/include"
)
2 changes: 1 addition & 1 deletion src/samples/audio/smart_amp_test_ipc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// Author: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>

#ifndef __SOF_MODULE_SERVICE_BUILD__
#include <sof/compiler_attributes.h>
#include <sof/audio/module_adapter/module/generic.h>
#include <sof/audio/ipc-config.h>
#include <sof/trace/trace.h>
Expand Down Expand Up @@ -38,6 +37,7 @@ DECLARE_TR_CTX(smart_amp_test_comp_tr, SOF_UUID(smart_amp_test_uuid),
#include <ipc4/module.h>
#include <sof/math/numbers.h>
#endif
#include <sof/compiler_attributes.h>
#include <sof/samples/audio/smart_amp_test.h>
#include <module/module/api_ver.h>
#include <rimage/sof/user/manifest.h>
Expand Down