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>
Mon, 29 Apr 2024 08:01:44 +0000 (10:01 +0200)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
package/kernel/linux/modules/block.mk

index 4f3a6e085ffb2296d3806fa7bb42a1b909a3ed4c..3fb1ce6a310389c8849d959dd8a19a64fe9b0f1a 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