From c36f2ee0779b9e68501004f8240b628ea0236df3 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Tue, 18 Feb 2020 14:25:57 +0100 Subject: [PATCH] cpu/Kconfig: Declare common CPU symbols The symbols used to define a CPU are: - CPU - CPU_MODEL - CPU_FAMILY - CPU_ARCH --- Kconfig | 1 + cpu/Kconfig | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 cpu/Kconfig diff --git a/Kconfig b/Kconfig index e23c781cfd..802c3bd69d 100644 --- a/Kconfig +++ b/Kconfig @@ -14,6 +14,7 @@ orsource "$(RIOTBOARD)/$(BOARD)/Kconfig" orsource "$(RIOTCPU)/$(CPU)/Kconfig" rsource "$(RIOTBOARD)/Kconfig" +rsource "$(RIOTCPU)/Kconfig" # The application may declare new symbols as well osource "$(APPDIR)/Kconfig" diff --git a/cpu/Kconfig b/cpu/Kconfig new file mode 100644 index 0000000000..6068345157 --- /dev/null +++ b/cpu/Kconfig @@ -0,0 +1,48 @@ +# Copyright (c) 2020 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# +# +-----------+ +# | CPU_MODEL | +# +-----------+ +# || selects +# \/ +# +------------+ +# | CPU_SERIES | +# +------------+ +# || selects +# \/ +# +------------+ +# | CPU_FAMILY | +# +------------+ +# || selects +# \/ +# +----------+ +# | CPU_ARCH | +# +----------+ +config CPU + string + help + Name of the currently selected CPU. + +config CPU_MODEL + string + help + Model of the currently selected CPU. + +config CPU_SERIES + string + help + Series of the currently selected CPU. + +config CPU_FAMILY + string + help + Family of the currently selected CPU. + +config CPU_ARCH + string + help + Architecture of the currently selected CPU.