Skip to content

Commit

Permalink
kernel: dm: add dm-raid for LVM raid
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf committed Apr 4, 2019
1 parent 9e06346 commit 354fb28
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion package/kernel/linux/modules/block.mk
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,12 @@ define KernelPackage/dm
CONFIG_BLK_DEV_DM \
CONFIG_DM_CRYPT \
CONFIG_DM_MIRROR
FILES:=$(LINUX_DIR)/drivers/md/dm-*.ko
FILES:= \
$(LINUX_DIR)/drivers/md/dm-mod.ko \
$(LINUX_DIR)/drivers/md/dm-crypt.ko \
$(LINUX_DIR)/drivers/md/dm-log.ko \
$(LINUX_DIR)/drivers/md/dm-mirror.ko \
$(LINUX_DIR)/drivers/md/dm-region-hash.ko
AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt)
endef

Expand All @@ -249,6 +254,23 @@ endef

$(eval $(call KernelPackage,dm))

define KernelPackage/dm-raid
SUBMENU:=$(BLOCK_MENU)
TITLE:=LVM2 raid support
DEPENDS:=+kmod-dm +kmod-md-mod \
+kmod-md-raid0 +kmod-md-raid1 +kmod-md-raid10 +kmod-md-raid456
KCONFIG:= \
CONFIG_DM_RAID
FILES:=$(LINUX_DIR)/drivers/md/dm-raid.ko
AUTOLOAD:=$(call AutoLoad,31,dm-raid)
endef

define KernelPackage/dm-raid/description
Kernel module necessary for LVM2 raid support
endef

$(eval $(call KernelPackage,dm-raid))


define KernelPackage/md-mod
SUBMENU:=$(BLOCK_MENU)
Expand Down

0 comments on commit 354fb28

Please sign in to comment.