From: Jo-Philipp Wich Date: Fri, 21 Jun 2024 08:41:19 +0000 (+0200) Subject: linux: package qemu-fw-cfg driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fab67caa696833af3799ceea4a632546115580a8;p=openwrt%2Fstaging%2Fjow.git 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 --- 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))