[v4,07/13] kas: Add ccache option

Message ID 20230922091003.20763-8-ubely@ilbers.de
State Superseded, archived
Headers show
Series Support building Isar using kas | expand

Commit Message

Uladzimir Bely Sept. 22, 2023, 9:09 a.m. UTC
This adds an option to the menu that allows to enable or disable
ccache support for the build.

The option is enabled by default.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>

ccache
---
 kas/opt/Kconfig     | 10 ++++++++++
 kas/opt/ccache.yaml |  9 +++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 kas/opt/ccache.yaml

Patch

diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
index 76a00d6a..0bf6dfe8 100644
--- a/kas/opt/Kconfig
+++ b/kas/opt/Kconfig
@@ -59,3 +59,13 @@  config KAS_INCLUDE_ISAR_CROSS_COMPILE
 	string
 	default "kas/opt/crosscompile.yaml"
 	depends on ISAR_CROSS_COMPILE
+
+
+config USE_CCACHE
+	bool "Use ccache during build"
+	default y
+
+config KAS_INCLUDE_USE_CCACHE
+	string
+	default "kas/opt/ccache.yaml"
+	depends on USE_CCACHE
diff --git a/kas/opt/ccache.yaml b/kas/opt/ccache.yaml
new file mode 100644
index 00000000..143c080e
--- /dev/null
+++ b/kas/opt/ccache.yaml
@@ -0,0 +1,9 @@ 
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+local_conf_header:
+  ccache: |
+    USE_CCACHE = "1"