1# Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved.
2# SPDX-License-Identifier: Apache-2.0
3if(CONFIG_SOC_FVP_AEMV8R_AARCH64)
4  zephyr_library_sources(aarch64/soc.c)
5  zephyr_library_sources_ifdef(CONFIG_ARM_MPU aarch64/arm_mpu_regions.c)
6
7  set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm64/scripts/linker.ld CACHE INTERNAL "")
8elseif(CONFIG_SOC_FVP_AEMV8R_AARCH32)
9  zephyr_library_sources_ifdef(CONFIG_ARM_MPU aarch32/arm_mpu_regions.c)
10  zephyr_library_sources(aarch32/soc.c)
11  zephyr_include_directories(aarch32)
12
13  set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_a_r/scripts/linker.ld CACHE INTERNAL "")
14endif()
15