zephyr/soc/riscv/openisa_rv32m1/CMakeLists.txt
Øyvind Rønningstad 8531c7cb44 riscv: linker.ld: Port vector table to zephyr_linker_sources()
Put it in its own linker file snippet.

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
2019-12-20 08:54:53 -05:00

22 lines
489 B
CMake

# Copyright (c) 2018 Foundries.io Ltd
#
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_SOC_OPENISA_RV32M1_RI5CY)
if (CONFIG_RISCV_GENERIC_TOOLCHAIN)
zephyr_compile_options(-march=rv32imc)
else()
zephyr_compile_options(-march=rv32imcxpulpv2)
endif()
elseif(CONFIG_SOC_OPENISA_RV32M1_ZERO_RISCY)
zephyr_compile_options(-march=rv32imc)
endif()
zephyr_sources(
vector.S
soc_irq.S
wdog.S
soc.c
)
zephyr_linker_sources(TEXT_START SORT_KEY 0x0vectors vector_table.ld)