# Copyright (c) 2021 Telink Semiconductor | |
# SPDX-License-Identifier: Apache-2.0 | |
zephyr_sources( | |
start.S | |
soc_irq.S | |
soc.c | |
) | |
zephyr_include_directories(.) | |
# Force using BFD-LD | |
zephyr_ld_options(-fuse-ld=bfd) | |
# Set compile options | |
zephyr_compile_options_ifdef(CONFIG_TELINK_B91_HWDSP -mext-dsp) | |
zephyr_compile_options_ifndef(CONFIG_RISCV_GP -mno-relax) | |
zephyr_linker_sources(ROM_START SORT_KEY 0x0 init.ld) | |
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "") |