tests: application_development: code_relocation: Add absolute paths

Adds some absolute paths to check that the feature is working
correctly.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2023-07-04 12:49:06 +01:00 committed by Carles Cufí
commit ff8c78154f
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ endif()
# Code relocation feature
zephyr_code_relocate(FILES src/test_file1.c ${SRAM2_PHDR} LOCATION SRAM2)
zephyr_code_relocate(FILES src/test_file2.c ${RAM_PHDR} LOCATION RAM)
zephyr_code_relocate(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/test_file2.c ${RAM_PHDR} LOCATION RAM)
# Add custom library that we can relocate code for
add_subdirectory(test_lib)

View file

@ -2,7 +2,7 @@
# Copyright 2022 NXP
add_library(test_lib STATIC "")
target_sources(test_lib PRIVATE test_lib1.c test_lib2.c)
target_sources(test_lib PRIVATE test_lib1.c ${CMAKE_CURRENT_SOURCE_DIR}/test_lib2.c)
get_target_property(include_dirs app INCLUDE_DIRECTORIES)
target_link_libraries(test_lib PUBLIC zephyr_interface)
add_dependencies(test_lib zephyr_generated_headers)