Move functions in .flashprog section into RAMFUNC so that they can be executed from SRAM. Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
17 lines
618 B
CMake
17 lines
618 B
CMake
# Copyright (c) 2023-2025 Analog Devices, Inc.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_include_directories(${ZEPHYR_BASE}/drivers)
|
|
zephyr_include_directories(common)
|
|
zephyr_sources(soc.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS mpu_regions.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_PM power.c)
|
|
zephyr_linker_sources_ifdef(CONFIG_SOC_FLASH_MAX32 RAMFUNC_SECTION flash.ld)
|
|
if(CONFIG_SOC_MAX78000 OR CONFIG_SOC_MAX78002)
|
|
zephyr_linker_sources(SECTIONS max7800x.ld)
|
|
endif()
|
|
|
|
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
|