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 <jo@mein.io>
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))