From 645cb04c4dc5fad7692290d6a0126cb8464edde0 Mon Sep 17 00:00:00 2001 From: Karl Fessel Date: Wed, 22 Sep 2021 13:02:19 +0200 Subject: [PATCH] cpu/riscv,gd32v: add CPU_ARCH, CPU_CORE information adds CPU_ARCH to riscv_common preparing to handle it like cortex-m does adds CPU_CORE to gd32v --- cpu/gd32v/Makefile.features | 2 ++ cpu/riscv_common/Makefile.features | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/cpu/gd32v/Makefile.features b/cpu/gd32v/Makefile.features index 3090c73568..7dd18287e6 100644 --- a/cpu/gd32v/Makefile.features +++ b/cpu/gd32v/Makefile.features @@ -1,3 +1,5 @@ +CPU_CORE := rv32imac + FEATURES_PROVIDED += periph_clic FEATURES_PROVIDED += periph_gpio FEATURES_PROVIDED += periph_timer diff --git a/cpu/riscv_common/Makefile.features b/cpu/riscv_common/Makefile.features index ef3f9e470f..30a1b8a5f6 100644 --- a/cpu/riscv_common/Makefile.features +++ b/cpu/riscv_common/Makefile.features @@ -1,3 +1,7 @@ +ifeq ($(findstring rv32,$(CPU_CORE)),rv32) + CPU_ARCH := rv32 +endif + FEATURES_PROVIDED += arch_32bit FEATURES_PROVIDED += arch_riscv FEATURES_PROVIDED += cpp