diff --git a/package/kmod/Config.in.host b/package/kmod/Config.in.host index 9dbbcea782..7680cecdb2 100644 --- a/package/kmod/Config.in.host +++ b/package/kmod/Config.in.host @@ -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" diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk index 9d2b2c47d7..7c5d200b0f 100644 --- a/package/kmod/kmod.mk +++ b/package/kmod/kmod.mk @@ -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