summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-01-06 20:40:32 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-01-21 18:00:26 -0500
commit05cbe4c3414b655093181ac647d2e7cbb578ba29 (patch)
tree8931cc18ddcc2eac5b1da1ac5b89705796418d01 /recipes-kernel
parent8d03dbbf714c710b42217e877baddd328c219bee (diff)
downloadmeta-virtualization-05cbe4c3414b655093181ac647d2e7cbb578ba29.tar.gz
vcontainer: add kernel config fragments for container support
Add kernel configuration fragments required for vdkr/vpdmn: - 9p.cfg: 9P filesystem for virtio-9p file sharing (volume mounts) - squashfs.cfg: Squashfs and overlayfs for rootfs images Only applied when "vcontainer" is in DISTRO_FEATURES. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/files/9p.cfg5
-rw-r--r--recipes-kernel/linux/files/squashfs.cfg5
-rw-r--r--recipes-kernel/linux/linux-yocto_%.bbappend13
3 files changed, 23 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/9p.cfg b/recipes-kernel/linux/files/9p.cfg
new file mode 100644
index 00000000..bd5a74f1
--- /dev/null
+++ b/recipes-kernel/linux/files/9p.cfg
@@ -0,0 +1,5 @@
1# 9P filesystem support for virtio-9p file sharing
2CONFIG_NET_9P=y
3CONFIG_NET_9P_VIRTIO=y
4CONFIG_9P_FS=y
5CONFIG_9P_FS_POSIX_ACL=y
diff --git a/recipes-kernel/linux/files/squashfs.cfg b/recipes-kernel/linux/files/squashfs.cfg
new file mode 100644
index 00000000..f67fadcd
--- /dev/null
+++ b/recipes-kernel/linux/files/squashfs.cfg
@@ -0,0 +1,5 @@
1# Squashfs and overlayfs support for vdkr/vpdmn rootfs images
2CONFIG_SQUASHFS=y
3CONFIG_SQUASHFS_XZ=y
4CONFIG_SQUASHFS_ZSTD=y
5CONFIG_OVERLAY_FS=y
diff --git a/recipes-kernel/linux/linux-yocto_%.bbappend b/recipes-kernel/linux/linux-yocto_%.bbappend
new file mode 100644
index 00000000..b6af23a7
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto_%.bbappend
@@ -0,0 +1,13 @@
1# SPDX-FileCopyrightText: Copyright (C) 2025 Bruce Ashfield
2#
3# SPDX-License-Identifier: MIT
4#
5# Kernel config fragments for vdkr/vpdmn:
6# - 9P filesystem for virtio-9p file sharing (volume mounts)
7# - Squashfs and overlayfs for rootfs images
8#
9# Only applied when "vcontainer" is in DISTRO_FEATURES.
10
11FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
12
13SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'vcontainer', 'file://9p.cfg file://squashfs.cfg', '', d)}"