diff mbox series

[LEDE-DEV,07/25] kernel: add kmod-dax

Message ID 20171210221231.17193-8-hauke@hauke-m.de
State Accepted
Delegated to: Hauke Mehrtens
Headers show
Series Add support for kernel 4.14 | expand

Commit Message

Hauke Mehrtens Dec. 10, 2017, 10:12 p.m. UTC
In kernel 4.14 kmod-dm depends on kmod-dax.
Add DAX: "Direct access to differentiated memory" to LEDE.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 package/kernel/linux/modules/block.mk | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/package/kernel/linux/modules/block.mk b/package/kernel/linux/modules/block.mk
index 62f08218c6..ab9d7af8ca 100644
--- a/package/kernel/linux/modules/block.mk
+++ b/package/kernel/linux/modules/block.mk
@@ -206,10 +206,21 @@  endef
 $(eval $(call KernelPackage,block2mtd))
 
 
+define KernelPackage/dax
+  SUBMENU:=$(BLOCK_MENU)
+  TITLE:=DAX: direct access to differentiated memory
+  DEPENDS:=@LINUX_4_14
+  KCONFIG:=CONFIG_DAX
+  FILES:=$(LINUX_DIR)/drivers/dax/dax.ko
+endef
+
+$(eval $(call KernelPackage,dax))
+
+
 define KernelPackage/dm
   SUBMENU:=$(BLOCK_MENU)
   TITLE:=Device Mapper
-  DEPENDS:=+kmod-crypto-manager
+  DEPENDS:=+kmod-crypto-manager +LINUX_4_14:kmod-dax
   # All the "=n" are unnecessary, they're only there
   # to stop the config from asking the question.
   # MIRROR is M because I've needed it for pvmove.