[v5,05/13] kas: Add COMPAT_ARCH support

Message ID 20230926053742.11352-6-ubely@ilbers.de
State Accepted, archived
Headers show
Series Support building Isar using kas | expand

Commit Message

Uladzimir Bely Sept. 26, 2023, 5:37 a.m. UTC
This adds an option to the menu that can enable or disable
COMPAT_ARCH support for amd64 and arm64 architectures.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 kas/opt/Kconfig          |  9 +++++++++
 kas/opt/compat-arch.yaml | 10 ++++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 kas/opt/compat-arch.yaml

Patch

diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
index 22661bc3..d7bf5ea2 100644
--- a/kas/opt/Kconfig
+++ b/kas/opt/Kconfig
@@ -41,3 +41,12 @@  config KAS_INCLUDE_MIRROR_UBUNTU
 	depends on MIRROR_UBUNTU
 
 endmenu
+
+
+config COMPAT_ARCH
+	bool "Enable compat arch support"
+
+config KAS_INCLUDE_COMPAT_ARCH
+	string
+	default "kas/opt/compat-arch.yaml"
+	depends on COMPAT_ARCH
diff --git a/kas/opt/compat-arch.yaml b/kas/opt/compat-arch.yaml
new file mode 100644
index 00000000..520bc705
--- /dev/null
+++ b/kas/opt/compat-arch.yaml
@@ -0,0 +1,10 @@ 
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+local_conf_header:
+  compat-arch: |
+    ISAR_ENABLE_COMPAT_ARCH_amd64 = "1"
+    ISAR_ENABLE_COMPAT_ARCH_arm64 = "1"