target_configure.cmake 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # SPDX-License-Identifier: Apache-2.0
  2. # See root CMakeLists.txt for description and expectations of these macros
  3. macro(toolchain_ld_configure_files)
  4. configure_file(
  5. ${ZEPHYR_BASE}/include/arch/common/app_data_alignment.ld
  6. ${PROJECT_BINARY_DIR}/include/generated/app_data_alignment.ld)
  7. configure_file(
  8. ${ZEPHYR_BASE}/include/linker/app_smem.ld
  9. ${PROJECT_BINARY_DIR}/include/generated/app_smem.ld)
  10. configure_file(
  11. ${ZEPHYR_BASE}/include/linker/app_smem_aligned.ld
  12. ${PROJECT_BINARY_DIR}/include/generated/app_smem_aligned.ld)
  13. configure_file(
  14. ${ZEPHYR_BASE}/include/linker/app_smem_unaligned.ld
  15. ${PROJECT_BINARY_DIR}/include/generated/app_smem_unaligned.ld)
  16. if(CONFIG_LINKER_USE_PINNED_SECTION)
  17. configure_file(
  18. ${ZEPHYR_BASE}/include/linker/app_smem_pinned.ld
  19. ${PROJECT_BINARY_DIR}/include/generated/app_smem_pinned.ld)
  20. configure_file(
  21. ${ZEPHYR_BASE}/include/linker/app_smem_pinned_aligned.ld
  22. ${PROJECT_BINARY_DIR}/include/generated/app_smem_pinned_aligned.ld)
  23. configure_file(
  24. ${ZEPHYR_BASE}/include/linker/app_smem_pinned_unaligned.ld
  25. ${PROJECT_BINARY_DIR}/include/generated/app_smem_pinned_unaligned.ld)
  26. endif()
  27. endmacro()