mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 22:44:27 -05:00 
			
		
		
		
	kernel: modules/lib-lz4: add lz4hc_compress
enable option `CONFIG_CRYPTO_LZ4HC` to match default kernel config this only adds the `lz4hc_compress` module, and has no effect on the `lz4_decompress` module which already supports any flavor Signed-off-by: Tony Butler <spudz76@gmail.com>
This commit is contained in:
		
							parent
							
								
									9a1ab8aa03
								
							
						
					
					
						commit
						1e240f60a5
					
				@ -152,13 +152,15 @@ define KernelPackage/lib-lz4
 | 
			
		||||
  DEPENDS:=+kmod-crypto-acompress
 | 
			
		||||
  KCONFIG:= \
 | 
			
		||||
	CONFIG_CRYPTO_LZ4 \
 | 
			
		||||
	CONFIG_CRYPTO_LZ4HC \
 | 
			
		||||
	CONFIG_LZ4_COMPRESS \
 | 
			
		||||
	CONFIG_LZ4_DECOMPRESS
 | 
			
		||||
  FILES:= \
 | 
			
		||||
	$(LINUX_DIR)/crypto/lz4.ko \
 | 
			
		||||
	$(LINUX_DIR)/lib/lz4/lz4_compress.ko \
 | 
			
		||||
	$(LINUX_DIR)/lib/lz4/lz4hc_compress.ko \
 | 
			
		||||
	$(LINUX_DIR)/lib/lz4/lz4_decompress.ko
 | 
			
		||||
  AUTOLOAD:=$(call AutoProbe,lz4 lz4_compress lz4_decompress)
 | 
			
		||||
  AUTOLOAD:=$(call AutoProbe,lz4 lz4_compress lz4hc_compress lz4_decompress)
 | 
			
		||||
endef
 | 
			
		||||
 | 
			
		||||
define KernelPackage/lib-lz4/description
 | 
			
		||||
 | 
			
		||||
@ -1010,6 +1010,10 @@ define KernelPackage/zram/config
 | 
			
		||||
            bool "lz4"
 | 
			
		||||
            select PACKAGE_kmod-lib-lz4
 | 
			
		||||
 | 
			
		||||
  config ZRAM_DEF_COMP_LZ4HC
 | 
			
		||||
            bool "lz4-hc"
 | 
			
		||||
            select PACKAGE_kmod-lib-lz4hc
 | 
			
		||||
 | 
			
		||||
  config ZRAM_DEF_COMP_ZSTD
 | 
			
		||||
            bool "zstd"
 | 
			
		||||
            select PACKAGE_kmod-lib-zstd
 | 
			
		||||
 | 
			
		||||
@ -7547,6 +7547,7 @@ CONFIG_ZONE_DMA=y
 | 
			
		||||
# CONFIG_ZPOOL is not set
 | 
			
		||||
# CONFIG_ZRAM is not set
 | 
			
		||||
# CONFIG_ZRAM_DEF_COMP_LZ4 is not set
 | 
			
		||||
# CONFIG_ZRAM_DEF_COMP_LZ4HC is not set
 | 
			
		||||
# CONFIG_ZRAM_DEF_COMP_LZO is not set
 | 
			
		||||
# CONFIG_ZRAM_DEF_COMP_LZORLE is not set
 | 
			
		||||
# CONFIG_ZRAM_DEF_COMP_ZSTD is not set
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user