1# 2# Copyright (c) 2020, NXP 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6 7zephyr_include_directories(.) 8 9zephyr_sources(soc.c) 10 11zephyr_sources_ifdef(CONFIG_PM power.c) 12 13zephyr_sources_ifdef(CONFIG_FLASH_MCUX_FLEXSPI_XIP flash_clock_setup.c) 14 15zephyr_library_include_directories( 16 ${ZEPHYR_BASE}/kernel/include 17 ${ZEPHYR_BASE}/arch/${ARCH}/include 18 ) 19 20zephyr_compile_definitions_ifdef(CONFIG_USB_DEVICE_DRIVER USB_STACK_USE_DEDICATED_RAM=1) 21zephyr_compile_definitions_ifdef(CONFIG_UDC_DRIVER USB_STACK_USE_DEDICATED_RAM=1) 22 23if(CONFIG_FLASH_MCUX_FLEXSPI_XIP) 24 zephyr_code_relocate(FILES flash_clock_setup.c LOCATION RAM) 25endif() 26 27set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "") 28