1# Copyright (c) 2018 Foundries.io Ltd 2# 3# SPDX-License-Identifier: Apache-2.0 4 5# Let's rely on `-march` being generated by the CMake script based on which `CONFIG_RISCV_ISA_EXT_*` 6# options are y-selected; provide full arch string with the custom extension otherwise. 7if(CONFIG_SOC_OPENISA_RV32M1_RI5CY AND NOT CONFIG_RISCV_GENERIC_TOOLCHAIN) 8 zephyr_compile_options(-march=rv32imcxpulpv2) 9endif() 10 11zephyr_sources( 12 vector.S 13 soc_irq.S 14 wdog.S 15 soc.c 16) 17 18zephyr_include_directories(.) 19 20zephyr_linker_sources(ROM_START SORT_KEY 0x0vectors vector_table.ld) 21 22set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "") 23