From fab67caa696833af3799ceea4a632546115580a8 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 21 Jun 2024 10:41:19 +0200 Subject: [PATCH] linux: package qemu-fw-cfg driver Add the necessary definitions to package the kernel module for QEMU firmware configuration (fw_cfg) entries. This module exposes parameters passed via the QEMU `-fw_cfg` command line option to the guest system within the `/sys/firmware/qemu_fw_cfg/` directory in a similar fashion to UEFI variables in sysfs. Signed-off-by: Jo-Philipp Wich --- package/kernel/linux/modules/other.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 7b64985fd6..1aaa2d79cb 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -1152,3 +1152,19 @@ define KernelPackage/mhi-pci-generic/description endef $(eval $(call KernelPackage,mhi-pci-generic)) + +define KernelPackage/qemu-fw-cfg + SUBMENU:=$(OTHER_MENU) + TITLE:=QEMU fw_cfg device support + KCONFIG:=CONFIG_FW_CFG_SYSFS \ + CONFIG_FW_CFG_SYSFS_CMDLINE=y + FILES:=$(LINUX_DIR)/drivers/firmware/qemu_fw_cfg.ko + AUTOLOAD:=$(call AutoProbe,qemu_fw_cfg) +endef + +define KernelPackage/qemu-fw-cfg/description + Kernel module for exposing QEMU firmware configuration (fw_cfg) values + via sysfs in /sys/firmware/fw_cfg. +endef + +$(eval $(call KernelPackage,qemu-fw-cfg)) -- 2.30.2