kernel: modules: split smbfs-common from cifs
This kernel config symbol is a shared library used for both CIFS and the in-tree SMB_SERVER. Split it out into kmod-fs-smbfs-common from kmod-fs-cifs, and depend on it, so that later in-tree ksmbd may also depend on it. Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
This commit is contained in:
		
				
					committed by
					
						
						Hauke Mehrtens
					
				
			
			
				
	
			
			
			
						parent
						
							b09a83808a
						
					
				
				
					commit
					507480a92c
				
			@@ -83,21 +83,36 @@ endef
 | 
				
			|||||||
$(eval $(call KernelPackage,fs-btrfs))
 | 
					$(eval $(call KernelPackage,fs-btrfs))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define KernelPackage/fs-smbfs-common
 | 
				
			||||||
 | 
					  SUBMENU:=$(FS_MENU)
 | 
				
			||||||
 | 
					  TITLE:=SMBFS common dependencies support
 | 
				
			||||||
 | 
					  HIDDEN:=1
 | 
				
			||||||
 | 
					  KCONFIG:=CONFIG_SMBFS_COMMON
 | 
				
			||||||
 | 
					  FILES:= \
 | 
				
			||||||
 | 
						$(LINUX_DIR)/fs/smbfs_common/cifs_arc4.ko \
 | 
				
			||||||
 | 
						$(LINUX_DIR)/fs/smbfs_common/cifs_md4.ko
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define KernelPackage/fs-smbfs-common/description
 | 
				
			||||||
 | 
					 Kernel module dependency for CIFS or SMB_SERVER support
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$(eval $(call KernelPackage,fs-smbfs-common))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define KernelPackage/fs-cifs
 | 
					define KernelPackage/fs-cifs
 | 
				
			||||||
  SUBMENU:=$(FS_MENU)
 | 
					  SUBMENU:=$(FS_MENU)
 | 
				
			||||||
  TITLE:=CIFS support
 | 
					  TITLE:=CIFS support
 | 
				
			||||||
  KCONFIG:= \
 | 
					  KCONFIG:= \
 | 
				
			||||||
	CONFIG_SMBFS_COMMON \
 | 
					 | 
				
			||||||
	CONFIG_CIFS \
 | 
						CONFIG_CIFS \
 | 
				
			||||||
	CONFIG_CIFS_DFS_UPCALL=n \
 | 
						CONFIG_CIFS_DFS_UPCALL=n \
 | 
				
			||||||
	CONFIG_CIFS_UPCALL=n
 | 
						CONFIG_CIFS_UPCALL=n
 | 
				
			||||||
  FILES:= \
 | 
					  FILES:= \
 | 
				
			||||||
	$(LINUX_DIR)/fs/smbfs_common/cifs_arc4.ko \
 | 
					 | 
				
			||||||
	$(LINUX_DIR)/fs/smbfs_common/cifs_md4.ko \
 | 
					 | 
				
			||||||
	$(LINUX_DIR)/fs/cifs/cifs.ko
 | 
						$(LINUX_DIR)/fs/cifs/cifs.ko
 | 
				
			||||||
  AUTOLOAD:=$(call AutoLoad,30,cifs)
 | 
					  AUTOLOAD:=$(call AutoLoad,30,cifs)
 | 
				
			||||||
  $(call AddDepends/nls)
 | 
					  $(call AddDepends/nls)
 | 
				
			||||||
  DEPENDS+= \
 | 
					  DEPENDS+= \
 | 
				
			||||||
 | 
					    +kmod-fs-smbfs-common \
 | 
				
			||||||
    +kmod-crypto-md5 \
 | 
					    +kmod-crypto-md5 \
 | 
				
			||||||
    +kmod-crypto-sha256 \
 | 
					    +kmod-crypto-sha256 \
 | 
				
			||||||
    +kmod-crypto-sha512 \
 | 
					    +kmod-crypto-sha512 \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user