[v5,06/13] kas: Add cross compilation mode selection support

Message ID 20230926053742.11352-7-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 allows to enable support
of cross-compilation via ISAR_CROSS_COMPILE variable.

The option is enabled by default.

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

Patch

diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
index d7bf5ea2..f5e6e6dd 100644
--- a/kas/opt/Kconfig
+++ b/kas/opt/Kconfig
@@ -50,3 +50,13 @@  config KAS_INCLUDE_COMPAT_ARCH
 	string
 	default "kas/opt/compat-arch.yaml"
 	depends on COMPAT_ARCH
+
+
+config ISAR_CROSS_COMPILE
+	bool "Enable cross compilation mode"
+	default y
+
+config KAS_INCLUDE_ISAR_CROSS_COMPILE
+	string
+	default "kas/opt/crosscompile.yaml"
+	depends on ISAR_CROSS_COMPILE
diff --git a/kas/opt/crosscompile.yaml b/kas/opt/crosscompile.yaml
new file mode 100644
index 00000000..1b927ebd
--- /dev/null
+++ b/kas/opt/crosscompile.yaml
@@ -0,0 +1,9 @@ 
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+local_conf_header:
+  crosscompile: |
+    ISAR_CROSS_COMPILE = "1"