[openwrt/openwrt] kexec-tools: add zstd to package dependencies

LEDE Commits lede-commits at lists.infradead.org
Wed Jan 28 14:57:53 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/6f07cf4fbcf09cd014f43d709205e1f318842610

commit 6f07cf4fbcf09cd014f43d709205e1f318842610
Author: Roc Lai <laipeng668 at qq.com>
AuthorDate: Wed Jan 28 08:43:05 2026 +0800

    kexec-tools: add zstd to package dependencies
    
    Fixed build failure caused by missing libzstd dependency.
    
    Added CONFIG_KEXEC_ZSTD configuration option and libzstd library dependency
    declaration, following the same pattern as existing zlib and lzma support.
    
    Fixes: e75218ef4a27 ("kexec-tools: bump to 2.0.32")
    Link: https://github.com/openwrt/openwrt/pull/21623#issuecomment-3805115332
    Signed-off-by: Roc Lai <laipeng668 at qq.com>
    Link: https://github.com/openwrt/openwrt/pull/21743
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/boot/kexec-tools/Config.in | 5 +++++
 package/boot/kexec-tools/Makefile  | 7 ++++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/package/boot/kexec-tools/Config.in b/package/boot/kexec-tools/Config.in
index 068c27e417..927373df34 100644
--- a/package/boot/kexec-tools/Config.in
+++ b/package/boot/kexec-tools/Config.in
@@ -11,4 +11,9 @@ config KEXEC_LZMA
 	prompt "lzma support"
 	default n
 
+config KEXEC_ZSTD
+	bool
+	prompt "zstd support"
+	default n
+	
 endmenu
diff --git a/package/boot/kexec-tools/Makefile b/package/boot/kexec-tools/Makefile
index b9cdc4544c..6b2dea17f2 100644
--- a/package/boot/kexec-tools/Makefile
+++ b/package/boot/kexec-tools/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=kexec-tools
 PKG_VERSION:=2.0.32
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/kexec
@@ -19,7 +19,7 @@ PKG_LICENSE:=GPL-2.0-only
 PKG_LICENSE_FILES:=COPYING
 PKG_CPE_ID:=cpe:/a:kernel:kexec-tools
 
-PKG_CONFIG_DEPENDS := CONFIG_KEXEC_ZLIB CONFIG_KEXEC_LZMA
+PKG_CONFIG_DEPENDS := CONFIG_KEXEC_ZLIB CONFIG_KEXEC_LZMA CONFIG_KEXEC_ZSTD
 
 PKG_BUILD_FLAGS:=gc-sections
 
@@ -48,7 +48,7 @@ define Package/kexec
   TITLE:=Kernel boots kernel
   DEPENDS:=\
 	@(armeb||arm||aarch64||i386||x86_64||powerpc64||mipsel||mips) \
-	+KEXEC_ZLIB:zlib +KEXEC_LZMA:liblzma @KERNEL_KEXEC
+	+KEXEC_ZLIB:zlib +KEXEC_LZMA:liblzma +KEXEC_ZSTD:libzstd @KERNEL_KEXEC
 endef
 
 define Package/kexec/description
@@ -86,6 +86,7 @@ CONFIGURE_ARGS = \
 		--sysconfdir=/etc \
 		$(if $(CONFIG_KEXEC_ZLIB),--with,--without)-zlib \
 		$(if $(CONFIG_KEXEC_LZMA),--with,--without)-lzma \
+		$(if $(CONFIG_KEXEC_ZSTD),--with,--without)-zstd \
 		TARGET_LD="$(TARGET_CROSS)ld"
 
 CONFIGURE_VARS += \




More information about the lede-commits mailing list