[v5,10/13] kas: Support CACHE_DEB_SRC option in menu

Message ID 20230926053742.11352-11-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 allows user to select this option in the menu.

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

Patch

diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
index 5f14af43..05a1191f 100644
--- a/kas/opt/Kconfig
+++ b/kas/opt/Kconfig
@@ -94,3 +94,15 @@  config KAS_INCLUDE_USE_CCACHE
 	string
 	default "kas/opt/ccache.yaml"
 	depends on USE_CCACHE
+
+
+config CACHE_DEB_SRC
+	bool "Cache all source packages"
+	help
+	  This feature allows to download srcpackages for any binary package that
+	  took part in the build (including ones downloaded from distro mirrors).
+
+config KAS_INCLUDE_CACHE_DEB_SRC
+	string
+	default "kas/opt/cache-deb-src.yaml"
+	depends on CACHE_DEB_SRC
diff --git a/kas/opt/cache-deb-src.yaml b/kas/opt/cache-deb-src.yaml
new file mode 100644
index 00000000..6a170cd9
--- /dev/null
+++ b/kas/opt/cache-deb-src.yaml
@@ -0,0 +1,9 @@ 
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+local_conf_header:
+  cache-deb-src: |
+    BASE_REPO_FEATURES:append = " cache-deb-src"