target_relocation.cmake: fix spell typo
fix spell typo in target_relocation.cmake. Signed-off-by: Wentong Wu <wentong.wu@intel.com>
This commit is contained in:
parent
fa7ce3ff70
commit
be2c937368
1 changed files with 10 additions and 10 deletions
|
@ -3,28 +3,28 @@
|
||||||
# See root CMakeLists.txt for description and expectations of these macros
|
# See root CMakeLists.txt for description and expectations of these macros
|
||||||
|
|
||||||
macro(toolchain_ld_relocation)
|
macro(toolchain_ld_relocation)
|
||||||
set(MEM_RELOCATAION_LD "${PROJECT_BINARY_DIR}/include/generated/linker_relocate.ld")
|
set(MEM_RELOCATION_LD "${PROJECT_BINARY_DIR}/include/generated/linker_relocate.ld")
|
||||||
set(MEM_RELOCATAION_SRAM_DATA_LD
|
set(MEM_RELOCATION_SRAM_DATA_LD
|
||||||
"${PROJECT_BINARY_DIR}/include/generated/linker_sram_data_relocate.ld")
|
"${PROJECT_BINARY_DIR}/include/generated/linker_sram_data_relocate.ld")
|
||||||
set(MEM_RELOCATAION_SRAM_BSS_LD
|
set(MEM_RELOCATION_SRAM_BSS_LD
|
||||||
"${PROJECT_BINARY_DIR}/include/generated/linker_sram_bss_relocate.ld")
|
"${PROJECT_BINARY_DIR}/include/generated/linker_sram_bss_relocate.ld")
|
||||||
set(MEM_RELOCATAION_CODE "${PROJECT_BINARY_DIR}/code_relocation.c")
|
set(MEM_RELOCATION_CODE "${PROJECT_BINARY_DIR}/code_relocation.c")
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${MEM_RELOCATAION_CODE} ${MEM_RELOCATAION_LD}
|
OUTPUT ${MEM_RELOCATION_CODE} ${MEM_RELOCATION_LD}
|
||||||
COMMAND
|
COMMAND
|
||||||
${PYTHON_EXECUTABLE}
|
${PYTHON_EXECUTABLE}
|
||||||
${ZEPHYR_BASE}/scripts/gen_relocate_app.py
|
${ZEPHYR_BASE}/scripts/gen_relocate_app.py
|
||||||
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
|
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
|
||||||
-d ${APPLICATION_BINARY_DIR}
|
-d ${APPLICATION_BINARY_DIR}
|
||||||
-i '$<TARGET_PROPERTY:code_data_relocation_target,COMPILE_DEFINITIONS>'
|
-i '$<TARGET_PROPERTY:code_data_relocation_target,COMPILE_DEFINITIONS>'
|
||||||
-o ${MEM_RELOCATAION_LD}
|
-o ${MEM_RELOCATION_LD}
|
||||||
-s ${MEM_RELOCATAION_SRAM_DATA_LD}
|
-s ${MEM_RELOCATION_SRAM_DATA_LD}
|
||||||
-b ${MEM_RELOCATAION_SRAM_BSS_LD}
|
-b ${MEM_RELOCATION_SRAM_BSS_LD}
|
||||||
-c ${MEM_RELOCATAION_CODE}
|
-c ${MEM_RELOCATION_CODE}
|
||||||
DEPENDS app kernel ${ZEPHYR_LIBS_PROPERTY}
|
DEPENDS app kernel ${ZEPHYR_LIBS_PROPERTY}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(code_relocation_source_lib STATIC ${MEM_RELOCATAION_CODE})
|
add_library(code_relocation_source_lib STATIC ${MEM_RELOCATION_CODE})
|
||||||
target_link_libraries(code_relocation_source_lib zephyr_interface)
|
target_link_libraries(code_relocation_source_lib zephyr_interface)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue