summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)}"