package/kmod: support zstd compression if available
authorNorbert Lange <nolange79@gmail.com>
Tue, 4 May 2021 12:33:18 +0000 (14:33 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 4 May 2021 19:17:23 +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/kmod.mk

index 7fed252c22375ff593e929ec94a58272a13645a4..9d2b2c47d7bd5987c5c31c32f42c1b5b8f2be89a 100644 (file)
@@ -41,6 +41,13 @@ else
 KMOD_CONF_OPTS += --without-zlib
 endif
 
+ifeq ($(BR2_PACKAGE_ZSTD),y)
+KMOD_DEPENDENCIES += zstd
+KMOD_CONF_OPTS += --with-zstd
+else
+KMOD_CONF_OPTS += --without-zstd
+endif
+
 ifeq ($(BR2_PACKAGE_XZ),y)
 KMOD_DEPENDENCIES += xz
 KMOD_CONF_OPTS += --with-xz