1# Copyright 2024 NXP
2# SPDX-License-Identifier: Apache-2.0
3
4zephyr_sources_ifdef(CONFIG_MCXC_FLASH_CONFIG	flash_configuration.c)
5
6zephyr_include_directories(.)
7
8zephyr_sources(soc.c)
9
10set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
11
12zephyr_linker_sources_ifdef(CONFIG_MCXC_FLASH_CONFIG
13  ROM_START
14  SORT_KEY ${CONFIG_MCXC_FLASH_CONFIG_OFFSET}
15  flash_config.ld
16  )
17
18# CMSIS SystemInit will disable watchdog unless instructed not to.
19# Add a compiler definition here to leave watchdog untouched
20# if this Kconfig is set
21zephyr_compile_definitions_ifdef(CONFIG_WDOG_ENABLE_AT_BOOT DISABLE_WDOG=0)
22