build: hide kmod-zram config unless enabled

Currently the zram default compressor choice is displayed whether or not
zram is activated. Since the default choice is lzo-rle, this adds a
false dependency on kmod-lib-lzo.
With this patch, the choice options appear only when activating zram.

Signed-off-by: Rani Hod <rani.hod@gmail.com>
This commit is contained in:
Rani Hod 2023-10-08 18:18:13 +03:00 committed by Hauke Mehrtens
parent 17465fc77e
commit 62ada26de2

View File

@ -1046,6 +1046,7 @@ define KernelPackage/zram/description
endef endef
define KernelPackage/zram/config define KernelPackage/zram/config
if PACKAGE_kmod-zram
choice choice
prompt "ZRAM Default compressor" prompt "ZRAM Default compressor"
default ZRAM_DEF_COMP_LZORLE default ZRAM_DEF_COMP_LZORLE
@ -1071,6 +1072,7 @@ define KernelPackage/zram/config
select PACKAGE_kmod-lib-zstd select PACKAGE_kmod-lib-zstd
endchoice endchoice
endif
endef endef
$(eval $(call KernelPackage,zram)) $(eval $(call KernelPackage,zram))