diff --git a/.gitignore b/.gitignore
index 2525d41e..b1b51dd4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
 *~
 /*.patch
 __pycache__
+.config.yaml*
+build/
diff --git a/Kconfig b/Kconfig
new file mode 100644
index 00000000..591fe765
--- /dev/null
+++ b/Kconfig
@@ -0,0 +1,18 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+#
+# Authors:
+#  Uladzimir Bely <ubely@ilbers.de>
+
+mainmenu "Isar configuration"
+
+config KAS_INCLUDE_MAIN
+	string
+	default "kas/isar.yaml"
+
+config KAS_BUILD_SYSTEM
+	string
+	default "isar"
+
+source "kas/distro/Kconfig"
+source "kas/machine/Kconfig"
diff --git a/kas/distro/Kconfig b/kas/distro/Kconfig
new file mode 100644
index 00000000..bd762a98
--- /dev/null
+++ b/kas/distro/Kconfig
@@ -0,0 +1,46 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+#
+# Authors:
+#  Uladzimir Bely <ubely@ilbers.de>
+
+menu "Distro selection"
+
+choice
+	prompt "Distro selection"
+	default DEBIAN_BOOKWORM
+
+config DEBIAN_BUSTER
+	bool "Debian Buster (10)"
+
+config DEBIAN_BULLSEYE
+	bool "Debian Bullseye (11)"
+
+config DEBIAN_BOOKWORM
+	bool "Debian Bookworm (12)"
+
+config DEBIAN_SID_PORTS
+	bool "Debian Sid (unstable) with unofficial ports"
+
+config RASPIOS_BULLSEYE
+  bool "Raspi OS Bullseye (11)"
+
+config UBUNTU_FOCAL
+	bool "Ubuntu Focal (20.04)"
+
+config UBUNTU_JAMMY
+	bool "Ubuntu Jammy (22.04)"
+
+endchoice
+
+config KAS_INCLUDE_DISTRO
+	string
+	default "kas/distro/debian-buster.yaml" if DEBIAN_BUSTER
+	default "kas/distro/debian-bullseye.yaml" if DEBIAN_BULLSEYE
+	default "kas/distro/debian-bookworm.yaml" if DEBIAN_BOOKWORM
+	default "kas/distro/debian-sid-ports.yaml" if DEBIAN_SID_PORTS
+	default "kas/distro/raspios-bullseye.yaml" if RASPIOS_BULLSEYE
+	default "kas/distro/ubuntu-focal.yaml" if UBUNTU_FOCAL
+	default "kas/distro/ubuntu-jammy.yaml" if UBUNTU_JAMMY
+
+endmenu
diff --git a/kas/distro/debian-bookworm.yaml b/kas/distro/debian-bookworm.yaml
new file mode 100644
index 00000000..2178e7d4
--- /dev/null
+++ b/kas/distro/debian-bookworm.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+distro: debian-bookworm
diff --git a/kas/distro/debian-bullseye.yaml b/kas/distro/debian-bullseye.yaml
new file mode 100644
index 00000000..23e286fb
--- /dev/null
+++ b/kas/distro/debian-bullseye.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+distro: debian-bullseye
diff --git a/kas/distro/debian-buster.yaml b/kas/distro/debian-buster.yaml
new file mode 100644
index 00000000..82949a8f
--- /dev/null
+++ b/kas/distro/debian-buster.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+distro: debian-buster
diff --git a/kas/distro/debian-sid-ports.yaml b/kas/distro/debian-sid-ports.yaml
new file mode 100644
index 00000000..52993646
--- /dev/null
+++ b/kas/distro/debian-sid-ports.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+distro: debian-sid-ports
diff --git a/kas/distro/raspios-bullseye.yaml b/kas/distro/raspios-bullseye.yaml
new file mode 100644
index 00000000..9a1e6abe
--- /dev/null
+++ b/kas/distro/raspios-bullseye.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+distro: raspios-bullseye
diff --git a/kas/distro/ubuntu-focal.yaml b/kas/distro/ubuntu-focal.yaml
new file mode 100644
index 00000000..6a68b796
--- /dev/null
+++ b/kas/distro/ubuntu-focal.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+distro: ubuntu-focal
diff --git a/kas/distro/ubuntu-jammy.yaml b/kas/distro/ubuntu-jammy.yaml
new file mode 100644
index 00000000..e6623871
--- /dev/null
+++ b/kas/distro/ubuntu-jammy.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+distro: ubuntu-jammy
diff --git a/kas/isar.yaml b/kas/isar.yaml
new file mode 100644
index 00000000..c8dec31c
--- /dev/null
+++ b/kas/isar.yaml
@@ -0,0 +1,21 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+build_system: isar
+
+target:
+- isar-image-base
+
+repos:
+  isar:
+    layers:
+      meta:
+      meta-isar:
+
+bblayers_conf_header:
+  standard: |
+    BBPATH = "${TOPDIR}"
+    BBFILES ?= ""
diff --git a/kas/machine/Kconfig b/kas/machine/Kconfig
new file mode 100644
index 00000000..f117724c
--- /dev/null
+++ b/kas/machine/Kconfig
@@ -0,0 +1,138 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+#
+# Authors:
+#  Uladzimir Bely <ubely@ilbers.de>
+
+menu "Machine selection"
+
+choice
+	prompt "Machine selection"
+	default MACHINE_QEMU_AMD64
+
+config MACHINE_BANANAPI
+	bool "bananapi"
+	depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+
+config MACHINE_CONTAINER_AMD64
+	bool "container-amd64"
+	depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+
+config MACHINE_DE0_NANO_SOC
+	bool "de0-nano-soc"
+	depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+
+config MACHINE_HIKEY
+	bool "hikey"
+	depends on DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+
+config MACHINE_IMX6_SABRELITE
+	bool "imx6-sabrelite"
+	depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+
+config MACHINE_NANOPI_NEO
+	bool "nanopi-neo"
+	depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+
+config MACHINE_NANOPI_NEO_EFI
+	bool "nanopi-neo-efi"
+	depends on DEBIAN_BOOKWORM
+
+config MACHINE_PHIBOARD_MIRA
+	bool "phyboard-mira"
+	depends on DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+
+config MACHINE_QEMU_AMD64_SB
+	bool "qemuamd64-sb"
+	depends on DEBIAN_BULLSEYE
+
+config MACHINE_QEMU_AMD64
+	bool "qemuamd64"
+	depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || UBUNTU_FOCAL || UBUNTU_JAMMY
+
+config MACHINE_QEMU_ARM
+	bool "qemuarm"
+	depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+
+config MACHINE_QEMU_ARM64
+	bool "qemuarm64"
+	depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || UBUNTU_FOCAL || UBUNTU_JAMMY
+
+config MACHINE_QEMU_I386
+	bool "qemui386"
+	depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+
+config MACHINE_QEMU_MIPSEL
+	bool "qemumipsel"
+	depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+
+config MACHINE_QEMU_RISCV64
+	bool "qemuriscv64"
+	depends on DEBIAN_SID_PORTS
+
+config MACHINE_RPI_ARM_V7
+	bool "rpi-arm-v7"
+	depends on RASPIOS_BULLSEYE
+
+config MACHINE_RPI_ARM_V7L
+	bool "rpi-arm-v7l"
+	depends on RASPIOS_BULLSEYE
+
+config MACHINE_RPI_ARM
+	bool "rpi-arm"
+	depends on RASPIOS_BULLSEYE
+
+config MACHINE_RPI_ARM64_V8
+	bool "rpi-arm64-v8"
+	depends on RASPIOS_BULLSEYE
+
+config MACHINE_SIFIVE_FU540
+	bool "sifive-fu540"
+	depends on DEBIAN_SID_PORTS
+
+config MACHINE_STARFIVE_VISIONFIVE2
+	bool "starfive-visionfive2"
+	depends on DEBIAN_SID_PORTS
+
+config MACHINE_STM32MP15X
+	bool "stm32mp15x"
+	depends on DEBIAN_BULLSEYE || DEBIAN_BOOKWORM
+
+config MACHINE_VIRTUALBOX
+	bool "virtualbox"
+	depends on DEBIAN_BULLSEYE
+
+config MACHINE_VMWARE
+	bool "vmware"
+	depends on DEBIAN_BULLSEYE
+
+endchoice
+
+config KAS_INCLUDE_MACHINE
+	string
+	default "kas/machine/bananapi.yaml" if MACHINE_BANANAPI
+	default "kas/machine/container-amd64.yaml" if MACHINE_CONTAINER_AMD64
+	default "kas/machine/de0-nano-soc.yaml" if MACHINE_DE0_NANO_SOC
+	default "kas/machine/hikey.yaml" if MACHINE_HIKEY
+	default "kas/machine/imx6-sabrelite" if MACHINE_IMX6_SABRELITE
+	default "kas/machine/nanopi-neo" if MACHINE_NANOPI_NEO
+	default "kas/machine/nanopi-neo-efi" if MACHINE_NANOPI_NEO_EFI
+	default "kas/machine/phyboard-mira" if MACHINE_PHIBOARD_MIRA
+	default "kas/machine/qemuamd64-sb.yaml" if MACHINE_QEMU_AMD64_SB
+	default "kas/machine/qemuamd64.yaml" if MACHINE_QEMU_AMD64
+	default "kas/machine/qemuarm.yaml" if MACHINE_QEMU_ARM
+	default "kas/machine/qemuarm64.yaml" if MACHINE_QEMU_ARM64
+	default "kas/machine/qemui386.yaml" if MACHINE_QEMU_I386
+	default "kas/machine/qemumipsel.yaml" if MACHINE_QEMU_MIPSEL
+	default "kas/machine/qemuriscv64.yaml" if MACHINE_QEMU_RISCV64
+	default "kas/machine/rpi-arm-v7.yaml" if MACHINE_RPI_ARM_V7
+	default "kas/machine/rpi-arm-v7l.yaml" if MACHINE_RPI_ARM_V7L
+	default "kas/machine/rpi-arm.yaml" if MACHINE_RPI_ARM
+	default "kas/machine/rpi-arm64-v8.yaml" if MACHINE_RPI_ARM64_V8
+	default "kas/machine/sifive-fu540.yaml" if MACHINE_SIFIVE_FU540
+	default "kas/machine/starfive-visionfive2.yaml" if MACHINE_STARFIVE_VISIONFIVE2
+	default "kas/machine/stm32mp15x.yaml" if MACHINE_STM32MP15X
+	default "kas/machine/virtualbox.yaml" if MACHINE_VIRTUALBOX
+	default "kas/machine/vmware.yaml" if MACHINE_VMWARE
+
+endmenu
diff --git a/kas/machine/bananapi.yaml b/kas/machine/bananapi.yaml
new file mode 100644
index 00000000..53bd3db2
--- /dev/null
+++ b/kas/machine/bananapi.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: bananapi
diff --git a/kas/machine/container-amd64.yaml b/kas/machine/container-amd64.yaml
new file mode 100644
index 00000000..93352c29
--- /dev/null
+++ b/kas/machine/container-amd64.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: container-amd64
diff --git a/kas/machine/de0-nano-soc.yaml b/kas/machine/de0-nano-soc.yaml
new file mode 100644
index 00000000..5dbe6916
--- /dev/null
+++ b/kas/machine/de0-nano-soc.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: de0-nano-soc
diff --git a/kas/machine/hikey.yaml b/kas/machine/hikey.yaml
new file mode 100644
index 00000000..56133afc
--- /dev/null
+++ b/kas/machine/hikey.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: hikey
diff --git a/kas/machine/imx6-sabrelite.yaml b/kas/machine/imx6-sabrelite.yaml
new file mode 100644
index 00000000..466649d5
--- /dev/null
+++ b/kas/machine/imx6-sabrelite.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: imx6-sabrelite
diff --git a/kas/machine/nanopi-neo-efi.yaml b/kas/machine/nanopi-neo-efi.yaml
new file mode 100644
index 00000000..a38e06d7
--- /dev/null
+++ b/kas/machine/nanopi-neo-efi.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: nanopi-neo-efi
diff --git a/kas/machine/nanopi-neo.yaml b/kas/machine/nanopi-neo.yaml
new file mode 100644
index 00000000..7973e5ad
--- /dev/null
+++ b/kas/machine/nanopi-neo.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: nanopi-neo
diff --git a/kas/machine/phyboard-mira.yaml b/kas/machine/phyboard-mira.yaml
new file mode 100644
index 00000000..f2081819
--- /dev/null
+++ b/kas/machine/phyboard-mira.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: phyboard-mira
diff --git a/kas/machine/qemuamd64-sb.yaml b/kas/machine/qemuamd64-sb.yaml
new file mode 100644
index 00000000..f2be984a
--- /dev/null
+++ b/kas/machine/qemuamd64-sb.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: qemuamd64-sb
diff --git a/kas/machine/qemuamd64.yaml b/kas/machine/qemuamd64.yaml
new file mode 100644
index 00000000..cb032e0c
--- /dev/null
+++ b/kas/machine/qemuamd64.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: qemuamd64
diff --git a/kas/machine/qemuarm.yaml b/kas/machine/qemuarm.yaml
new file mode 100644
index 00000000..8aae6bdb
--- /dev/null
+++ b/kas/machine/qemuarm.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: qemuarm
diff --git a/kas/machine/qemuarm64.yaml b/kas/machine/qemuarm64.yaml
new file mode 100644
index 00000000..f965d27b
--- /dev/null
+++ b/kas/machine/qemuarm64.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: qemuarm64
diff --git a/kas/machine/qemui386.yaml b/kas/machine/qemui386.yaml
new file mode 100644
index 00000000..913b419f
--- /dev/null
+++ b/kas/machine/qemui386.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: qemui386
diff --git a/kas/machine/qemumipsel.yaml b/kas/machine/qemumipsel.yaml
new file mode 100644
index 00000000..961fcfe0
--- /dev/null
+++ b/kas/machine/qemumipsel.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: qemumipsel
diff --git a/kas/machine/qemuriscv64.yaml b/kas/machine/qemuriscv64.yaml
new file mode 100644
index 00000000..57fd0980
--- /dev/null
+++ b/kas/machine/qemuriscv64.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: qemuriscv64
diff --git a/kas/machine/rpi-arm-v7.yaml b/kas/machine/rpi-arm-v7.yaml
new file mode 100644
index 00000000..26af1b63
--- /dev/null
+++ b/kas/machine/rpi-arm-v7.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: rpi-arm-v7
diff --git a/kas/machine/rpi-arm-v7l.yaml b/kas/machine/rpi-arm-v7l.yaml
new file mode 100644
index 00000000..86fdd02a
--- /dev/null
+++ b/kas/machine/rpi-arm-v7l.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: rpi-arm-v7l
diff --git a/kas/machine/rpi-arm.yaml b/kas/machine/rpi-arm.yaml
new file mode 100644
index 00000000..3be463e3
--- /dev/null
+++ b/kas/machine/rpi-arm.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: rpi-arm
diff --git a/kas/machine/rpi-arm64-v8.yaml b/kas/machine/rpi-arm64-v8.yaml
new file mode 100644
index 00000000..76b0d42b
--- /dev/null
+++ b/kas/machine/rpi-arm64-v8.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: rpi-arm64-v8
diff --git a/kas/machine/sifive-fu540.yaml b/kas/machine/sifive-fu540.yaml
new file mode 100644
index 00000000..f2bf8a13
--- /dev/null
+++ b/kas/machine/sifive-fu540.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: sifive-fu540
diff --git a/kas/machine/starfive-visionfive2.yaml b/kas/machine/starfive-visionfive2.yaml
new file mode 100644
index 00000000..0837308a
--- /dev/null
+++ b/kas/machine/starfive-visionfive2.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: starfive-visionfive2
diff --git a/kas/machine/stm32mp15x.yaml b/kas/machine/stm32mp15x.yaml
new file mode 100644
index 00000000..9e54c31d
--- /dev/null
+++ b/kas/machine/stm32mp15x.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: stm32mp15x
diff --git a/kas/machine/virtualbox.yaml b/kas/machine/virtualbox.yaml
new file mode 100644
index 00000000..539f3e3b
--- /dev/null
+++ b/kas/machine/virtualbox.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: virtualbox
diff --git a/kas/machine/vmware.yaml b/kas/machine/vmware.yaml
new file mode 100644
index 00000000..6dc49edb
--- /dev/null
+++ b/kas/machine/vmware.yaml
@@ -0,0 +1,7 @@
+# This software is a part of ISAR.
+# Copyright (C) 2023 ilbers GmbH
+
+header:
+  version: 14
+
+machine: vmware
