[OpenWrt-Devel] kernel: package efivarfs module

Message ID SG2PR0601MB194903E84EEF0118D70EB32CE4C20@SG2PR0601MB1949.apcprd06.prod.outlook.com
State New
Headers show
Series
  • [OpenWrt-Devel] kernel: package efivarfs module
Related show

Commit Message

Alif M. Ahmad Feb. 25, 2018, 2:27 a.m.
With this, `mount -t efivarfs` is available and tools such as efitools
and efibootmgr will be usable.

Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
---
 package/kernel/linux/modules/fs.mk | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Alif M. Ahmad Feb. 25, 2018, 3:18 a.m. | #1
The kconfig should be CONFIG_EFIVAR_FS instead of CONFIG_EFIVARS, will
send a revised patch later.

Patch

diff --git a/package/kernel/linux/modules/fs.mk b/package/kernel/linux/modules/fs.mk
index e04aac98f4..610e7b91ba 100644
--- a/package/kernel/linux/modules/fs.mk
+++ b/package/kernel/linux/modules/fs.mk
@@ -553,4 +553,17 @@  endef
 
 $(eval $(call KernelPackage,fuse))
 
+define KernelPackage/fs-efivarfs
+  SUBMENU:=$(FS_MENU)
+  TITLE:=efivar filesystem support
+  KCONFIG:= CONFIG_EFI_VARS
+  FILES:=$(LINUX_DIR)/fs/efivarfs/efivarfs.ko
+  DEPENDS:=@(x86_64||x86)
+  AUTOLOAD:=$(call Autoload,90,efivarfs)
+endef
+
+define KernelPackage/fs-efivarfs/description
+  Kernel module to support efivarfs file system mountpoint.
+endef
 
+$(eval $(call KernelPackage,fs-efivarfs))