2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
# Put functions and data in their own binary sections so that ld can
|
|
|
|
# garbage collect them
|
|
|
|
zephyr_cc_option(-ffunction-sections -fdata-sections)
|
|
|
|
|
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_GEN_ISR_TABLES
|
|
|
|
isr_tables.c
|
2018-11-01 07:18:34 +08:00
|
|
|
sw_isr_common.c
|
2017-10-27 21:43:34 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_EXECUTION_BENCHMARKING
|
|
|
|
timing_info_bench.c
|
|
|
|
)
|
2019-03-13 00:15:32 +08:00
|
|
|
|
|
|
|
|
|
|
|
zephyr_linker_sources_ifdef(CONFIG_ARCH_HAS_RAMFUNC_SUPPORT
|
|
|
|
RAM_SECTIONS
|
|
|
|
ramfunc.ld
|
|
|
|
)
|
2019-03-20 20:04:45 +08:00
|
|
|
|
|
|
|
zephyr_linker_sources_ifdef(CONFIG_NOCACHE_MEMORY
|
|
|
|
RAM_SECTIONS
|
|
|
|
nocache.ld
|
|
|
|
)
|