[v5,09/13] kas: Add IMAGE_FSTYPES selection

Message ID 20230926053742.11352-10-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 makes possible to adjust IMAGE_FSTYPES variable.

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

Patch

diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
index 981571f6..5f14af43 100644
--- a/kas/opt/Kconfig
+++ b/kas/opt/Kconfig
@@ -43,6 +43,30 @@  config KAS_INCLUDE_MIRROR_UBUNTU
 endmenu
 
 
+config KAS_IMAGE_FSTYPES
+	string "Additional image fstypes"
+	default ""
+	help
+	  Space-separated list of additional image fstypes to generate. Default
+	  machine configurations set up IMAGE_FSTYPES variable, but it's possible
+	  to select additonal ones to generate.
+	  The following IMAGE_FSTYPES are supported:
+	    cpio
+	    fit
+	    docker-archive
+	    ext4
+	    ova
+	    tar
+	    ubi
+	    ubifs
+	    wic
+	  They can be followed by suffixes like ".gz" for compressing the image
+
+config KAS_INCLUDE_IMAGE_FSTYPES
+	string
+	default "kas/opt/image-fstypes.yaml"
+
+
 config COMPAT_ARCH
 	bool "Enable compat arch support"
 
diff --git a/kas/opt/image-fstypes.yaml b/kas/opt/image-fstypes.yaml
new file mode 100644
index 00000000..f0658cbf
--- /dev/null
+++ b/kas/opt/image-fstypes.yaml
@@ -0,0 +1,9 @@ 
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+local_conf_header:
+  image-fstypes: |
+    IMAGE_FSTYPES:append = " ${KAS_IMAGE_FSTYPES}"