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