diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cafb26c905e..bf59ef084fcf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,7 +57,6 @@ set(CMAKE_ASM_FLAGS -DASSEMBLY) add_library(sof_public_headers INTERFACE) target_include_directories(sof_public_headers INTERFACE ${PROJECT_SOURCE_DIR}/src/include) -target_include_directories(sof_public_headers INTERFACE ${PROJECT_SOURCE_DIR}/rimage/src/include) # interface library that is used only as container for sof binary options # other targets can use it to build with the same options diff --git a/src/arch/xtensa/CMakeLists.txt b/src/arch/xtensa/CMakeLists.txt index b13696152ecd..97e63aa5f72b 100644 --- a/src/arch/xtensa/CMakeLists.txt +++ b/src/arch/xtensa/CMakeLists.txt @@ -263,6 +263,11 @@ if(build_bootloader) add_dependencies(boot_module rimage_ep) add_dependencies(base_module rimage_ep) + target_include_directories(bootloader PRIVATE ${PROJECT_SOURCE_DIR}/rimage/src/include) + target_include_directories(boot_module PRIVATE ${PROJECT_SOURCE_DIR}/rimage/src/include) + target_include_directories(base_module PRIVATE ${PROJECT_SOURCE_DIR}/rimage/src/include) + + target_link_libraries(bootloader PRIVATE sof_options) add_local_sources(bootloader xtos/_vectors.S ${PROJECT_SOURCE_DIR}/src/platform/${family_path}/boot_entry.S ${PROJECT_SOURCE_DIR}/src/platform/${family_path}/boot_loader.c) target_link_libraries(bootloader PRIVATE reset)