1#
2# Copyright 2024 NXP
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7zephyr_sources(soc.c)
8
9if(CONFIG_SOC_MIMXRT1189_CM33)
10  zephyr_sources(m33/mpu_regions.c)
11  zephyr_linker_sources(DTCM_SECTION m33/dtcm.ld)
12endif()
13
14zephyr_include_directories(.)
15
16if(CONFIG_MEMC_MCUX_FLEXSPI)
17  zephyr_sources(flexspi.c)
18  if(CONFIG_FLASH_MCUX_FLEXSPI_XIP)
19    zephyr_code_relocate(FILES flexspi.c LOCATION ${CONFIG_FLASH_MCUX_FLEXSPI_XIP_MEM}_TEXT)
20  endif()
21endif()
22
23set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")
24