package/kmod: create zstd option for host
authorNorbert Lange <nolange79@gmail.com>
Tue, 4 May 2021 12:33:19 +0000 (14:33 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 4 May 2021 19:17:24 +0000 (21:17 +0200)
Signed-off-by: Norbert Lange <nolange79@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/kmod/Config.in.host
package/kmod/kmod.mk

index 9dbbcea78209ff01fbe07b90481ca2d6ae07a0fe..7680cecdb2a45a44c86ba4e91d2de0258305c70a 100644 (file)
@@ -10,6 +10,9 @@ if BR2_PACKAGE_HOST_KMOD
 config BR2_PACKAGE_HOST_KMOD_GZ
        bool "support gzip-compressed modules"
 
+config BR2_PACKAGE_HOST_KMOD_ZSTD
+       bool "support zstd-compressed modules"
+
 config BR2_PACKAGE_HOST_KMOD_XZ
        bool "support xz-compressed modules"
 
index 9d2b2c47d7bd5987c5c31c32f42c1b5b8f2be89a..7c5d200b0fdadeec7ee9b985f0106fa37ddc0ac7 100644 (file)
@@ -98,6 +98,13 @@ else
 HOST_KMOD_CONF_OPTS += --without-zlib
 endif
 
+ifeq ($(BR2_PACKAGE_HOST_KMOD_ZSTD),y)
+HOST_KMOD_DEPENDENCIES += host-zstd
+HOST_KMOD_CONF_OPTS += --with-zstd
+else
+HOST_KMOD_CONF_OPTS += --without-zstd
+endif
+
 ifeq ($(BR2_PACKAGE_HOST_KMOD_XZ),y)
 HOST_KMOD_DEPENDENCIES += host-xz
 HOST_KMOD_CONF_OPTS += --with-xz