diff mbox series

[isar-cip-core,02/12] Kconfig: Introduce hidden ARCH configs

Message ID 07ca042a6ed268bd2b6b139f6e4533f0ac19a876.1664902098.git.jan.kiszka@siemens.com (mailing list archive)
State Handled Elsewhere
Headers show
Series Add qemu-riscv64 target, refactorings, kernel updates, CI fix | expand

Commit Message

Jan Kiszka Oct. 4, 2022, 4:48 p.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

Those will allow to model architecture dependencies. No functional
changes yet.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 Kconfig | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
diff mbox series

Patch

diff --git a/Kconfig b/Kconfig
index d87e0a6d..561bd9a8 100644
--- a/Kconfig
+++ b/Kconfig
@@ -1,3 +1,14 @@ 
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2021-2022
+#
+# Authors:
+#  Jan Kiszka <jan.kiszka@siemens.com>
+#
+# SPDX-License-Identifier: MIT
+#
+
 mainmenu "Isar core layer of the Civil Infrastructure Platform project"
 
 config KAS_INCLUDE_MAIN
@@ -8,30 +19,49 @@  config KAS_BUILD_SYSTEM
 	string
 	default "isar"
 
+config ARCH_AMD64
+	bool
+
+config ARCH_ARM64
+	bool
+
+config ARCH_ARM
+	bool
+
+config ARCH_RISCV64
+	bool
+
 choice
 	prompt "Target board"
 	default TARGET_QEMU_AMD64
 
 config TARGET_QEMU_AMD64
 	bool "QEMU AMD64 (x86-64)"
+	select ARCH_AMD64
 
 config TARGET_SIMATIC_IPC227E
 	bool "Siemens SIMATIC IPC227E"
+	select ARCH_AMD64
 
 config TARGET_QEMU_ARM64
 	bool "QEMU ARM64 (aarch64)"
+	select ARCH_ARM64
 
 config TARGET_HIHOPE_RZG2M
 	bool "HopeRun HiHope-RZ/G2M"
+	select ARCH_ARM64
 
 config TARGET_QEMU_ARM
 	bool "QEMU ARM (armhf)"
+	select ARCH_ARM
 
 config TARGET_BBB
 	bool "BeagleBone Black"
+	select ARCH_ARM
 
 config TARGET_IWG20D
 	bool "iWave Systems RainboW-G20D-Qseven"
+	select ARCH_ARM
 
 endchoice