modules: block: add libraid module
authorZoltan HERPAI <wigyori@uid0.hu>
Tue, 24 Oct 2023 16:40:24 +0000 (18:40 +0200)
committerZoltan HERPAI <wigyori@uid0.hu>
Fri, 15 Mar 2024 16:05:22 +0000 (17:05 +0100)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
package/kernel/linux/modules/block.mk

index 49a1b6fce1155f4d4172ccdf90bd48fdbca33920..03d8a1062eb09bb00f1a34b2caa3ae2e49efb6ef 100644 (file)
@@ -443,6 +443,23 @@ endef
 $(eval $(call KernelPackage,libsas,1))
 
 
+define KernelPackage/libraid
+  SUBMENU:=$(BLOCK_MENU)
+  DEPENDS:=@TARGET_x86
+  TITLE:=RAID Transport class
+  KCONFIG:=CONFIG_RAID_ATTRS
+  FILES:= \
+       $(LINUX_DIR)/drivers/scsi/raid_class.ko
+  AUTOLOAD:=$(call AutoLoad,29,raid_class,1)
+endef
+
+define KernelPackage/libraid/description
+ RAID Transport Attributes support
+endef
+
+$(eval $(call KernelPackage,libraid,1))
+
+
 define KernelPackage/loop
   SUBMENU:=$(BLOCK_MENU)
   TITLE:=Loopback device support