[OpenWrt-Devel,v2] kernel: package efivarfs module

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

Commit Message

Alif M. Ahmad Feb. 25, 2018, 3:18 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 | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

Patch

diff --git a/package/kernel/linux/modules/fs.mk b/package/kernel/linux/modules/fs.mk
index e04aac98f4..154e4f56b7 100644
--- a/package/kernel/linux/modules/fs.mk
+++ b/package/kernel/linux/modules/fs.mk
@@ -142,6 +142,22 @@  endef
 $(eval $(call KernelPackage,fs-cramfs))
 
 
+define KernelPackage/fs-efivarfs
+  SUBMENU:=$(FS_MENU)
+  TITLE:=efivar filesystem support
+  KCONFIG:= CONFIG_EFIVAR_FS
+  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))
+
+
 define KernelPackage/fs-exportfs
   SUBMENU:=$(FS_MENU)
   TITLE:=exportfs kernel server support
@@ -552,5 +568,3 @@  define KernelPackage/fuse/description
 endef
 
 $(eval $(call KernelPackage,fuse))
-
-